+1
-1
@@ -73,3 +73,3 @@ "use strict"; | ||
| if (mixed) { | ||
| return Object.assign(Object.assign({}, process.env), config); | ||
| process.env = Object.assign(Object.assign({}, process.env), config); | ||
| } | ||
@@ -76,0 +76,0 @@ return config; |
+4
-4
| { | ||
| "name": "dotenvr", | ||
| "version": "0.2.0", | ||
| "version": "0.2.1", | ||
| "description": "dotenv Recursion", | ||
| "main": "dist/index.js", | ||
| "main": "index.js", | ||
| "scripts": { | ||
@@ -40,3 +40,3 @@ "coverage": "istanbul cover _mocha -- -R spec --timeout 5000 --recursive", | ||
| "istanbul": "^0.4.5", | ||
| "mocha": "^8.1.3", | ||
| "mocha": "^5.1.0", | ||
| "nyc": "^14.1.1", | ||
@@ -55,2 +55,2 @@ "sinon": "^4.5.0", | ||
| } | ||
| } | ||
| } |
@@ -7,4 +7,3 @@ import { describe } from "mocha"; | ||
| it('parse-env', () => { | ||
| const config = Dotenvr.load('.env', false); | ||
| const config = Dotenvr.load('.env', true); | ||
| assert.deepEqual( | ||
@@ -23,3 +22,3 @@ config, | ||
| 'NUMBER': 123, | ||
| 'GOPATH': process.env.GOPATH, | ||
| 'GOPATH': 0, | ||
| 'ARR': ['a', 'b', 'c'], | ||
@@ -26,0 +25,0 @@ 'BOOL_TRUE_1': true, |
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
70669
-19.28%