@aws-sdk/credential-provider-web-identity
Advanced tools
Comparing version 3.664.0 to 3.667.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fromTokenFile = void 0; | ||
const client_1 = require("@aws-sdk/core/client"); | ||
const property_provider_1 = require("@smithy/property-provider"); | ||
@@ -20,3 +21,3 @@ const fs_1 = require("fs"); | ||
} | ||
return (0, fromWebToken_1.fromWebToken)({ | ||
const credentials = await (0, fromWebToken_1.fromWebToken)({ | ||
...init, | ||
@@ -27,3 +28,7 @@ webIdentityToken: (0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }), | ||
})(); | ||
if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) { | ||
(0, client_1.setCredentialFeature)(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h"); | ||
} | ||
return credentials; | ||
}; | ||
exports.fromTokenFile = fromTokenFile; |
@@ -0,1 +1,2 @@ | ||
import { setCredentialFeature } from "@aws-sdk/core/client"; | ||
import { CredentialsProviderError } from "@smithy/property-provider"; | ||
@@ -17,3 +18,3 @@ import { readFileSync } from "fs"; | ||
} | ||
return fromWebToken({ | ||
const credentials = await fromWebToken({ | ||
...init, | ||
@@ -24,2 +25,6 @@ webIdentityToken: readFileSync(webIdentityTokenFile, { encoding: "ascii" }), | ||
})(); | ||
if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) { | ||
setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h"); | ||
} | ||
return credentials; | ||
}; |
{ | ||
"name": "@aws-sdk/credential-provider-web-identity", | ||
"version": "3.664.0", | ||
"version": "3.667.0", | ||
"description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials", | ||
@@ -35,3 +35,4 @@ "main": "./dist-cjs/index.js", | ||
"dependencies": { | ||
"@aws-sdk/types": "3.664.0", | ||
"@aws-sdk/core": "3.667.0", | ||
"@aws-sdk/types": "3.667.0", | ||
"@smithy/property-provider": "^3.1.7", | ||
@@ -50,3 +51,3 @@ "@smithy/types": "^3.5.0", | ||
"peerDependencies": { | ||
"@aws-sdk/client-sts": "^3.664.0" | ||
"@aws-sdk/client-sts": "^3.667.0" | ||
}, | ||
@@ -53,0 +54,0 @@ "types": "./dist-types/index.d.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32456
387
6
10
+ Added@aws-sdk/core@3.667.0
- Removed@aws-sdk/credential-provider-web-identity@3.667.0(transitive)
- Removed@aws-sdk/types@3.664.0(transitive)
Updated@aws-sdk/types@3.667.0