dotenv-mono
Advanced tools
Comparing version 1.3.9 to 1.3.10
@@ -253,4 +253,5 @@ "use strict"; | ||
return; | ||
if (loadOnProcess) { | ||
let config = dotenv_1.default.config({ | ||
const plain = fs_1.default.readFileSync(file, { encoding: this.encoding, flag: "r" }); | ||
const config = loadOnProcess | ||
? dotenv_1.default.config({ | ||
path: file, | ||
@@ -260,9 +261,12 @@ debug: this.debug, | ||
override: !defaults && this.override, | ||
}); | ||
if (this.expand) | ||
config = dotenv_expand_1.default.expand(config); | ||
this.mergeDotenvConfig(config); | ||
} | ||
}) | ||
: { | ||
parsed: this.parse(plain), | ||
ignoreProcessEnv: true, | ||
}; | ||
if (this.expand) | ||
dotenv_expand_1.default.expand(config); | ||
this.mergeDotenvConfig(config); | ||
if (!defaults) | ||
this.plain = fs_1.default.readFileSync(file, { encoding: this.encoding, flag: "r" }); | ||
this.plain = plain; | ||
} | ||
@@ -269,0 +273,0 @@ /** |
{ | ||
"name": "dotenv-mono", | ||
"version": "1.3.9", | ||
"version": "1.3.10", | ||
"main": "./dist/index.js", | ||
@@ -42,22 +42,22 @@ "module": "./dist/index.js", | ||
"devDependencies": { | ||
"@types/jest": "^29.2.4", | ||
"@types/jest": "^29.4.0", | ||
"@types/mock-fs": "^4.13.1", | ||
"@types/node": "^18.11.17", | ||
"@typescript-eslint/eslint-plugin": "^5.47.0", | ||
"@typescript-eslint/parser": "^5.47.0", | ||
"eslint": "^8.30.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-jest": "^27.1.7", | ||
"@types/node": "^18.14.0", | ||
"@typescript-eslint/eslint-plugin": "^5.52.0", | ||
"@typescript-eslint/parser": "^5.52.0", | ||
"eslint": "^8.34.0", | ||
"eslint-config-prettier": "^8.6.0", | ||
"eslint-plugin-jest": "^27.2.1", | ||
"eslint-plugin-jest-extended": "^2.0.0", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"eslint-plugin-simple-import-sort": "^8.0.0", | ||
"husky": "^8.0.2", | ||
"jest": "^29.3.1", | ||
"jest-extended": "^3.2.0", | ||
"lint-staged": "^13.1.0", | ||
"eslint-plugin-simple-import-sort": "^10.0.0", | ||
"husky": "^8.0.3", | ||
"jest": "^29.4.3", | ||
"jest-extended": "^3.2.4", | ||
"lint-staged": "^13.1.2", | ||
"mock-fs": "^5.2.0", | ||
"prettier": "^2.8.1", | ||
"prettier": "^2.8.4", | ||
"standard-version": "^9.5.0", | ||
"ts-jest": "^29.0.3", | ||
"typescript": "^4.9.4" | ||
"ts-jest": "^29.0.5", | ||
"typescript": "^4.9.5" | ||
}, | ||
@@ -64,0 +64,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
62202
911