Socket
Socket
Sign inDemoInstall

@aws-sdk/credential-providers

Package Overview
Dependencies
Maintainers
5
Versions
336
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/credential-providers - npm Package Compare versions

Comparing version 3.569.0 to 3.572.0

3

dist-cjs/fromContainerMetadata.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc