Comparing version 0.1.1 to 0.1.2
@@ -41,5 +41,8 @@ interface DotenvOptions { | ||
config: T; | ||
cwd?: string; | ||
configFile?: string; | ||
layers?: ResolvedConfig<T>[]; | ||
} | ||
interface ResolveConfigOptions { | ||
cwd: string; | ||
configFile: string; | ||
layers: ResolvedConfig<T>[]; | ||
} | ||
@@ -55,5 +58,9 @@ interface LoadConfigOptions<T extends InputConfig = InputConfig> { | ||
overrides?: T; | ||
resolve?: (id: string, opts: LoadConfigOptions) => null | ResolvedConfig | Promise<ResolvedConfig | null>; | ||
extend?: false | { | ||
extendKey?: string; | ||
}; | ||
} | ||
declare function loadConfig<T extends InputConfig = InputConfig>(opts: LoadConfigOptions<T>): Promise<ResolvedConfig<T>>; | ||
export { DotenvOptions, Env, InputConfig, LoadConfigOptions, ResolvedConfig, loadConfig, loadDotenv, setupDotenv }; | ||
export { DotenvOptions, Env, InputConfig, LoadConfigOptions, ResolveConfigOptions, ResolvedConfig, loadConfig, loadDotenv, setupDotenv }; |
{ | ||
"name": "c12", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Smart Config Loader", | ||
@@ -5,0 +5,0 @@ "repository": "unjs/c12", |
@@ -16,3 +16,3 @@ # c12 | ||
- `.env` support with [dotenv](https://www.npmjs.com/package/dotenv) | ||
- Support extending nested configurations from multiple local or git sourecs | ||
- Support extending nested configurations from multiple local or git sources | ||
@@ -19,0 +19,0 @@ ## Usage |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
21227
435