You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@dotenvx/dotenvx

Package Overview
Dependencies
Maintainers
2
Versions
200
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dotenvx/dotenvx - npm Package Compare versions

Comparing version

to
1.24.1

8

CHANGELOG.md

@@ -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 @@

2

package.json
{
"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]