Socket
Socket
Sign inDemoInstall

@aws-sdk/node-config-provider

Package Overview
Dependencies
4
Maintainers
7
Versions
118
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.36.0 to 3.37.0

8

CHANGELOG.md

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

# [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
**Note:** Version bump only for package @aws-sdk/node-config-provider
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)

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

14

dist-types/ts3.4/configLoader.d.ts

@@ -7,17 +7,9 @@ import { Provider } from "@aws-sdk/types";

export interface LoadedConfigSelectors<T> {
/**
* A getter function getting the config values from all the environment
* variables.
*/
environmentVariableSelector: GetterFromEnv<T>;
/**
* A getter function getting config values associated with the inferred
* profile from shared INI files
*/
configFileSelector: GetterFromConfig<T>;
/**
* Default value or getter
*/
default: FromStaticConfig<T>;
}
export declare const loadConfig: <T = string>({ environmentVariableSelector, configFileSelector, default: defaultValue }: LoadedConfigSelectors<T>, configuration?: LocalConfigOptions) => Provider<T>;

@@ -1,8 +0,5 @@

/// <reference types="node" />
import { Provider } from "@aws-sdk/types";
export declare type GetterFromEnv<T> = (env: NodeJS.ProcessEnv) => T | undefined;
/**
* Get config value given the environment variable name or getter from
* environment variable.
*/
export declare const fromEnv: <T = string>(envVarSelector: GetterFromEnv<T>) => Provider<T>;

@@ -5,24 +5,11 @@ import { Profile, SharedConfigFiles, SharedConfigInit as BaseSharedConfigInit } from "@aws-sdk/shared-ini-file-loader";

export interface SharedConfigInit extends BaseSharedConfigInit {
/**
* The configuration profile to use.
*/
profile?: string;
/**
* The preferred shared ini file to load the config. "config" option refers to
* the shared config file(defaults to `~/.aws/config`). "credentials" option
* refers to the shared credentials file(defaults to `~/.aws/credentials`)
*/
preferredFile?: "config" | "credentials";
/**
* A promise that will be resolved with loaded and parsed credentials files.
* Used to avoid loading shared config files multiple times.
*
* @internal
*/
loadedConfig?: Promise<SharedConfigFiles>;
}
export declare type GetterFromConfig<T> = (profile: Profile) => T | undefined;
/**
* Get config value from the shared config files with inferred profile name.
*/
export declare const fromSharedConfigFiles: <T = string>(configSelector: GetterFromConfig<T>, { preferredFile, ...init }?: SharedConfigInit) => Provider<T>;
{
"name": "@aws-sdk/node-config-provider",
"version": "3.36.0",
"version": "3.37.0",
"description": "Load config default values from ini config files and environmental variable",

@@ -23,5 +23,5 @@ "scripts": {

"dependencies": {
"@aws-sdk/property-provider": "3.36.0",
"@aws-sdk/shared-ini-file-loader": "3.36.0",
"@aws-sdk/types": "3.36.0",
"@aws-sdk/property-provider": "3.37.0",
"@aws-sdk/shared-ini-file-loader": "3.37.0",
"@aws-sdk/types": "3.37.0",
"tslib": "^2.3.0"

@@ -28,0 +28,0 @@ },

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc