File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -90,10 +90,19 @@ export interface DotenvConfigOptions {
9090}
9191
9292export interface DotenvConfigOutput {
93- error ?: Error ;
93+ error ?: DotenvError ;
9494 parsed ?: DotenvParseOutput ;
9595}
9696
97+ type DotenvError = Error & {
98+ code :
99+ | 'MISSING_DATA'
100+ | 'INVALID_DOTENV_KEY'
101+ | 'NOT_FOUND_DOTENV_ENVIRONMENT'
102+ | 'DECRYPTION_FAILED'
103+ | 'OBJECT_REQUIRED' ;
104+ }
105+
97106export interface DotenvPopulateOptions {
98107 /**
99108 * Default: `false`
Original file line number Diff line number Diff line change 2020 },
2121 "scripts" : {
2222 "dts-check" : " tsc --project tests/types/tsconfig.json" ,
23- "lint" : " standard" ,
23+ "lint" : " npx standard" ,
2424 "pretest" : " npm run lint && npm run dts-check" ,
25- "test" : " tap run --allow-empty-coverage --disable-coverage --timeout=60000" ,
26- "test:coverage" : " tap run --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov" ,
25+ "test" : " npx tap run --allow-empty-coverage --disable-coverage --timeout=60000" ,
26+ "test:coverage" : " npx tap run --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov" ,
2727 "prerelease" : " npm test" ,
2828 "release" : " standard-version"
2929 },
You can’t perform that action at this time.
0 commit comments