Socket
Socket
Sign inDemoInstall

@aws-sdk/credential-provider-ini

Package Overview
Dependencies
Maintainers
4
Versions
346
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/credential-provider-ini - npm Package Compare versions

Comparing version 1.0.0-alpha.5 to 1.0.0-alpha.6

19

build/index.js

@@ -44,3 +44,4 @@ "use strict";

return tslib_1.__awaiter(this, void 0, void 0, function () {
var _a, data, ExternalId, mfa_serial, RoleArn, _b, RoleSessionName, source_profile, sourceCreds, params, _c, _d, _e;
var data, ExternalId, mfa_serial, RoleArn, _a, RoleSessionName, source_profile, sourceCreds, params, _b, _c, _d;
var _e;
return tslib_1.__generator(this, function (_f) {

@@ -57,3 +58,3 @@ switch (_f.label) {

if (!isAssumeRoleProfile(data)) return [3 /*break*/, 4];
ExternalId = data.external_id, mfa_serial = data.mfa_serial, RoleArn = data.role_arn, _b = data.role_session_name, RoleSessionName = _b === void 0 ? "aws-sdk-js-" + Date.now() : _b, source_profile = data.source_profile;
ExternalId = data.external_id, mfa_serial = data.mfa_serial, RoleArn = data.role_arn, _a = data.role_session_name, RoleSessionName = _a === void 0 ? "aws-sdk-js-" + Date.now() : _a, source_profile = data.source_profile;
if (!options.roleAssumer) {

@@ -68,3 +69,3 @@ throw new property_provider_1.ProviderError("Profile " + profileName + " requires a role to be assumed, but no" +

}
sourceCreds = resolveProfileData(source_profile, profiles, options, tslib_1.__assign({}, visitedProfiles, (_a = {}, _a[source_profile] = true, _a)));
sourceCreds = resolveProfileData(source_profile, profiles, options, tslib_1.__assign(tslib_1.__assign({}, visitedProfiles), (_e = {}, _e[source_profile] = true, _e)));
params = { RoleArn: RoleArn, RoleSessionName: RoleSessionName, ExternalId: ExternalId };

@@ -77,11 +78,11 @@ if (!mfa_serial) return [3 /*break*/, 2];

params.SerialNumber = mfa_serial;
_c = params;
_b = params;
return [4 /*yield*/, options.mfaCodeProvider(mfa_serial)];
case 1:
_c.TokenCode = _f.sent();
_b.TokenCode = _f.sent();
_f.label = 2;
case 2:
_e = (_d = options).roleAssumer;
_d = (_c = options).roleAssumer;
return [4 /*yield*/, sourceCreds];
case 3: return [2 /*return*/, _e.apply(_d, [_f.sent(), params])];
case 3: return [2 /*return*/, _d.apply(_c, [_f.sent(), params])];
case 4:

@@ -108,3 +109,3 @@ // If no role assumption metadata is present, attempt to load static

var configFile = parsedFiles.configFile, credentialsFile = parsedFiles.credentialsFile;
return tslib_1.__assign({}, configFile, credentialsFile);
return tslib_1.__assign(tslib_1.__assign({}, configFile), credentialsFile);
});

@@ -120,2 +121,2 @@ }

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiLi9zcmMvIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSxnRUFBMkQ7QUFDM0QsMEVBTXlDO0FBRXpDLElBQU0sZUFBZSxHQUFHLFNBQVMsQ0FBQztBQUNyQixRQUFBLFdBQVcsR0FBRyxhQUFhLENBQUM7QUE0RXpDLFNBQVMsb0JBQW9CLENBQUMsR0FBUTtJQUNwQyxPQUFPLENBQ0wsT0FBTyxDQUFDLEdBQUcsQ0FBQztRQUNaLE9BQU8sR0FBRyxLQUFLLFFBQVE7UUFDdkIsT0FBTyxHQUFHLENBQUMsaUJBQWlCLEtBQUssUUFBUTtRQUN6QyxPQUFPLEdBQUcsQ0FBQyxxQkFBcUIsS0FBSyxRQUFRO1FBQzdDLENBQUMsV0FBVyxFQUFFLFFBQVEsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxPQUFPLEdBQUcsQ0FBQyxpQkFBaUIsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUNuRSxDQUFDO0FBQ0osQ0FBQztBQU9ELFNBQVMsbUJBQW1CLENBQUMsR0FBUTtJQUNuQyxPQUFPLENBQ0wsT0FBTyxDQUFDLEdBQUcsQ0FBQzt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XJFcnJvcihcbiAgICBgUHJvZmlsZSAke3Byb2ZpbGVOYW1lfSBjb3VsZCBub3QgYmUgZm91bmQgb3IgcGFyc2VkIGluIHNoYXJlZGAgK1xuICAgICAgYCBjcmVkZW50aWFscyBmaWxlLmBcbiAgKTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIHBhcnNlS25vd25GaWxlcyhpbml0OiBGcm9tSW5pSW5pdCk6IFByb21pc2U8UGFyc2VkSW5pRGF0YT4ge1xuICBjb25zdCB7IGxvYWRlZENvbmZpZyA9IGxvYWRTaGFyZWRDb25maWdGaWxlcyhpbml0KSB9ID0gaW5pdDtcblxuICByZXR1cm4gbG9hZGVkQ29uZmlnLnRoZW4ocGFyc2VkRmlsZXMgPT4ge1xuICAgIGNvbnN0IHsgY29uZmlnRmlsZSwgY3JlZGVudGlhbHNGaWxlIH0gPSBwYXJzZWRGaWxlcztcbiAgICByZXR1cm4ge1xuICAgICAgLi4uY29uZmlnRmlsZSxcbiAgICAgIC4uLmNyZWRlbnRpYWxzRmlsZVxuICAgIH07XG4gIH0pO1xufVxuXG5mdW5jdGlvbiByZXNvbHZlU3RhdGljQ3JlZGVudGlhbHMoXG4gIHByb2ZpbGU6IFN0YXRpY0NyZWRzUHJvZmlsZVxuKTogUHJvbWlzZTxDcmVkZW50aWFscz4ge1xuICByZXR1cm4gUHJvbWlzZS5yZXNvbHZlKHtcbiAgICBhY2Nlc3NLZXlJZDogcHJvZmlsZS5hd3NfYWNjZXNzX2tleV9pZCxcbiAgICBzZWNyZXRBY2Nlc3NLZXk6IHByb2ZpbGUuYXdzX3NlY3JldF9hY2Nlc3Nfa2V5LFxuICAgIHNlc3Npb25Ub2tlbjogcHJvZmlsZS5hd3Nfc2Vzc2lvbl90b2tlblxuICB9KTtcbn1cbiJdfQ==

@@ -6,6 +6,10 @@ # Change Log

# [1.0.0-alpha.5](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/credential-provider-ini@0.1.0-preview.2...@aws-sdk/credential-provider-ini@1.0.0-alpha.5) (2020-02-18)
# [1.0.0-alpha.6](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/credential-provider-ini@0.1.0-preview.2...@aws-sdk/credential-provider-ini@1.0.0-alpha.6) (2020-03-20)
# 1.0.0-alpha.24 (2020-02-19)
# 1.0.0-alpha.13 (2020-01-24)

@@ -32,2 +36,47 @@

* commit all clients ([#324](https://github.com/aws/aws-sdk-js-v3/issues/324)) ([cb268ed](https://github.com/aws/aws-sdk-js-v3/commit/cb268ed45fd5580ef9633da78f13aaa6aa472805))
# 0.2.0 (2019-07-12)
### Features
* add npm badges for individual packages ([#251](https://github.com/aws/aws-sdk-js-v3/issues/251)) ([8adc10c](https://github.com/aws/aws-sdk-js-v3/commit/8adc10cb6b0ebc32004b797556bfc171c96bbf16))
* update jest v20 to v24 ([#243](https://github.com/aws/aws-sdk-js-v3/issues/243)) ([1e156ab](https://github.com/aws/aws-sdk-js-v3/commit/1e156ab4ac5343058eaf7d448a428d8c4b72c844))
# 0.1.0 (2019-04-19)
# [1.0.0-alpha.5](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/credential-provider-ini@0.1.0-preview.2...@aws-sdk/credential-provider-ini@1.0.0-alpha.5) (2020-02-19)
# 1.0.0-alpha.13 (2020-01-24)
# 1.0.0-alpha.12 (2020-01-22)
# 0.9.0 (2020-01-09)
# 0.6.0 (2019-10-30)
# 0.3.0 (2019-09-09)
### Features
* commit all clients ([#324](https://github.com/aws/aws-sdk-js-v3/issues/324)) ([cb268ed](https://github.com/aws/aws-sdk-js-v3/commit/cb268ed))

@@ -34,0 +83,0 @@

{
"name": "@aws-sdk/credential-provider-ini",
"version": "1.0.0-alpha.5",
"version": "1.0.0-alpha.6",
"description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",

@@ -21,5 +21,5 @@ "main": "./build/index.js",

"dependencies": {
"@aws-sdk/property-provider": "^1.0.0-alpha.5",
"@aws-sdk/shared-ini-file-loader": "^1.0.0-alpha.2",
"@aws-sdk/types": "^1.0.0-alpha.5",
"@aws-sdk/property-provider": "^1.0.0-alpha.6",
"@aws-sdk/shared-ini-file-loader": "^1.0.0-alpha.3",
"@aws-sdk/types": "^1.0.0-alpha.6",
"tslib": "^1.8.0"

@@ -31,5 +31,5 @@ },

"jest": "^24.7.1",
"typescript": "~3.4.0"
"typescript": "~3.8.3"
},
"types": "./build/index.d.ts"
}
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