Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/node-config-provider

Package Overview
Dependencies
Maintainers
7
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/node-config-provider - npm Package Compare versions

Comparing version 3.18.0 to 3.19.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [3.19.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.18.0...v3.19.0) (2021-06-24)
### Features
* **credential-provider-node:** throw cannot load credential error from credentail chain ([#2408](https://github.com/aws/aws-sdk-js-v3/issues/2408)) ([5e0a46a](https://github.com/aws/aws-sdk-js-v3/commit/5e0a46a9f4a35cdb200f7eccef09fb4c6ad76e9c))
# [3.18.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.17.0...v3.18.0) (2021-06-04)

@@ -8,0 +19,0 @@

4

dist/cjs/fromEnv.js

@@ -18,6 +18,6 @@ "use strict";

catch (e) {
throw new property_provider_1.ProviderError(e.message || `Cannot load config from environment variables with getter: ${envVarSelector}`);
throw new property_provider_1.CredentialsProviderError(e.message || `Cannot load config from environment variables with getter: ${envVarSelector}`);
}
};
exports.fromEnv = fromEnv;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnJvbUVudi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9mcm9tRW52LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLGtFQUEyRDtBQUszRDs7O0dBR0c7QUFDSSxNQUFNLE9BQU8sR0FDbEIsQ0FBYSxjQUFnQyxFQUFlLEVBQUUsQ0FDOUQsS0FBSyxJQUFJLEVBQUU7SUFDVCxJQUFJO1FBQ0YsTUFBTSxNQUFNLEdBQUcsY0FBYyxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQztRQUMzQyxJQ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IHsgUHJvdmlkZXIgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuZXhwb3J0IHR5cGUgR2V0dGVyRnJvbUVudjxUPiA9IChlbnY6IE5vZGVKUy5Qcm9jZXNzRW52KSA9PiBUIHwgdW5kZWZpbmVkO1xuXG4vKipcbiAqIEdldCBjb25maWcgdmFsdWUgZ2l2ZW4gdGhlIGVudmlyb25tZW50IHZhcmlhYmxlIG5hbWUgb3IgZ2V0dGVyIGZyb21cbiAqIGVudmlyb25tZW50IHZhcmlhYmxlLlxuICovXG5leHBvcnQgY29uc3QgZnJvbUVudiA9XG4gIDxUID0gc3RyaW5nPihlbnZWYXJTZWxlY3RvcjogR2V0dGVyRnJvbUVudjxUPik6IFByb3ZpZGVyPFQ+ID0+XG4gIGFzeW5jICgpID0+IHtcbiAgICB0cnkge1xuICAgICAgY29uc3QgY29uZmlnID0gZW52VmFyU2VsZWN0b3IocHJvY2Vzcy5lbnYpO1xuICAgICAgaWYgKGNvbmZpZyA9PT0gdW5kZWZpbmVkKSB7XG4gICAgICAgIHRocm93IG5ldyBFcnJvcigpO1xuICAgICAgfVxuICAgICAgcmV0dXJuIGNvbmZpZyBhcyBUO1xuICAgIH0gY2F0Y2ggKGUpIHtcbiAgICAgIHRocm93IG5ldyBDcmVkZW50aWFsc1Byb3ZpZGVyRXJyb3IoXG4gICAgICAgIGUubWVzc2FnZSB8fCBgQ2Fubm90IGxvYWQgY29uZmlnIGZyb20gZW52aXJvbm1lbnQgdmFyaWFibGVzIHdpdGggZ2V0dGVyOiAke2VudlZhclNlbGVjdG9yfWBcbiAgICAgICk7XG4gICAgfVxuICB9O1xuIl19

@@ -27,3 +27,3 @@ "use strict";

catch (e) {
throw new property_provider_1.ProviderError(e.message ||
throw new property_provider_1.CredentialsProviderError(e.message ||
`Cannot load config for profile ${profile} in SDK configuration files with getter: ${configSelector}`);

@@ -33,2 +33,2 @@ }

exports.fromSharedConfigFiles = fromSharedConfigFiles;
//# sourceMappingURL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wcm9maWxlRnJvbUNyZWRlbnRpYWxzLCAuLi5wcm9maWxlRnJvbUNvbmZpZyB9XG4gICAgICAgIDogeyAuLi5wcm9maWxlRnJvbUNvbmZpZywgLi4ucHJvZmlsZUZyb21DcmVkZW50aWFscyB9O1xuXG4gICAgdHJ5IHtcbiAgICAgIGNvbnN0IGNvbmZpZ1ZhbHVlID0gY29uZmlnU2VsZWN0b3IobWVyZ2VkUHJvZmlsZSk7XG4gICAgICBpZiAoY29uZmlnVmFsdWUgPT09IHVuZGVmaW5lZCkge1xuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoKTtcbiAgICAgIH1cbiAgICAgIHJldHVybiBjb25maWdWYWx1ZTtcbiAgICB9IGNhdGNoIChlKSB7XG4gICAgICB0aHJvdyBuZXcgQ3JlZGVudGlhbHNQcm92aWRlckVycm9yKFxuICAgICAgICBlLm1lc3NhZ2UgfHxcbiAgICAgICAgICBgQ2Fubm90IGxvYWQgY29uZmlnIGZvciBwcm9maWxlICR7cHJvZmlsZX0gaW4gU0RLIGNvbmZpZ3VyYXRpb24gZmlsZXMgd2l0aCBnZXR0ZXI6ICR7Y29uZmlnU2VsZWN0b3J9YFxuICAgICAgKTtcbiAgICB9XG4gIH07XG4iXX0=
import { __awaiter, __generator } from "tslib";
import { ProviderError } from "@aws-sdk/property-provider";
import { CredentialsProviderError } from "@aws-sdk/property-provider";
/**

@@ -19,3 +19,3 @@ * Get config value given the environment variable name or getter from

catch (e) {
throw new ProviderError(e.message || "Cannot load config from environment variables with getter: " + envVarSelector);
throw new CredentialsProviderError(e.message || "Cannot load config from environment variables with getter: " + envVarSelector);
}

@@ -26,2 +26,2 @@ return [2 /*return*/];

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnJvbUVudi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9mcm9tRW52LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiO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lZhclNlbGVjdG9yfWBcbiAgICAgICk7XG4gICAgfVxuICB9O1xuIl19
import { __assign, __awaiter, __generator, __rest } from "tslib";
import { ProviderError } from "@aws-sdk/property-provider";
import { CredentialsProviderError } from "@aws-sdk/property-provider";
import { loadSharedConfigFiles, } from "@aws-sdk/shared-ini-file-loader";

@@ -33,3 +33,3 @@ var DEFAULT_PROFILE = "default";

catch (e) {
throw new ProviderError(e.message ||
throw new CredentialsProviderError(e.message ||
"Cannot load config for profile " + profile + " in SDK configuration files with getter: " + configSelector);

@@ -42,2 +42,2 @@ }

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnJvbVNoYXJlZENvbmZpZ0ZpbGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2Zyb21TaGFyZWRDb25maWdGaWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBQzNELE9BQU8sRUFDTCxxQkFBcUIsR0FJdEIsTUFBTSxpQ0FBaUMsQ0FBQztBQUd6QyxJQUFNLGVBQWUsR0FBRyxTQUFTLENBQUM7QUFDbEMsTUFBTSxDQUFDLElBQU0sV0FBVyxHQUFHLGFBQWEsQ0FBQztBQTBCekM7O0dBRUc7QUFDSCxNQUFNLENBQUMsSUFBTSxxQkFBcUIsR0FDaEMsVUFDRSxjQUFtQyxFQUNuQyxFQUE0RDtJQUE1RCxtQkFBQSxFQUFBLE9BQTREO0lBQTFELElBQUEscUJBQXdCLEVBQXhCLGFBQWEsbUJBQUcsUUFBUSxLQUFBLEVBQUssSUFBSSxjQUFuQyxpQkFBcUMsQ0FBRjtJQUVyQyxPQUFBOzs7OztvQkFDVSxLQUFzRyxJQUFJLGFBQWhFLEVBQTFDLFlBQVksbUJBQUcscUJBQXFCLENBQUMsSUFBSSxDQUFDLEtBQUEsRU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ZmlsZSAke3Byb2ZpbGV9IGluIFNESyBjb25maWd1cmF0aW9uIGZpbGVzIHdpdGggZ2V0dGVyOiAke2NvbmZpZ1NlbGVjdG9yfWBcbiAgICAgICk7XG4gICAgfVxuICB9O1xuIl19
{
"name": "@aws-sdk/node-config-provider",
"version": "3.18.0",
"version": "3.19.0",
"description": "Load config default values from ini config files and environmental variable",

@@ -22,3 +22,3 @@ "scripts": {

"dependencies": {
"@aws-sdk/property-provider": "3.18.0",
"@aws-sdk/property-provider": "3.19.0",
"@aws-sdk/shared-ini-file-loader": "3.18.0",

@@ -25,0 +25,0 @@ "@aws-sdk/types": "3.18.0",

@@ -1,2 +0,2 @@

import { ProviderError } from "@aws-sdk/property-provider";
import { CredentialsProviderError } from "@aws-sdk/property-provider";

@@ -12,4 +12,4 @@ import { fromEnv, GetterFromEnv } from "./fromEnv";

const getProviderError = (getter: GetterFromEnv<string>) =>
new ProviderError(`Cannot load config from environment variables with getter: ${getter}`);
const getCredentialsProviderError = (getter: GetterFromEnv<string>) =>
new CredentialsProviderError(`Cannot load config from environment variables with getter: ${getter}`);

@@ -39,3 +39,3 @@ beforeEach(() => {

expect.assertions(1);
return expect(fromEnv(envVarGetter)()).rejects.toMatchObject(getProviderError(envVarGetter));
return expect(fromEnv(envVarGetter)()).rejects.toMatchObject(getCredentialsProviderError(envVarGetter));
});

@@ -42,0 +42,0 @@

@@ -1,2 +0,2 @@

import { ProviderError } from "@aws-sdk/property-provider";
import { CredentialsProviderError } from "@aws-sdk/property-provider";
import { Provider } from "@aws-sdk/types";

@@ -20,3 +20,3 @@

} catch (e) {
throw new ProviderError(
throw new CredentialsProviderError(
e.message || `Cannot load config from environment variables with getter: ${envVarSelector}`

@@ -23,0 +23,0 @@ );

@@ -1,2 +0,2 @@

import { ProviderError } from "@aws-sdk/property-provider";
import { CredentialsProviderError } from "@aws-sdk/property-provider";
import { loadSharedConfigFiles, ParsedIniData, Profile } from "@aws-sdk/shared-ini-file-loader";

@@ -23,4 +23,6 @@

const getProviderError = (profile: string, getter: GetterFromConfig<string>) =>
new ProviderError(`Cannot load config for profile ${profile} in SDK configuration files with getter: ${getter}`);
const getCredentialsProviderError = (profile: string, getter: GetterFromConfig<string>) =>
new CredentialsProviderError(
`Cannot load config for profile ${profile} in SDK configuration files with getter: ${getter}`
);

@@ -138,3 +140,3 @@ describe("loadedConfig", () => {

return expect(fromSharedConfigFiles(configGetter, { profile, preferredFile })()).rejects.toMatchObject(
getProviderError(profile ?? "default", configGetter)
getCredentialsProviderError(profile ?? "default", configGetter)
);

@@ -168,3 +170,3 @@ });

fromSharedConfigFiles(configGetter, { loadedConfig, profile, preferredFile })()
).rejects.toMatchObject(getProviderError(profile ?? "default", configGetter));
).rejects.toMatchObject(getCredentialsProviderError(profile ?? "default", configGetter));
});

@@ -183,3 +185,3 @@ });

});
return expect(fromSharedConfigFiles(failGetter)()).rejects.toMatchObject(new ProviderError(message));
return expect(fromSharedConfigFiles(failGetter)()).rejects.toMatchObject(new CredentialsProviderError(message));
});

@@ -186,0 +188,0 @@ });

@@ -1,2 +0,2 @@

import { ProviderError } from "@aws-sdk/property-provider";
import { CredentialsProviderError } from "@aws-sdk/property-provider";
import {

@@ -64,3 +64,3 @@ loadSharedConfigFiles,

} catch (e) {
throw new ProviderError(
throw new CredentialsProviderError(
e.message ||

@@ -67,0 +67,0 @@ `Cannot load config for profile ${profile} in SDK configuration files with getter: ${configSelector}`

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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