Skip to content

Commit

Permalink
fix(credential-provider-http): use alternate browser entry point (#5277)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe committed Sep 29, 2023
1 parent fc7445e commit a3f0754
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 2 additions & 0 deletions packages/credential-provider-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"description": "AWS credential provider for containers and HTTP sources",
"main": "./dist-cjs/index.js",
"module": "./dist-es/index.js",
"browser": "./dist-es/index.browser.js",
"react-native": "./dist-es/index.browser.js",
"scripts": {
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
"build:cjs": "tsc -p tsconfig.cjs.json",
Expand Down
2 changes: 2 additions & 0 deletions packages/credential-provider-http/src/index.browser.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { fromHttp } from "./fromHttp/fromHttp.browser";
export type { FromHttpOptions, HttpProviderCredentials } from "./fromHttp/fromHttpTypes";
3 changes: 1 addition & 2 deletions packages/credential-provider-http/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from "./fromHttp/fromHttp";
export { fromHttp as fromHttpForBrowser } from "./fromHttp/fromHttp.browser";
export { fromHttp } from "./fromHttp/fromHttp";
export type { FromHttpOptions, HttpProviderCredentials } from "./fromHttp/fromHttpTypes";
7 changes: 2 additions & 5 deletions packages/credential-providers/src/index.browser.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
export * from "./fromCognitoIdentity";
export * from "./fromCognitoIdentityPool";
export {
fromHttpForBrowser as fromHttp,
FromHttpOptions,
HttpProviderCredentials,
} from "@aws-sdk/credential-provider-http";
export { fromHttp } from "@aws-sdk/credential-provider-http";
export type { FromHttpOptions, HttpProviderCredentials } from "@aws-sdk/credential-provider-http";
export * from "./fromTemporaryCredentials";
export * from "./fromWebToken";

0 comments on commit a3f0754

Please sign in to comment.