@aws-sdk/credential-provider-web-identity 3.353.0 → 3.354.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,10 +8,6 @@ const ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
|
|
|
8
8
|
const ENV_ROLE_ARN = "AWS_ROLE_ARN";
|
|
9
9
|
const ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
|
|
10
10
|
const fromTokenFile = (init = {}) => async () => {
|
|
11
|
-
return resolveTokenFile(init);
|
|
12
|
-
};
|
|
13
|
-
exports.fromTokenFile = fromTokenFile;
|
|
14
|
-
const resolveTokenFile = (init) => {
|
|
15
11
|
var _a, _b, _c;
|
|
16
12
|
const webIdentityTokenFile = (_a = init === null || init === void 0 ? void 0 : init.webIdentityTokenFile) !== null && _a !== void 0 ? _a : process.env[ENV_TOKEN_FILE];
|
|
17
13
|
const roleArn = (_b = init === null || init === void 0 ? void 0 : init.roleArn) !== null && _b !== void 0 ? _b : process.env[ENV_ROLE_ARN];
|
|
@@ -26,3 +22,4 @@ const resolveTokenFile = (init) => {
|
|
|
26
22
|
roleSessionName,
|
|
27
23
|
})();
|
|
28
24
|
};
|
|
25
|
+
exports.fromTokenFile = fromTokenFile;
|
package/dist-es/fromTokenFile.js
CHANGED
|
@@ -5,9 +5,6 @@ const ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
|
|
|
5
5
|
const ENV_ROLE_ARN = "AWS_ROLE_ARN";
|
|
6
6
|
const ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
|
|
7
7
|
export const fromTokenFile = (init = {}) => async () => {
|
|
8
|
-
return resolveTokenFile(init);
|
|
9
|
-
};
|
|
10
|
-
const resolveTokenFile = (init) => {
|
|
11
8
|
const webIdentityTokenFile = init?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE];
|
|
12
9
|
const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN];
|
|
13
10
|
const roleSessionName = init?.roleSessionName ?? process.env[ENV_ROLE_SESSION_NAME];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-web-identity",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.354.0",
|
|
4
4
|
"description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|