This commit is contained in:
2022-07-18 02:50:52 +00:00
parent befd344ab0
commit 06181b34d6
8569 changed files with 818704 additions and 352705 deletions
+1
View File
@@ -0,0 +1 @@
tidelift: "npm/dotenv"
+63 -8
View File
@@ -2,24 +2,79 @@
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.
## [9.0.2](https://github.com/motdotla/dotenv/compare/v9.0.1...v9.0.2) (2021-05-10)
### Changed
- Support windows newlines with debug mode
## [9.0.1](https://github.com/motdotla/dotenv/compare/v9.0.0...v9.0.1) (2021-05-08)
### Changed
- Updates to README
## [9.0.0](https://github.com/motdotla/dotenv/compare/v8.0.0...v9.0.0) (2021-05-05)
### Added
- define package.json in exports
- allow for `import "dotenv/config"`
### Changed
- updated dev dependencies via npm audit
- TypeScript types
- point to exact types file to work with VS Code
- _Breaking:_ drop support for Node v8
## [8.6.0](https://github.com/motdotla/dotenv/compare/v8.5.1...v8.6.0) (2021-05-05)
### Added
- define package.json in exports
## [8.5.1](https://github.com/motdotla/dotenv/compare/v8.5.0...v8.5.1) (2021-05-05)
### Changed
- updated dev dependencies via npm audit
## [8.5.0](https://github.com/motdotla/dotenv/compare/v8.4.0...v8.5.0) (2021-05-05)
### Added
- allow for `import "dotenv/config"`
## [8.4.0](https://github.com/motdotla/dotenv/compare/v8.3.0...v8.4.0) (2021-05-05)
### Changed
- point to exact types file to work with VS Code
## [8.3.0](https://github.com/motdotla/dotenv/compare/v8.2.0...v8.3.0) (2021-05-05)
### Changed
- _Breaking:_ drop support for Node v8
## [8.2.0](https://github.com/motdotla/dotenv/compare/v8.1.0...v8.2.0) (2019-10-16)
## [8.1.0](https://github.com/motdotla/dotenv/compare/v7.0.0...v8.1.0) (2019-08-18)
### Added
- TypeScript types
### ⚠ BREAKING CHANGES
## [8.1.0](https://github.com/motdotla/dotenv/compare/v8.0.0...v8.1.0) (2019-08-18)
* dropping Node v6 support because end-of-life
### Changed
* Drop support for Node v6 (#392) ([2e9636a](https://github.com/motdotla/dotenv/commit/2e9636a)), closes [#392](https://github.com/motdotla/dotenv/issues/392)
- _Breaking:_ drop support for Node v6 ([#392](https://github.com/motdotla/dotenv/issues/392))
# [8.0.0](https://github.com/motdotla/dotenv/compare/v7.0.0...v8.0.0) (2019-05-02)
- Drop support for Node v6 (#392) ([2e9636a](https://github.com/motdotla/dotenv/commit/2e9636a)), closes [#392](https://github.com/motdotla/dotenv/issues/392)
### Changed
### BREAKING CHANGES
- dropping Node v6 support because end-of-life
- _Breaking:_ drop support for Node v6 ([#302](https://github.com/motdotla/dotenv/issues/392))
## [7.0.0] - 2019-03-12
+6 -2
View File
@@ -1,3 +1,7 @@
<p align="center">
<strong>Announcement 📣</strong><br/>From the makers that brought you .env, introducing <a href="http://npmjs.org/package/@dotenv/cli">@dotenv/cli</a>.<br/>Sync your .env files across your machines and between your team members.<br/><a href="https://cli.dotenv.org">Join the early access list. 🕶</a>
</p>
# dotenv
<img src="https://raw.githubusercontent.com/motdotla/dotenv/master/dotenv.png" alt="dotenv" align="right" />
@@ -62,7 +66,7 @@ $ node -r dotenv/config your_script.js
The configuration options below are supported as command line arguments in the format `dotenv_config_<option>=value`
```bash
$ node -r dotenv/config your_script.js dotenv_config_path=/custom/path/to/your/env/vars
$ node -r dotenv/config your_script.js dotenv_config_path=/custom/path/to/.env
```
Additionally, you can use environment variables to set configuration options. Command line arguments will precede these.
@@ -102,7 +106,7 @@ Default: `path.resolve(process.cwd(), '.env')`
You may specify a custom path if your file containing environment variables is located elsewhere.
```js
require('dotenv').config({ path: '/full/custom/path/to/your/env/vars' })
require('dotenv').config({ path: '/custom/path/to/.env' })
```
#### Encoding
+1 -1
View File
@@ -31,7 +31,7 @@ function log (message /*: string */) {
const NEWLINE = '\n'
const RE_INI_KEY_VAL = /^\s*([\w.-]+)\s*=\s*(.*)?\s*$/
const RE_NEWLINES = /\\n/g
const NEWLINES_MATCH = /\n|\r|\r\n/
const NEWLINES_MATCH = /\r\n|\n|\r/
// Parses src into an Object
function parse (src /*: string | Buffer */, options /*: ?DotenvParseOptions */) /*: DotenvParseOutput */ {
+19 -14
View File
@@ -1,33 +1,33 @@
{
"_args": [
[
"dotenv@8.2.0",
"/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series"
"dotenv@9.0.2",
"/home/node/nuxt"
]
],
"_from": "dotenv@8.2.0",
"_id": "dotenv@8.2.0",
"_from": "dotenv@9.0.2",
"_id": "dotenv@9.0.2",
"_inBundle": false,
"_integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==",
"_integrity": "sha512-I9OvvrHp4pIARv4+x9iuewrWycX6CcZtoAu1XrzPxc5UygMJXJZYmBsynku8IkrJwgypE5DGNjDPmPRhDCptUg==",
"_location": "/dotenv",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "dotenv@8.2.0",
"raw": "dotenv@9.0.2",
"name": "dotenv",
"escapedName": "dotenv",
"rawSpec": "8.2.0",
"rawSpec": "9.0.2",
"saveSpec": null,
"fetchSpec": "8.2.0"
"fetchSpec": "9.0.2"
},
"_requiredBy": [
"/@nuxt/config",
"/@nuxt/telemetry"
],
"_resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz",
"_spec": "8.2.0",
"_where": "/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series",
"_resolved": "https://registry.npmjs.org/dotenv/-/dotenv-9.0.2.tgz",
"_spec": "9.0.2",
"_where": "/home/node/nuxt",
"bugs": {
"url": "https://github.com/motdotla/dotenv/issues"
},
@@ -44,7 +44,12 @@
"tap": "^14.7.0"
},
"engines": {
"node": ">=8"
"node": ">=10"
},
"exports": {
".": "./lib/main.js",
"./config": "./config.js",
"./package.json": "./package.json"
},
"homepage": "https://github.com/motdotla/dotenv#readme",
"keywords": [
@@ -78,6 +83,6 @@
"flow-typed/"
]
},
"types": "types",
"version": "8.2.0"
"types": "types/index.d.ts",
"version": "9.0.2"
}
+1 -1
View File
@@ -47,7 +47,7 @@ export interface DotenvConfigOutput {
}
/**
* Loads `.env` file contents into {@link https://nodejs.org/api/process.html#process_process_env | `process.env`}.
* Loads `.env` file contents into {@link https://nodejs.org/api/process.html#process_process_env `process.env`}.
* Example: 'KEY=value' becomes { parsed: { KEY: 'value' } }
*
* @param options - controls behavior