Comparing version 0.2.10 to 0.2.11
@@ -0,1 +1,4 @@ | ||
import { JITI } from 'jiti'; | ||
import { JITIOptions } from 'jiti/dist/types'; | ||
interface DotenvOptions { | ||
@@ -61,2 +64,4 @@ /** | ||
resolve?: (id: string, opts: LoadConfigOptions) => null | ResolvedConfig | Promise<ResolvedConfig | null>; | ||
jiti?: JITI; | ||
jitiOptions?: JITIOptions; | ||
extend?: false | { | ||
@@ -63,0 +68,0 @@ extendKey?: string | string[]; |
{ | ||
"name": "c12", | ||
"version": "0.2.10", | ||
"version": "0.2.11", | ||
"description": "Smart Config Loader", | ||
@@ -22,20 +22,21 @@ "repository": "unjs/c12", | ||
"dependencies": { | ||
"defu": "^6.0.0", | ||
"dotenv": "^16.0.1", | ||
"defu": "^6.1.0", | ||
"dotenv": "^16.0.2", | ||
"gittar": "^0.1.1", | ||
"jiti": "^1.14.0", | ||
"mlly": "^0.5.11", | ||
"pathe": "^0.3.4", | ||
"jiti": "^1.15.0", | ||
"mlly": "^0.5.14", | ||
"pathe": "^0.3.7", | ||
"pkg-types": "^0.3.5", | ||
"rc9": "^1.2.2" | ||
}, | ||
"devDependencies": { | ||
"@nuxtjs/eslint-config-typescript": "latest", | ||
"c8": "latest", | ||
"eslint": "latest", | ||
"standard-version": "latest", | ||
"typescript": "latest", | ||
"unbuild": "latest", | ||
"vitest": "latest" | ||
"@nuxtjs/eslint-config-typescript": "^11.0.0", | ||
"@vitest/coverage-c8": "^0.23.1", | ||
"eslint": "^8.23.0", | ||
"standard-version": "^9.5.0", | ||
"typescript": "^4.8.2", | ||
"unbuild": "^0.8.10", | ||
"vitest": "^0.23.1" | ||
}, | ||
"packageManager": "pnpm@7.9.0", | ||
"packageManager": "pnpm@7.11.0", | ||
"scripts": { | ||
@@ -42,0 +43,0 @@ "build": "unbuild", |
@@ -88,3 +88,3 @@ # c12 | ||
Load RC config from the user's home directory. Only enabled when `rcFile` is provided. Set to `false` to disable this functionality. | ||
Load RC config from the workspace directory and user's home directory. Only enabled when `rcFile` is provided. Set to `false` to disable this functionality. | ||
@@ -103,2 +103,10 @@ ### `dotenv` | ||
### `jiti` | ||
Custom [unjs/jiti](https://github.com/unjs/jiti) instance used to import configuration files. | ||
### `jitiOptions` | ||
Custom [unjs/jiti](https://github.com/unjs/jiti) options to import configuration files. | ||
## Extending configuration | ||
@@ -105,0 +113,0 @@ |
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
24435
535
212
8
+ Addedpkg-types@^0.3.5
+ Addedjsonc-parser@3.3.1(transitive)
+ Addedpkg-types@0.3.6(transitive)
Updateddefu@^6.1.0
Updateddotenv@^16.0.2
Updatedjiti@^1.15.0
Updatedmlly@^0.5.14
Updatedpathe@^0.3.7