Comparing version 14.1.1 to 14.2.0
@@ -9,2 +9,9 @@ # Changelog | ||
## [14.2.0](https://github.com/motdotla/dotenv/compare/v14.1.1...v14.2.0) (2022-01-17) | ||
### Added | ||
- Add `dotenv_config_override` cli option | ||
- Add `DOTENV_CONFIG_OVERRIDE` command line env option | ||
## [14.1.1](https://github.com/motdotla/dotenv/compare/v14.1.0...v14.1.1) (2022-01-17) | ||
@@ -11,0 +18,0 @@ |
@@ -1,2 +0,2 @@ | ||
const re = /^dotenv_config_(encoding|path|debug)=(.+)$/ | ||
const re = /^dotenv_config_(encoding|path|debug|override)=(.+)$/ | ||
@@ -3,0 +3,0 @@ module.exports = function optionMatcher (args) { |
@@ -16,2 +16,6 @@ // ../config.js accepts options via environment variables | ||
if (process.env.DOTENV_CONFIG_OVERRIDE != null) { | ||
options.override = process.env.DOTENV_CONFIG_OVERRIDE | ||
} | ||
module.exports = options |
{ | ||
"name": "dotenv", | ||
"version": "14.1.1", | ||
"version": "14.2.0", | ||
"description": "Loads environment variables from .env file", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
@@ -206,3 +206,3 @@ <p align="center"> | ||
```bash | ||
$ node -r dotenv/config your_script.js dotenv_config_path=/custom/path/to/.env | ||
$ node -r dotenv/config your_script.js dotenv_config_path=/custom/path/to/.env dotenv_config_debug=true | ||
``` | ||
@@ -217,3 +217,3 @@ | ||
```bash | ||
$ DOTENV_CONFIG_ENCODING=latin1 node -r dotenv/config your_script.js dotenv_config_path=/custom/path/to/.env | ||
$ DOTENV_CONFIG_ENCODING=latin1 DOTENV_CONFIG_DEBUG=true node -r dotenv/config your_script.js dotenv_config_path=/custom/path/to/.env | ||
``` | ||
@@ -220,0 +220,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30672
205