@dotenvx/dotenvx 1.48.2 → 1.48.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 +13 -1
- package/README.md +1996 -1902
- package/package.json +3 -3
- package/src/lib/helpers/proKeypair.js +3 -7
- package/src/lib/services/run.js +2 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.48.
|
|
2
|
+
"version": "1.48.4",
|
|
3
3
|
"name": "@dotenvx/dotenvx",
|
|
4
|
-
"description": "a
|
|
4
|
+
"description": "a secure dotenv–from the creator of `dotenv`",
|
|
5
5
|
"author": "@motdotla",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"dotenv",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"funding": "https://dotenvx.com",
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"commander": "^11.1.0",
|
|
47
|
-
"dotenv": "^
|
|
47
|
+
"dotenv": "^17.2.1",
|
|
48
48
|
"eciesjs": "^0.4.10",
|
|
49
49
|
"execa": "^5.1.1",
|
|
50
50
|
"fdir": "^6.2.0",
|
|
@@ -13,13 +13,9 @@ class ProKeypair {
|
|
|
13
13
|
let result = {}
|
|
14
14
|
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
const dotenvxProPath = eval('require').resolve('@dotenvx/dotenvx-pro', { paths: [projectRoot] }) // necessary for webpack builds
|
|
20
|
-
// eslint-disable-next-line no-eval
|
|
21
|
-
const { keypair } = eval('require')(dotenvxProPath) // necessary for webpack builds
|
|
22
|
-
result = keypair(this.envFilepath)
|
|
16
|
+
const fallbackBin = path.resolve(process.cwd(), 'node_modules/.bin/dotenvx-pro')
|
|
17
|
+
const output = childProcess.execSync(`${fallbackBin} keypair -f ${this.envFilepath}`, { stdio: ['pipe', 'pipe', 'ignore'] }).toString().trim()
|
|
18
|
+
result = JSON.parse(output)
|
|
23
19
|
} catch (_e) {
|
|
24
20
|
try {
|
|
25
21
|
// if installed as binary cli
|
package/src/lib/services/run.js
CHANGED
|
@@ -100,6 +100,8 @@ class Run {
|
|
|
100
100
|
const privateKeyName = guessPrivateKeyName(envFilepath)
|
|
101
101
|
const { parsed, errors, injected, preExisted } = new Parse(src, privateKey, this.processEnv, this.overload, privateKeyName).run()
|
|
102
102
|
|
|
103
|
+
row.privateKeyName = privateKeyName
|
|
104
|
+
row.privateKey = privateKey
|
|
103
105
|
row.src = src
|
|
104
106
|
row.parsed = parsed
|
|
105
107
|
row.errors = errors
|