@dotenvx/dotenvx 1.47.6 → 1.48.0

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,7 +2,19 @@
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.47.6...main)
5
+ [Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.48.0...main)
6
+
7
+ ## 1.48.0
8
+
9
+ ### Added
10
+
11
+ * Include `beforeEnv` and `afterEnv` for user debugging ([#644](https://github.com/dotenvx/dotenvx/pull/644))
12
+
13
+ ## 1.47.7
14
+
15
+ ### Changed
16
+
17
+ * `src` should be in internal `processEnv` object ([#643](https://github.com/dotenvx/dotenvx/pull/643))
6
18
 
7
19
  ## 1.47.6
8
20
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.47.6",
2
+ "version": "1.48.0",
3
3
  "name": "@dotenvx/dotenvx",
4
4
  "description": "a better dotenv–from the creator of `dotenv`",
5
5
  "author": "@motdotla",
@@ -27,6 +27,7 @@ class Run {
27
27
  this.readableFilepaths = new Set()
28
28
  this.readableStrings = new Set()
29
29
  this.uniqueInjectedKeys = new Set()
30
+ this.beforeEnv = { ...this.processEnv }
30
31
  }
31
32
 
32
33
  run () {
@@ -52,7 +53,9 @@ class Run {
52
53
  processedEnvs: this.processedEnvs,
53
54
  readableStrings: [...this.readableStrings],
54
55
  readableFilepaths: [...this.readableFilepaths],
55
- uniqueInjectedKeys: [...this.uniqueInjectedKeys]
56
+ uniqueInjectedKeys: [...this.uniqueInjectedKeys],
57
+ beforeEnv: this.beforeEnv,
58
+ afterEnv: { ...this.processEnv }
56
59
  }
57
60
  }
58
61
 
@@ -97,6 +100,7 @@ class Run {
97
100
  const privateKeyName = guessPrivateKeyName(envFilepath)
98
101
  const { parsed, errors, injected, preExisted } = new Parse(src, privateKey, this.processEnv, this.overload, privateKeyName).run()
99
102
 
103
+ row.src = src
100
104
  row.parsed = parsed
101
105
  row.errors = errors
102
106
  row.injected = injected