Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dotenvx/dotenvx

Package Overview
Dependencies
Maintainers
0
Versions
187
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 1.30.0 to 1.30.1

10

CHANGELOG.md

@@ -5,4 +5,10 @@ # Changelog

[Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.30.0...main)
[Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.30.1...main)
## [1.30.1](https://github.com/dotenvx/dotenvx/compare/v1.30.0...v1.30.1)
### Added
* support complex command substitution combining variable expansion ([#490](https://github.com/dotenvx/dotenvx/pull/490))
## [1.30.0](https://github.com/dotenvx/dotenvx/compare/v1.29.0...v1.30.0)

@@ -14,3 +20,3 @@

This is great for monorepos. Maintain one `.env.keys` file across multiple monorepos `.env*` files.
This is great for monorepos. Maintain one `.env.keys` file across all your apps.

@@ -17,0 +23,0 @@ ```sh

2

package.json
{
"version": "1.30.0",
"version": "1.30.1",
"name": "@dotenvx/dotenvx",

@@ -4,0 +4,0 @@ "description": "a better dotenv–from the creator of `dotenv`",

@@ -139,6 +139,5 @@ const chomp = require('./chomp')

const matches = value.match(/\$\(([^)]+(?:\)[^(]*)*)\)/g) || []
return matches.reduce(function (newValue, match) {
return matches.reduce((newValue, match) => {
const command = match.slice(2, -1) // Extract command by removing $() wrapper
const result = chomp(execSync(command).toString()) // execute command
const result = chomp(execSync(command, { env: { ...this.processEnv, ...this.runningParsed } }).toString()) // execute command (including runningParsed)
return newValue.replace(match, result) // Replace match with result

@@ -145,0 +144,0 @@ }, value)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc