Skip to content

Commit a3f0754

Browse files
authored
fix(credential-provider-http): use alternate browser entry point (#5277)
1 parent fc7445e commit a3f0754

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

packages/credential-provider-http/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"description": "AWS credential provider for containers and HTTP sources",
55
"main": "./dist-cjs/index.js",
66
"module": "./dist-es/index.js",
7+
"browser": "./dist-es/index.browser.js",
8+
"react-native": "./dist-es/index.browser.js",
79
"scripts": {
810
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
911
"build:cjs": "tsc -p tsconfig.cjs.json",
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { fromHttp } from "./fromHttp/fromHttp.browser";
2+
export type { FromHttpOptions, HttpProviderCredentials } from "./fromHttp/fromHttpTypes";
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
export * from "./fromHttp/fromHttp";
2-
export { fromHttp as fromHttpForBrowser } from "./fromHttp/fromHttp.browser";
1+
export { fromHttp } from "./fromHttp/fromHttp";
32
export type { FromHttpOptions, HttpProviderCredentials } from "./fromHttp/fromHttpTypes";
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
export * from "./fromCognitoIdentity";
22
export * from "./fromCognitoIdentityPool";
3-
export {
4-
fromHttpForBrowser as fromHttp,
5-
FromHttpOptions,
6-
HttpProviderCredentials,
7-
} from "@aws-sdk/credential-provider-http";
3+
export { fromHttp } from "@aws-sdk/credential-provider-http";
4+
export type { FromHttpOptions, HttpProviderCredentials } from "@aws-sdk/credential-provider-http";
85
export * from "./fromTemporaryCredentials";
96
export * from "./fromWebToken";

0 commit comments

Comments
 (0)