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

@smithy/node-config-provider

Package Overview
Dependencies
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smithy/node-config-provider - npm Package Compare versions

Comparing version 3.1.12 to 4.0.0

9

dist-types/configLoader.d.ts

@@ -5,3 +5,9 @@ import { Provider } from "@smithy/types";

import { FromStaticConfig } from "./fromStatic";
/**
* @internal
*/
export type LocalConfigOptions = SharedConfigInit;
/**
* @internal
*/
export interface LoadedConfigSelectors<T> {

@@ -23,2 +29,5 @@ /**

}
/**
* @internal
*/
export declare const loadConfig: <T = string>({ environmentVariableSelector, configFileSelector, default: defaultValue }: LoadedConfigSelectors<T>, configuration?: LocalConfigOptions) => Provider<T>;
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
import { ParsedIniData, Profile, Provider } from "@smithy/types";
/**
* @internal
*/
export interface SharedConfigInit extends SourceProfileInit {

@@ -11,6 +14,10 @@ /**

}
/**
* @internal
*/
export type GetterFromConfig<T> = (profile: Profile, configFile?: ParsedIniData) => T | undefined;
/**
* Get config value from the shared config files with inferred profile name.
* @internal
*/
export declare const fromSharedConfigFiles: <T = string>(configSelector: GetterFromConfig<T>, { preferredFile, ...init }?: SharedConfigInit) => Provider<T>;
import { Provider } from "@smithy/types";
/**
* @internal
*/
export type FromStaticConfig<T> = T | (() => T) | Provider<T>;
/**
* @internal
*/
export declare const fromStatic: <T>(defaultValue: FromStaticConfig<T>) => Provider<T>;

@@ -5,3 +5,9 @@ import { Provider } from "@smithy/types";

import { FromStaticConfig } from "./fromStatic";
/**
* @internal
*/
export type LocalConfigOptions = SharedConfigInit;
/**
* @internal
*/
export interface LoadedConfigSelectors<T> {

@@ -23,2 +29,5 @@ /**

}
/**
* @internal
*/
export declare const loadConfig: <T = string>({ environmentVariableSelector, configFileSelector, default: defaultValue }: LoadedConfigSelectors<T>, configuration?: LocalConfigOptions) => Provider<T>;
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
import { ParsedIniData, Profile, Provider } from "@smithy/types";
/**
* @internal
*/
export interface SharedConfigInit extends SourceProfileInit {

@@ -11,6 +14,10 @@ /**

}
/**
* @internal
*/
export type GetterFromConfig<T> = (profile: Profile, configFile?: ParsedIniData) => T | undefined;
/**
* Get config value from the shared config files with inferred profile name.
* @internal
*/
export declare const fromSharedConfigFiles: <T = string>(configSelector: GetterFromConfig<T>, { preferredFile, ...init }?: SharedConfigInit) => Provider<T>;
import { Provider } from "@smithy/types";
/**
* @internal
*/
export type FromStaticConfig<T> = T | (() => T) | Provider<T>;
/**
* @internal
*/
export declare const fromStatic: <T>(defaultValue: FromStaticConfig<T>) => Provider<T>;

12

package.json
{
"name": "@smithy/node-config-provider",
"version": "3.1.12",
"version": "4.0.0",
"description": "Load config default values from ini config files and environmental variable",

@@ -28,9 +28,9 @@ "scripts": {

"dependencies": {
"@smithy/property-provider": "^3.1.11",
"@smithy/shared-ini-file-loader": "^3.1.12",
"@smithy/types": "^3.7.2",
"@smithy/property-provider": "^4.0.0",
"@smithy/shared-ini-file-loader": "^4.0.0",
"@smithy/types": "^4.0.0",
"tslib": "^2.6.2"
},
"devDependencies": {
"@types/node": "^16.18.96",
"@types/node": "^18.11.9",
"concurrently": "7.0.0",

@@ -42,3 +42,3 @@ "downlevel-dts": "0.10.1",

"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},

@@ -45,0 +45,0 @@ "typesVersions": {

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