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
4
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.54.1 to 3.55.0

8

CHANGELOG.md

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

# [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
**Note:** Version bump only for package @aws-sdk/node-config-provider
## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)

@@ -8,0 +16,0 @@

2

dist-cjs/configLoader.js

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

const fromStatic_1 = require("./fromStatic");
const loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => property_provider_1.memoize(property_provider_1.chain(fromEnv_1.fromEnv(environmentVariableSelector), fromSharedConfigFiles_1.fromSharedConfigFiles(configFileSelector, configuration), fromStatic_1.fromStatic(defaultValue)));
const loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)((0, fromEnv_1.fromEnv)(environmentVariableSelector), (0, fromSharedConfigFiles_1.fromSharedConfigFiles)(configFileSelector, configuration), (0, fromStatic_1.fromStatic)(defaultValue)));
exports.loadConfig = loadConfig;

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

const fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => {
const { loadedConfig = shared_ini_file_loader_1.loadSharedConfigFiles(init), profile = process.env[exports.ENV_PROFILE] || DEFAULT_PROFILE } = init;
const { loadedConfig = (0, shared_ini_file_loader_1.loadSharedConfigFiles)(init), profile = process.env[exports.ENV_PROFILE] || DEFAULT_PROFILE } = init;
const { configFile, credentialsFile } = await loadedConfig;

@@ -12,0 +12,0 @@ const profileFromCredentials = credentialsFile[profile] || {};

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

const isFunction = (func) => typeof func === "function";
const fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : property_provider_1.fromStatic(defaultValue);
const fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : (0, property_provider_1.fromStatic)(defaultValue);
exports.fromStatic = fromStatic;

@@ -15,3 +15,3 @@ import { __awaiter, __generator } from "tslib";

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

@@ -18,0 +18,0 @@ return [2];

@@ -31,3 +31,3 @@ import { __assign, __awaiter, __generator, __rest } from "tslib";

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

@@ -34,0 +34,0 @@ return [2];

{
"name": "@aws-sdk/node-config-provider",
"version": "3.54.1",
"version": "3.55.0",
"description": "Load config default values from ini config files and environmental variable",

@@ -24,6 +24,6 @@ "scripts": {

"dependencies": {
"@aws-sdk/property-provider": "3.54.1",
"@aws-sdk/shared-ini-file-loader": "3.54.1",
"@aws-sdk/types": "3.54.1",
"tslib": "^2.3.0"
"@aws-sdk/property-provider": "3.55.0",
"@aws-sdk/shared-ini-file-loader": "3.55.0",
"@aws-sdk/types": "3.55.0",
"tslib": "^2.3.1"
},

@@ -37,3 +37,3 @@ "devDependencies": {

"typedoc": "0.19.2",
"typescript": "~4.3.5"
"typescript": "~4.6.2"
},

@@ -40,0 +40,0 @@ "engines": {

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