@aws-sdk/credential-provider-node
Advanced tools
Comparing version 3.31.0 to 3.32.0
@@ -6,2 +6,10 @@ # Change Log | ||
# [3.32.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.31.0...v3.32.0) (2021-09-17) | ||
**Note:** Version bump only for package @aws-sdk/credential-provider-node | ||
# [3.31.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.30.0...v3.31.0) (2021-09-11) | ||
@@ -8,0 +16,0 @@ |
@@ -51,8 +51,8 @@ "use strict"; | ||
if (!options.loadedConfig) | ||
options.loadedConfig = (0, shared_ini_file_loader_1.loadSharedConfigFiles)(init); | ||
options.loadedConfig = shared_ini_file_loader_1.loadSharedConfigFiles(init); | ||
const providers = [ | ||
(0, credential_provider_sso_1.fromSSO)(options), | ||
(0, credential_provider_ini_1.fromIni)(options), | ||
(0, credential_provider_process_1.fromProcess)(options), | ||
(0, credential_provider_web_identity_1.fromTokenFile)(options), | ||
credential_provider_sso_1.fromSSO(options), | ||
credential_provider_ini_1.fromIni(options), | ||
credential_provider_process_1.fromProcess(options), | ||
credential_provider_web_identity_1.fromTokenFile(options), | ||
remoteProvider(options), | ||
@@ -64,5 +64,5 @@ async () => { | ||
if (!options.profile) | ||
providers.unshift((0, credential_provider_env_1.fromEnv)()); | ||
const providerChain = (0, property_provider_1.chain)(...providers); | ||
return (0, property_provider_1.memoize)(providerChain, (credentials) => credentials.expiration !== undefined && credentials.expiration.getTime() - Date.now() < 300000, (credentials) => credentials.expiration !== undefined); | ||
providers.unshift(credential_provider_env_1.fromEnv()); | ||
const providerChain = property_provider_1.chain(...providers); | ||
return property_provider_1.memoize(providerChain, (credentials) => credentials.expiration !== undefined && credentials.expiration.getTime() - Date.now() < 300000, (credentials) => credentials.expiration !== undefined); | ||
}; | ||
@@ -72,3 +72,3 @@ exports.defaultProvider = defaultProvider; | ||
if (process.env[credential_provider_imds_1.ENV_CMDS_RELATIVE_URI] || process.env[credential_provider_imds_1.ENV_CMDS_FULL_URI]) { | ||
return (0, credential_provider_imds_1.fromContainerMetadata)(init); | ||
return credential_provider_imds_1.fromContainerMetadata(init); | ||
} | ||
@@ -78,4 +78,4 @@ if (process.env[exports.ENV_IMDS_DISABLED]) { | ||
} | ||
return (0, credential_provider_imds_1.fromInstanceMetadata)(init); | ||
return credential_provider_imds_1.fromInstanceMetadata(init); | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsOEVBQTJEO0FBQzNELGdGQU0yQztBQUMzQyw4RUFBd0U7QUFDeEUsc0ZBQW9GO0FBQ3BGLDhFQUF3RTtBQUN4RSxnR0FBNkY7QUFDN0Ysa0VBQXNGO0FBQ3RGLDRFQUF3RTtBQUV4RSxnRUFBd0Q7QUFFM0MsUUFBQSxpQkFBaUIsR0FBRywyQkFBMkIsQ0FBQztBQUU3RDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0dBaUNHO0FBQ0ksTUFBTSxlQUFlLEdBQUcsQ0FDN0IsT0FBNkYsRUFBRSxFQUMzRSxFQUFFO0lBQ3RCLE1BQU0sT0FBTyxHQUFHLEVBQUUsT0FBTyxFQUFFLE9BQU8sQ0FBQyxHQUFHLENBQUMsOEJBQVcsQ0FBQyxFQUFFLEdBQUcsSUFBSSxFQUFFLENBQUM7SUFDL0QsSUFBSSxDQUFDLE9BQU8sQ0FBQyxZQUFZO1FBQUUsT0FBTyxDQUFDLFlBQVksR0FBRyxJQUFBLDhDQUFxQixFQUFDLElBQUksQ0FBQyxDQUFDO0lBQzlFLE1BQU0sU0FBUyxHQUFHO1FBQ2hCLElBQUEsaUNBQU8sRUFBQyxPQUFPLENBQUM7UUFDaEIsSUFBQSxpQ0FBTyxFQUFDLE9BQU8sQ0FBQztRQ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TURTX1JFTEFUSVZFX1VSSV0gfHwgcHJvY2Vzcy5lbnZbRU5WX0NNRFNfRlVMTF9VUkldKSB7XG4gICAgcmV0dXJuIGZyb21Db250YWluZXJNZXRhZGF0YShpbml0KTtcbiAgfVxuXG4gIGlmIChwcm9jZXNzLmVudltFTlZfSU1EU19ESVNBQkxFRF0pIHtcbiAgICByZXR1cm4gKCkgPT4gUHJvbWlzZS5yZWplY3QobmV3IENyZWRlbnRpYWxzUHJvdmlkZXJFcnJvcihcIkVDMiBJbnN0YW5jZSBNZXRhZGF0YSBTZXJ2aWNlIGFjY2VzcyBkaXNhYmxlZFwiKSk7XG4gIH1cblxuICByZXR1cm4gZnJvbUluc3RhbmNlTWV0YWRhdGEoaW5pdCk7XG59O1xuIl19 |
@@ -65,3 +65,3 @@ import { __assign, __awaiter, __generator, __read, __spreadArray } from "tslib"; | ||
providers.unshift(fromEnv()); | ||
var providerChain = chain.apply(void 0, __spreadArray([], __read(providers), false)); | ||
var providerChain = chain.apply(void 0, __spreadArray([], __read(providers))); | ||
return memoize(providerChain, function (credentials) { return credentials.expiration !== undefined && credentials.expiration.getTime() - Date.now() < 300000; }, function (credentials) { return credentials.expiration !== undefined; }); | ||
@@ -78,2 +78,2 @@ }; | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQztBQUMzRCxPQUFPLEVBQ0wsaUJBQWlCLEVBQ2pCLHFCQUFxQixFQUNyQixxQkFBcUIsRUFDckIsb0JBQW9CLEdBRXJCLE1BQU0sbUNBQW1DLENBQUM7QUFDM0MsT0FBTyxFQUFFLE9BQU8sRUFBZSxNQUFNLGtDQUFrQyxDQUFD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lcywgdGhlIGZpbGVzIGF0XG4gKiBgfi8uYXdzL2NyZWRlbnRpYWxzYCBhbmQgYH4vLmF3cy9jb25maWdgIHdpbGwgbm90IGJlIHJlYWQsIG5vciB3aWxsIGFueVxuICogbWVzc2FnZXMgYmUgc2VudCB0byB0aGUgSW5zdGFuY2UgTWV0YWRhdGEgU2VydmljZS5cbiAqXG4gKiBAcGFyYW0gaW5pdCAgICAgICAgICAgICAgICAgIENvbmZpZ3VyYXRpb24gdGhhdCBpcyBwYXNzZWQgdG8gZWFjaCBpbmRpdmlkdWFsXG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByb3ZpZGVyXG4gKlxuICogQHNlZSBmcm9tRW52ICAgICAgICAgICAgICAgICBUaGUgZnVuY3Rpb24gdXNlZCB0byBzb3VyY2UgY3JlZGVudGlhbHMgZnJvbVxuICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbnZpcm9ubWVudCB2YXJpYWJsZXNcbiAqIEBzZWUgZnJvbVNTTyAgICAgICAgICAgICAgICAgVGhlIGZ1bmN0aW9uIHVzZWQgdG8gc291cmNlIGNyZWRlbnRpYWxzIGZyb21cbiAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVzb2x2ZWQgU1NPIHRva2VuIGNhY2hlXG4gKiBAc2VlIGZyb21Ub2tlbkZpbGUgICAgICAgICAgIFRoZSBmdW5jdGlvbiB1c2VkIHRvIHNvdXJjZSBjcmVkZW50aWFscyBmcm9tXG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRva2VuIGZpbGVcbiAqIEBzZWUgZnJvbUluaSAgICAgICAgICAgICAgICAgVGhlIGZ1bmN0aW9uIHVzZWQgdG8gc291cmNlIGNyZWRlbnRpYWxzIGZyb20gSU5JXG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZpbGVzXG4gKiBAc2VlIGZyb21Qcm9jZXNzICAgICAgICAgICAgIFRoZSBmdW5jdGlvbiB1c2VkIHRvIH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ZW50aWFscy5leHBpcmF0aW9uICE9PSB1bmRlZmluZWRcbiAgKTtcbn07XG5cbmNvbnN0IHJlbW90ZVByb3ZpZGVyID0gKGluaXQ6IFJlbW90ZVByb3ZpZGVySW5pdCk6IENyZWRlbnRpYWxQcm92aWRlciA9PiB7XG4gIGlmIChwcm9jZXNzLmVudltFTlZfQ01EU19SRUxBVElWRV9VUkldIHx8IHByb2Nlc3MuZW52W0VOVl9DTURTX0ZVTExfVVJJXSkge1xuICAgIHJldHVybiBmcm9tQ29udGFpbmVyTWV0YWRhdGEoaW5pdCk7XG4gIH1cblxuICBpZiAocHJvY2Vzcy5lbnZbRU5WX0lNRFNfRElTQUJMRURdKSB7XG4gICAgcmV0dXJuICgpID0+IFByb21pc2UucmVqZWN0KG5ldyBDcmVkZW50aWFsc1Byb3ZpZGVyRXJyb3IoXCJFQzIgSW5zdGFuY2UgTWV0YWRhdGEgU2VydmljZSBhY2Nlc3MgZGlzYWJsZWRcIikpO1xuICB9XG5cbiAgcmV0dXJuIGZyb21JbnN0YW5jZU1ldGFkYXRhKGluaXQpO1xufTtcbiJdfQ== |
{ | ||
"name": "@aws-sdk/credential-provider-node", | ||
"version": "3.31.0", | ||
"version": "3.32.0", | ||
"description": "AWS credential provider that sources credentials from a Node.JS environment. ", | ||
@@ -27,12 +27,12 @@ "engines": { | ||
"dependencies": { | ||
"@aws-sdk/credential-provider-env": "3.29.0", | ||
"@aws-sdk/credential-provider-imds": "3.29.0", | ||
"@aws-sdk/credential-provider-ini": "3.31.0", | ||
"@aws-sdk/credential-provider-process": "3.29.0", | ||
"@aws-sdk/credential-provider-sso": "3.31.0", | ||
"@aws-sdk/credential-provider-web-identity": "3.29.0", | ||
"@aws-sdk/property-provider": "3.29.0", | ||
"@aws-sdk/shared-ini-file-loader": "3.29.0", | ||
"@aws-sdk/types": "3.29.0", | ||
"@aws-sdk/util-credentials": "3.29.0", | ||
"@aws-sdk/credential-provider-env": "3.32.0", | ||
"@aws-sdk/credential-provider-imds": "3.32.0", | ||
"@aws-sdk/credential-provider-ini": "3.32.0", | ||
"@aws-sdk/credential-provider-process": "3.32.0", | ||
"@aws-sdk/credential-provider-sso": "3.32.0", | ||
"@aws-sdk/credential-provider-web-identity": "3.32.0", | ||
"@aws-sdk/property-provider": "3.32.0", | ||
"@aws-sdk/shared-ini-file-loader": "3.32.0", | ||
"@aws-sdk/types": "3.32.0", | ||
"@aws-sdk/util-credentials": "3.32.0", | ||
"tslib": "^2.3.0" | ||
@@ -44,3 +44,3 @@ }, | ||
"jest": "^26.1.0", | ||
"typescript": "~4.4.2" | ||
"typescript": "~4.3.5" | ||
}, | ||
@@ -47,0 +47,0 @@ "types": "./dist/types/index.d.ts", |
84521
+ Added@aws-sdk/abort-controller@3.32.0(transitive)
+ Added@aws-sdk/client-sso@3.32.0(transitive)
+ Added@aws-sdk/config-resolver@3.32.0(transitive)
+ Added@aws-sdk/credential-provider-env@3.32.0(transitive)
+ Added@aws-sdk/credential-provider-imds@3.32.0(transitive)
+ Added@aws-sdk/credential-provider-ini@3.32.0(transitive)
+ Added@aws-sdk/credential-provider-process@3.32.0(transitive)
+ Added@aws-sdk/credential-provider-sso@3.32.0(transitive)
+ Added@aws-sdk/credential-provider-web-identity@3.32.0(transitive)
+ Added@aws-sdk/fetch-http-handler@3.32.0(transitive)
+ Added@aws-sdk/hash-node@3.32.0(transitive)
+ Added@aws-sdk/invalid-dependency@3.32.0(transitive)
+ Added@aws-sdk/is-array-buffer@3.32.0(transitive)
+ Added@aws-sdk/middleware-content-length@3.32.0(transitive)
+ Added@aws-sdk/middleware-host-header@3.32.0(transitive)
+ Added@aws-sdk/middleware-logger@3.32.0(transitive)
+ Added@aws-sdk/middleware-retry@3.32.0(transitive)
+ Added@aws-sdk/middleware-serde@3.32.0(transitive)
+ Added@aws-sdk/middleware-stack@3.32.0(transitive)
+ Added@aws-sdk/middleware-user-agent@3.32.0(transitive)
+ Added@aws-sdk/node-config-provider@3.32.0(transitive)
+ Added@aws-sdk/node-http-handler@3.32.0(transitive)
+ Added@aws-sdk/property-provider@3.32.0(transitive)
+ Added@aws-sdk/protocol-http@3.32.0(transitive)
+ Added@aws-sdk/querystring-builder@3.32.0(transitive)
+ Added@aws-sdk/querystring-parser@3.32.0(transitive)
+ Added@aws-sdk/service-error-classification@3.32.0(transitive)
+ Added@aws-sdk/shared-ini-file-loader@3.32.0(transitive)
+ Added@aws-sdk/signature-v4@3.32.0(transitive)
+ Added@aws-sdk/smithy-client@3.32.0(transitive)
+ Added@aws-sdk/types@3.32.0(transitive)
+ Added@aws-sdk/url-parser@3.32.0(transitive)
+ Added@aws-sdk/util-base64-browser@3.32.0(transitive)
+ Added@aws-sdk/util-base64-node@3.32.0(transitive)
+ Added@aws-sdk/util-body-length-browser@3.32.0(transitive)
+ Added@aws-sdk/util-body-length-node@3.32.0(transitive)
+ Added@aws-sdk/util-buffer-from@3.32.0(transitive)
+ Added@aws-sdk/util-credentials@3.32.0(transitive)
+ Added@aws-sdk/util-hex-encoding@3.32.0(transitive)
+ Added@aws-sdk/util-uri-escape@3.32.0(transitive)
+ Added@aws-sdk/util-user-agent-browser@3.32.0(transitive)
+ Added@aws-sdk/util-user-agent-node@3.32.0(transitive)
+ Added@aws-sdk/util-utf8-browser@3.32.0(transitive)
+ Added@aws-sdk/util-utf8-node@3.32.0(transitive)
- Removed@aws-sdk/abort-controller@3.29.0(transitive)
- Removed@aws-sdk/client-sso@3.31.0(transitive)
- Removed@aws-sdk/config-resolver@3.30.0(transitive)
- Removed@aws-sdk/credential-provider-env@3.29.0(transitive)
- Removed@aws-sdk/credential-provider-imds@3.29.0(transitive)
- Removed@aws-sdk/credential-provider-ini@3.31.0(transitive)
- Removed@aws-sdk/credential-provider-process@3.29.0(transitive)
- Removed@aws-sdk/credential-provider-sso@3.31.0(transitive)
- Removed@aws-sdk/credential-provider-web-identity@3.29.0(transitive)
- Removed@aws-sdk/fetch-http-handler@3.29.0(transitive)
- Removed@aws-sdk/hash-node@3.29.0(transitive)
- Removed@aws-sdk/invalid-dependency@3.29.0(transitive)
- Removed@aws-sdk/is-array-buffer@3.29.0(transitive)
- Removed@aws-sdk/middleware-content-length@3.29.0(transitive)
- Removed@aws-sdk/middleware-host-header@3.29.0(transitive)
- Removed@aws-sdk/middleware-logger@3.29.0(transitive)
- Removed@aws-sdk/middleware-retry@3.29.0(transitive)
- Removed@aws-sdk/middleware-serde@3.29.0(transitive)
- Removed@aws-sdk/middleware-stack@3.29.0(transitive)
- Removed@aws-sdk/middleware-user-agent@3.29.0(transitive)
- Removed@aws-sdk/node-config-provider@3.29.0(transitive)
- Removed@aws-sdk/node-http-handler@3.29.0(transitive)
- Removed@aws-sdk/property-provider@3.29.0(transitive)
- Removed@aws-sdk/protocol-http@3.29.0(transitive)
- Removed@aws-sdk/querystring-builder@3.29.0(transitive)
- Removed@aws-sdk/querystring-parser@3.29.0(transitive)
- Removed@aws-sdk/service-error-classification@3.29.0(transitive)
- Removed@aws-sdk/shared-ini-file-loader@3.29.0(transitive)
- Removed@aws-sdk/signature-v4@3.30.0(transitive)
- Removed@aws-sdk/smithy-client@3.31.0(transitive)
- Removed@aws-sdk/types@3.29.0(transitive)
- Removed@aws-sdk/url-parser@3.29.0(transitive)
- Removed@aws-sdk/util-base64-browser@3.29.0(transitive)
- Removed@aws-sdk/util-base64-node@3.29.0(transitive)
- Removed@aws-sdk/util-body-length-browser@3.29.0(transitive)
- Removed@aws-sdk/util-body-length-node@3.29.0(transitive)
- Removed@aws-sdk/util-buffer-from@3.29.0(transitive)
- Removed@aws-sdk/util-credentials@3.29.0(transitive)
- Removed@aws-sdk/util-hex-encoding@3.29.0(transitive)
- Removed@aws-sdk/util-uri-escape@3.29.0(transitive)
- Removed@aws-sdk/util-user-agent-browser@3.29.0(transitive)
- Removed@aws-sdk/util-user-agent-node@3.29.0(transitive)
- Removed@aws-sdk/util-utf8-browser@3.29.0(transitive)
- Removed@aws-sdk/util-utf8-node@3.29.0(transitive)
Updated@aws-sdk/types@3.32.0