@aws-sdk/credential-providers
Advanced tools
Comparing version 3.569.0 to 3.572.0
@@ -6,6 +6,5 @@ "use strict"; | ||
const fromContainerMetadata = (init) => { | ||
var _a; | ||
(_a = init === null || init === void 0 ? void 0 : init.logger) === null || _a === void 0 ? void 0 : _a.debug("@smithy/credential-provider-imds", "fromContainerMetadata"); | ||
init?.logger?.debug("@smithy/credential-provider-imds", "fromContainerMetadata"); | ||
return (0, credential_provider_imds_1.fromContainerMetadata)(init); | ||
}; | ||
exports.fromContainerMetadata = fromContainerMetadata; |
@@ -6,6 +6,5 @@ "use strict"; | ||
const fromInstanceMetadata = (init) => { | ||
var _a; | ||
(_a = init === null || init === void 0 ? void 0 : init.logger) === null || _a === void 0 ? void 0 : _a.debug("@smithy/credential-provider-imds", "fromInstanceMetadata"); | ||
init?.logger?.debug("@smithy/credential-provider-imds", "fromInstanceMetadata"); | ||
return (0, credential_provider_imds_1.fromInstanceMetadata)(init); | ||
}; | ||
exports.fromInstanceMetadata = fromInstanceMetadata; |
@@ -31,10 +31,9 @@ "use strict"; | ||
return async () => { | ||
var _a, _b; | ||
(_a = options.logger) === null || _a === void 0 ? void 0 : _a.debug("@aws-sdk/credential-providers", "fromTemporaryCredentials (STS)"); | ||
const params = { ...options.params, RoleSessionName: (_b = options.params.RoleSessionName) !== null && _b !== void 0 ? _b : "aws-sdk-js-" + Date.now() }; | ||
if (params === null || params === void 0 ? void 0 : params.SerialNumber) { | ||
options.logger?.debug("@aws-sdk/credential-providers", "fromTemporaryCredentials (STS)"); | ||
const params = { ...options.params, RoleSessionName: options.params.RoleSessionName ?? "aws-sdk-js-" + Date.now() }; | ||
if (params?.SerialNumber) { | ||
if (!options.mfaCodeProvider) { | ||
throw new property_provider_1.CredentialsProviderError(`Temporary credential requires multi-factor authentication,` + ` but no MFA code callback was provided.`, false); | ||
} | ||
params.TokenCode = await options.mfaCodeProvider(params === null || params === void 0 ? void 0 : params.SerialNumber); | ||
params.TokenCode = await options.mfaCodeProvider(params?.SerialNumber); | ||
} | ||
@@ -41,0 +40,0 @@ const { AssumeRoleCommand, STSClient } = await Promise.resolve().then(() => __importStar(require("./loadSts"))); |
{ | ||
"name": "@aws-sdk/credential-providers", | ||
"version": "3.569.0", | ||
"version": "3.572.0", | ||
"description": "A collection of credential providers, without requiring service clients like STS, Cognito", | ||
@@ -31,12 +31,12 @@ "main": "./dist-cjs/index.js", | ||
"dependencies": { | ||
"@aws-sdk/client-cognito-identity": "3.569.0", | ||
"@aws-sdk/client-sso": "3.568.0", | ||
"@aws-sdk/client-sts": "3.569.0", | ||
"@aws-sdk/credential-provider-cognito-identity": "3.569.0", | ||
"@aws-sdk/client-cognito-identity": "3.572.0", | ||
"@aws-sdk/client-sso": "3.572.0", | ||
"@aws-sdk/client-sts": "3.572.0", | ||
"@aws-sdk/credential-provider-cognito-identity": "3.572.0", | ||
"@aws-sdk/credential-provider-env": "3.568.0", | ||
"@aws-sdk/credential-provider-http": "3.568.0", | ||
"@aws-sdk/credential-provider-ini": "3.568.0", | ||
"@aws-sdk/credential-provider-node": "3.569.0", | ||
"@aws-sdk/credential-provider-process": "3.568.0", | ||
"@aws-sdk/credential-provider-sso": "3.568.0", | ||
"@aws-sdk/credential-provider-ini": "3.572.0", | ||
"@aws-sdk/credential-provider-node": "3.572.0", | ||
"@aws-sdk/credential-provider-process": "3.572.0", | ||
"@aws-sdk/credential-provider-sso": "3.572.0", | ||
"@aws-sdk/credential-provider-web-identity": "3.568.0", | ||
@@ -43,0 +43,0 @@ "@aws-sdk/types": "3.567.0", |
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
89484
859
+ Added@aws-sdk/client-cognito-identity@3.572.0(transitive)
+ Added@aws-sdk/client-sso@3.572.0(transitive)
+ Added@aws-sdk/client-sso-oidc@3.572.0(transitive)
+ Added@aws-sdk/client-sts@3.572.0(transitive)
+ Added@aws-sdk/core@3.572.0(transitive)
+ Added@aws-sdk/credential-provider-cognito-identity@3.572.0(transitive)
+ Added@aws-sdk/credential-provider-ini@3.572.0(transitive)
+ Added@aws-sdk/credential-provider-node@3.572.0(transitive)
+ Added@aws-sdk/credential-provider-process@3.572.0(transitive)
+ Added@aws-sdk/credential-provider-sso@3.572.0(transitive)
+ Added@aws-sdk/middleware-user-agent@3.572.0(transitive)
+ Added@aws-sdk/region-config-resolver@3.572.0(transitive)
+ Added@aws-sdk/token-providers@3.572.0(transitive)
+ Added@aws-sdk/util-endpoints@3.572.0(transitive)
- Removed@aws-sdk/client-cognito-identity@3.569.0(transitive)
- Removed@aws-sdk/client-sso@3.568.0(transitive)
- Removed@aws-sdk/client-sso-oidc@3.569.0(transitive)
- Removed@aws-sdk/client-sts@3.569.0(transitive)
- Removed@aws-sdk/core@3.567.0(transitive)
- Removed@aws-sdk/credential-provider-cognito-identity@3.569.0(transitive)
- Removed@aws-sdk/credential-provider-ini@3.568.0(transitive)
- Removed@aws-sdk/credential-provider-node@3.569.0(transitive)
- Removed@aws-sdk/credential-provider-process@3.568.0(transitive)
- Removed@aws-sdk/credential-provider-sso@3.568.0(transitive)
- Removed@aws-sdk/middleware-user-agent@3.567.0(transitive)
- Removed@aws-sdk/region-config-resolver@3.567.0(transitive)
- Removed@aws-sdk/token-providers@3.568.0(transitive)
- Removed@aws-sdk/util-endpoints@3.567.0(transitive)
Updated@aws-sdk/client-sso@3.572.0
Updated@aws-sdk/client-sts@3.572.0
Updated@aws-sdk/credential-provider-cognito-identity@3.572.0