Socket
Socket
Sign inDemoInstall

c12

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

c12 - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

13

dist/index.d.ts

@@ -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

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