@dotenvx/dotenvx 1.14.1 → 1.14.2

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,13 @@
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.14.1...main)
5
+ ## [Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.14.2...main)
6
+
7
+ ## 1.14.2
8
+
9
+ ### Changed
10
+
11
+ * swap `process.stdout.write` for `console.log` to patch up npx edge case ([#387](https://github.com/dotenvx/dotenvx/pull/387))
6
12
 
7
13
  ## 1.14.1
8
14
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.14.1",
2
+ "version": "1.14.2",
3
3
  "name": "@dotenvx/dotenvx",
4
4
  "description": "a better dotenv–from the creator of `dotenv`",
5
5
  "author": "@motdotla",
@@ -22,7 +22,7 @@ function decrypt () {
22
22
  errorCount += 1
23
23
  console.error(processedEnvFile.error.message)
24
24
  } else {
25
- process.stdout.write(processedEnvFile.envSrc)
25
+ console.log(processedEnvFile.envSrc)
26
26
  }
27
27
  }
28
28
 
@@ -18,7 +18,7 @@ function encrypt () {
18
18
  } = main.encrypt(options.envFile, options.key, options.excludeKey)
19
19
 
20
20
  for (const processedEnvFile of processedEnvFiles) {
21
- process.stdout.write(processedEnvFile.envSrc)
21
+ console.log(processedEnvFile.envSrc)
22
22
  }
23
23
  process.exit(0) // exit early
24
24
  } else {
@@ -31,7 +31,7 @@ function get (key) {
31
31
  }
32
32
  inline = inline.trim()
33
33
 
34
- process.stdout.write(inline)
34
+ console.log(inline)
35
35
  // json format
36
36
  } else {
37
37
  let space = 0
@@ -39,14 +39,14 @@ function get (key) {
39
39
  space = 2
40
40
  }
41
41
 
42
- process.stdout.write(JSON.stringify(results, null, space))
42
+ console.log(JSON.stringify(results, null, space))
43
43
  }
44
44
  } else {
45
45
  if (results === undefined) {
46
- process.stdout.write('')
46
+ console.log('')
47
47
  process.exit(1)
48
48
  } else {
49
- process.stdout.write(results)
49
+ console.log(results)
50
50
  }
51
51
  }
52
52
  }
@@ -18,13 +18,13 @@ function keypair (key) {
18
18
  space = 2
19
19
  }
20
20
 
21
- process.stdout.write(JSON.stringify(results, null, space))
21
+ console.log(JSON.stringify(results, null, space))
22
22
  } else {
23
23
  if (results === undefined) {
24
- process.stdout.write('')
24
+ console.log('')
25
25
  process.exit(1)
26
26
  } else {
27
- process.stdout.write(results)
27
+ console.log(results)
28
28
  }
29
29
  }
30
30
  }