@dotenvx/dotenvx 1.24.3 → 1.24.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,27 +2,33 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
- ## [Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.24.3...main)
5
+ [Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.24.4...main)
6
6
 
7
- ## [1.24.3](https://github.com/dotenvx/dotenvx/compare/v1.24.2...1.24.3)
7
+ ## [1.24.4](https://github.com/dotenvx/dotenvx/compare/v1.24.3...v1.24.4)
8
+
9
+ ### Changed
10
+
11
+ * do not expand command substitution ([#456](https://github.com/dotenvx/dotenvx/pull/456))
12
+
13
+ ## [1.24.3](https://github.com/dotenvx/dotenvx/compare/v1.24.2...v1.24.3)
8
14
 
9
15
  ### Changed
10
16
 
11
17
  * 🐞 fix command substitution for more complex commands ([#455](https://github.com/dotenvx/dotenvx/pull/455))
12
18
 
13
- ## [1.24.2](https://github.com/dotenvx/dotenvx/compare/v1.24.1...1.24.2)
19
+ ## [1.24.2](https://github.com/dotenvx/dotenvx/compare/v1.24.1...v1.24.2)
14
20
 
15
21
  ### Changed
16
22
 
17
23
  * treat pre-existing expandable values as literal in `process.env` ([#450](https://github.com/dotenvx/dotenvx/pull/450))
18
24
 
19
- ## [1.24.1](https://github.com/dotenvx/dotenvx/compare/v1.24.0...1.24.1)
25
+ ## [1.24.1](https://github.com/dotenvx/dotenvx/compare/v1.24.0...v1.24.1)
20
26
 
21
27
  ### Changed
22
28
 
23
29
  * 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))
24
30
 
25
- ## 1.24.0
31
+ ## [1.24.0](https://github.com/dotenvx/dotenvx/compare/v1.23.0...v1.24.0)
26
32
 
27
33
  ### Added
28
34
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.24.3",
2
+ "version": "1.24.4",
3
3
  "name": "@dotenvx/dotenvx",
4
4
  "description": "a better dotenv–from the creator of `dotenv`",
5
5
  "author": "@motdotla",
@@ -44,12 +44,17 @@ class Parse {
44
44
  }
45
45
 
46
46
  // eval empty, double, or backticks
47
+ let evaled = false
47
48
  if (quote !== "'" && (!this.inProcessEnv(key) || this.processEnv[key] === this.parsed[key])) {
48
- this.parsed[key] = this.eval(this.parsed[key])
49
+ const priorEvaled = this.parsed[key]
50
+ this.parsed[key] = this.eval(priorEvaled)
51
+ if (priorEvaled !== this.parsed[key]) {
52
+ evaled = true
53
+ }
49
54
  }
50
55
 
51
56
  // expand empty, double, or backticks
52
- if (quote !== "'" && !this.processEnv[key]) {
57
+ if (!evaled && quote !== "'" && !this.processEnv[key]) {
53
58
  this.parsed[key] = resolveEscapeSequences(this.expand(this.parsed[key]))
54
59
  }
55
60