Skip to content

Commit

Permalink
chore(credential-provider-node): pass init param to fromEnv (#5738)
Browse files Browse the repository at this point in the history
* chore(credential-provider-node): pass init param to fromEnv

* chore: add crt devDep to e2e tests
  • Loading branch information
kuhe authored Jan 29, 2024
1 parent 2a06a1b commit 2efc96c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions clients/client-eventbridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"tslib": "^2.5.0"
},
"devDependencies": {
"@aws-sdk/signature-v4-crt": "*",
"@smithy/service-client-documentation-generator": "^2.1.1",
"@tsconfig/node14": "1.0.3",
"@types/node": "^14.14.31",
Expand Down
1 change: 1 addition & 0 deletions clients/client-s3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"tslib": "^2.5.0"
},
"devDependencies": {
"@aws-sdk/signature-v4-crt": "*",
"@smithy/service-client-documentation-generator": "^2.1.1",
"@tsconfig/node14": "1.0.3",
"@types/chai": "^4.2.11",
Expand Down
2 changes: 1 addition & 1 deletion packages/credential-provider-node/src/defaultProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const defaultProvider = (init: DefaultProviderInit = {}): MemoizedProvide
async () => {
init.logger?.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromEnv");
const { fromEnv } = await import("@aws-sdk/credential-provider-env");
return fromEnv()();
return fromEnv(init)();
},
]),
async () => {
Expand Down

0 comments on commit 2efc96c

Please sign in to comment.