jamesmbourne / aws4-axios

Axios request interceptor for signing requests with AWSv4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with @aws-sdk/client-sts

gesabehrends opened this issue · comments

In the package.json the @aws-sdk/client-sts is allowed any minor version of 3: https://github.com/jamesmbourne/aws4-axios/blob/main/package.json#L40

However, on bumping transitive dependencies, I realized the "@aws-sdk/client-sts@"3.511.0" is not possible as it misses the "@aws-sdk/credential-provider-node" dependency which seems to be needed:

Cannot find module '@aws-sdk/credential-provider-node'
Require stack:

  • /node_modules/@aws-sdk/client-sts/dist-cjs/credentialDefaultProvider.js
  • /node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js
  • /node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js
  • /node_modules/@aws-sdk/client-sts/dist-cjs/index.js
  • /node_modules/aws4-axios/dist/credentials/assumeRoleCredentialsProvider.js
  • /node_modules/aws4-axios/dist/interceptor.js
  • /node_modules/aws4-axios/dist/index.js

Would be great, if the dependencies could be fixed!
Version is 3.3.1

I've also problem with this. When getting 3.556.0 I get AwsSdkSigV4Signer is not a constructor. AwsSdkSigV4Signer is not a class constructor in the latest releases?

UPDATE: I think my issues was with yarn mixing different versions.