@dotenvx/dotenvx
Advanced tools
Comparing version
@@ -5,4 +5,10 @@ # Changelog | ||
## [Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.24.0...main) | ||
## [Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.24.1...main) | ||
## 1.24.1 | ||
### Changed | ||
* bump `cross-spawn` to prevent potential ReDoS [CVE-2024-21538](https://github.com/advisories/ghsa-3xgq-45jj-v275) ([#449](https://github.com/dotenvx/dotenvx/pull/449)) | ||
## 1.24.0 | ||
@@ -9,0 +15,0 @@ |
{ | ||
"version": "1.24.0", | ||
"version": "1.24.1", | ||
"name": "@dotenvx/dotenvx", | ||
@@ -4,0 +4,0 @@ "description": "a better dotenv–from the creator of `dotenv`", |
@@ -160,12 +160,17 @@ const chomp = require('./chomp') | ||
let key | ||
let defaultValue | ||
let value | ||
const key = r.shift() | ||
// short-circuit if exact value already in process.env already | ||
// const inProcessEnv = Object.prototype.hasOwnProperty.call(this.processEnv, key) | ||
// if (!this.overload && !!this.processEnv[key] && (env[key] === this.processEnv[key])) { | ||
// return this.processEnv[key] | ||
// } | ||
if ([':+', '+'].includes(splitter)) { | ||
key = r.shift() | ||
defaultValue = env[key] ? r.join(splitter) : '' | ||
value = null | ||
} else { | ||
key = r.shift() | ||
defaultValue = r.join(splitter) | ||
@@ -172,0 +177,0 @@ value = env[key] |
217062
0.22%3653
0.08%