@dotenvx/dotenvx 0.44.0 → 0.44.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/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
 
@@ -240,7 +240,7 @@ More examples
240
240
  ```sh
241
241
  FROM node:latest
242
242
  RUN echo "HELLO=World" > .env && echo "console.log('Hello ' + process.env.HELLO)" > index.js
243
- RUN curl -fsS https://dotenvx.sh/ | sh
243
+ RUN curl -fsS https://dotenvx.sh/install.sh | sh
244
244
  CMD ["dotenvx", "run", "--", "echo", "Hello $HELLO"]
245
245
  ```
246
246
 
@@ -261,7 +261,7 @@ More examples
261
261
  - uses: actions/setup-node@v3
262
262
  with:
263
263
  node-version: 16
264
- - run: curl -fsS https://dotenvx.sh/ | sh
264
+ - run: curl -fsS https://dotenvx.sh/install.sh | sh
265
265
  - run: dotenvx run -- node build.js
266
266
  env:
267
267
  DOTENV_KEY: ${{ secrets.DOTENV_KEY }}
@@ -277,7 +277,7 @@ More examples
277
277
  heroku buildpacks:add https://github.com/dotenvx/heroku-buildpack-dotenvx
278
278
 
279
279
  # docker
280
- RUN curl -fsS https://dotenvx.sh/ | sh
280
+ RUN curl -fsS https://dotenvx.sh/install.sh | sh
281
281
 
282
282
  # vercel
283
283
  npm install @dotenvx/dotenvx --save
@@ -1173,7 +1173,7 @@ More examples
1173
1173
  Add it to your `Dockerfile`.
1174
1174
 
1175
1175
  ```sh
1176
- RUN curl -fsS https://dotenvx.sh/ | sh
1176
+ RUN curl -fsS https://dotenvx.sh/install.sh | sh
1177
1177
 
1178
1178
  ...
1179
1179
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.44.0",
2
+ "version": "0.44.2",
3
3
  "name": "@dotenvx/dotenvx",
4
4
  "description": "a better dotenv–from the creator of `dotenv`",
5
5
  "author": "@motdotla",
@@ -9,7 +9,7 @@
9
9
  ],
10
10
  "homepage": "https://github.com/dotenvx/dotenvx",
11
11
  "repository": "dotenvx/dotenvx",
12
- "license": "MIT",
12
+ "license": "BSD-3-Clause",
13
13
  "files": [
14
14
  "src/**/*"
15
15
  ],
@@ -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