@mitm/config
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -6,4 +6,4 @@ export * from './getters'; | ||
readonly timeZone: string; | ||
readonly logLevel: string; | ||
readonly logLevel: import("./parsers").StandardLogLevel; | ||
}; | ||
export default config; |
{ | ||
"name": "@mitm/config", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"dependencies": { | ||
@@ -10,5 +10,5 @@ "case": "^1.6.0" | ||
}, | ||
"main": "./config.umd.js", | ||
"module": "./config.esm.js", | ||
"main": "./index.umd.js", | ||
"module": "./index.esm.js", | ||
"typings": "./index.d.ts" | ||
} |
@@ -0,1 +1,2 @@ | ||
export declare type StandardLogLevel = 'error' | 'warn' | 'info' | 'http' | 'verbose' | 'debug' | 'silly'; | ||
export declare function asString(value: string): string; | ||
@@ -5,2 +6,3 @@ export declare function asBoolean(value: string): boolean; | ||
export declare function asNodeEnv(value: string): 'development' | 'production'; | ||
export declare function asLogLevel(value: string): StandardLogLevel; | ||
export declare function asCommaSeparatedStrings(value: string): string[]; |
# @mitm/config | ||
Une librairie portable (node, web, etc) contenant des utilitaires pour déclarer une configuration de projet basée sur des variables d'environnement. | ||
## Changelog | ||
### 2.1.0 | ||
- Ajout du parseur `asLogLevel` et utilisation dans la variable standard `config.logLevel`. |
export declare const wellKnown: { | ||
readonly nodeEnv: "development" | "production"; | ||
readonly timeZone: string; | ||
readonly logLevel: string; | ||
readonly logLevel: import("./parsers").StandardLogLevel; | ||
}; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
9733
211
10
1