Comparing version 16.3.0 to 16.3.1
@@ -5,4 +5,10 @@ # Changelog | ||
## [Unreleased](https://github.com/motdotla/dotenv/compare/v16.3.0...master) | ||
## [Unreleased](https://github.com/motdotla/dotenv/compare/v16.3.1...master) | ||
## [16.3.1](https://github.com/motdotla/dotenv/compare/v16.3.0...v16.3.1) (2023-06-17) | ||
### Added | ||
- Add missing type definitions for `processEnv` and `DOTENV_KEY` options. [#756](https://github.com/motdotla/dotenv/pull/756) | ||
## [16.3.0](https://github.com/motdotla/dotenv/compare/v16.2.0...v16.3.0) (2023-06-16) | ||
@@ -9,0 +15,0 @@ |
@@ -58,2 +58,20 @@ // TypeScript Version: 3.0 | ||
override?: boolean; | ||
/** | ||
* Default: `process.env` | ||
* | ||
* Specify an object to write your secrets to. Defaults to process.env environment variables. | ||
* | ||
* example: `const processEnv = {}; require('dotenv').config({ processEnv: processEnv })` | ||
*/ | ||
processEnv?: DotenvPopulateInput; | ||
/** | ||
* Default: `undefined` | ||
* | ||
* Pass the DOTENV_KEY directly to config options. Defaults to looking for process.env.DOTENV_KEY environment variable. Note this only applies to decrypting .env.vault files. If passed as null or undefined, or not passed at all, dotenv falls back to its traditional job of parsing a .env file. | ||
* | ||
* example: `require('dotenv').config({ DOTENV_KEY: 'dotenv://:key_1234β¦@dotenv.org/vault/.env.vault?environment=production' })` | ||
*/ | ||
DOTENV_KEY?: string; | ||
} | ||
@@ -60,0 +78,0 @@ |
{ | ||
"name": "dotenv", | ||
"version": "16.3.0", | ||
"version": "16.3.1", | ||
"description": "Loads environment variables from .env file", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
@@ -246,2 +246,3 @@ <div align="center"> | ||
* [nodejs (processEnv override)](https://github.com/dotenv-org/examples/tree/master/dotenv-custom-target) | ||
* [nodejs (DOTENV_KEY override)](https://github.com/dotenv-org/examples/tree/master/dotenv-vault-custom-target) | ||
* [esm](https://github.com/dotenv-org/examples/tree/master/dotenv-esm) | ||
@@ -248,0 +249,0 @@ * [esm (preload)](https://github.com/dotenv-org/examples/tree/master/dotenv-esm-preload) |
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
71560
426
634