@dotenvx/dotenvx 0.44.0 → 0.44.1

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/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
   
10
10
 
11
11
 
12
- ### Quickstart
12
+ ### Quickstart [![NPM version](https://img.shields.io/npm/v/@dotenvx/dotenvx.svg?style=flat-square)](https://www.npmjs.com/package/@dotenvx/dotenvx)
13
13
 
14
14
  Install and use it in code just like `dotenv`.
15
15
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.44.0",
2
+ "version": "0.44.1",
3
3
  "name": "@dotenvx/dotenvx",
4
4
  "description": "a better dotenv–from the creator of `dotenv`",
5
5
  "author": "@motdotla",
@@ -23,7 +23,12 @@ function decryptValue (value, privateKey) {
23
23
  }
24
24
  }
25
25
 
26
- return decryptedValue || value
26
+ // return 'encrypted:string' value if undefined or null
27
+ if (decryptedValue === undefined || decryptedValue === null) {
28
+ return value
29
+ }
30
+
31
+ return decryptedValue
27
32
  }
28
33
 
29
34
  module.exports = decryptValue