dotenv-expand
Advanced tools
Comparing version 11.0.4 to 11.0.5
@@ -1,1 +0,1 @@ | ||
{"processes":{"1b59f303-7b45-477a-abcd-fdf1459548e6":{"parent":"2dd5a83d-8519-4181-819d-d60aae04c240","externalId":"tests/main.js","children":[]},"2dd5a83d-8519-4181-819d-d60aae04c240":{"parent":null,"children":["1b59f303-7b45-477a-abcd-fdf1459548e6"]}},"files":{"/Users/scottmotte/Code/motdotla/dotenv-expand/lib/main.js":["1b59f303-7b45-477a-abcd-fdf1459548e6"]},"externalIds":{"tests/main.js":{"root":"1b59f303-7b45-477a-abcd-fdf1459548e6","children":[]}}} | ||
{"processes":{"1e84002f-9109-4f52-9e1c-40de836217f9":{"parent":null,"children":["49212aef-7a36-490a-9c90-cb9daeeaa4a8"]},"49212aef-7a36-490a-9c90-cb9daeeaa4a8":{"parent":"1e84002f-9109-4f52-9e1c-40de836217f9","externalId":"tests/main.js","children":[]}},"files":{"/Users/scottmotte/Code/motdotla/dotenv-expand/lib/main.js":["49212aef-7a36-490a-9c90-cb9daeeaa4a8"]},"externalIds":{"tests/main.js":{"root":"49212aef-7a36-490a-9c90-cb9daeeaa4a8","children":[]}}} |
@@ -5,4 +5,10 @@ # Changelog | ||
## [Unreleased](https://github.com/motdotla/dotenv-expand/compare/v11.0.4...master) | ||
## [Unreleased](https://github.com/motdotla/dotenv-expand/compare/v11.0.5...master) | ||
## [11.0.5](https://github.com/motdotla/dotenv-expand/compare/v11.0.4...v11.0.5) (2024-02-17) | ||
### Changed | ||
- 🐞 fix recursive expansion when expansion key is sourced from `process.env` ([#121](https://github.com/motdotla/dotenv-expand/pull/121)) | ||
## [11.0.4](https://github.com/motdotla/dotenv-expand/compare/v11.0.3...v11.0.4) (2024-02-15) | ||
@@ -9,0 +15,0 @@ |
@@ -25,3 +25,8 @@ 'use strict' | ||
if (processEnv[key]) { | ||
return processEnv[key] | ||
if (processEnv[key] === parsed[key]) { | ||
return processEnv[key] | ||
} else { | ||
// scenario: PASSWORD_EXPAND_NESTED=${PASSWORD_EXPAND} | ||
return interpolate(processEnv[key], processEnv, parsed) | ||
} | ||
} | ||
@@ -61,3 +66,2 @@ | ||
const inProcessEnv = Object.prototype.hasOwnProperty.call(processEnv, key) | ||
if (inProcessEnv) { | ||
@@ -64,0 +68,0 @@ if (processEnv[key] === options.parsed[key]) { |
{ | ||
"name": "dotenv-expand", | ||
"version": "11.0.4", | ||
"version": "11.0.5", | ||
"description": "Expand environment variables using dotenv", | ||
@@ -54,4 +54,4 @@ "main": "lib/main.js", | ||
"dependencies": { | ||
"dotenv": "^16.4.1" | ||
"dotenv": "^16.4.4" | ||
} | ||
} |
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
25996
128
Updateddotenv@^16.4.4