@smithy/node-config-provider
Advanced tools
Comparing version 3.1.12 to 4.0.0
@@ -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>; |
{ | ||
"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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26795
308
+ Added@smithy/property-provider@4.0.0(transitive)
+ Added@smithy/shared-ini-file-loader@4.0.0(transitive)
+ Added@smithy/types@4.0.0(transitive)
- Removed@smithy/property-provider@3.1.11(transitive)
- Removed@smithy/shared-ini-file-loader@3.1.12(transitive)
- Removed@smithy/types@3.7.2(transitive)
Updated@smithy/types@^4.0.0