env-cmd
Advanced tools
Comparing version 10.0.0 to 10.0.1
# Changelog | ||
## 10.0.1 | ||
- **Fix**: Fixed bug introduced by strict equal checking for `undefined` when the value was `null`. This | ||
bug caused most executions of `env-cmd` to fail with an error, when in fact no error had occurred. | ||
## 10.0.0 | ||
@@ -4,0 +9,0 @@ |
@@ -40,3 +40,3 @@ "use strict"; | ||
environmentFound = true; | ||
result = Object.assign({}, result, envVars); | ||
result = Object.assign(Object.assign({}, result), envVars); | ||
} | ||
@@ -43,0 +43,0 @@ }); |
@@ -29,5 +29,6 @@ "use strict"; | ||
this._removeProcessListeners(); | ||
const convertedSignal = signal != null ? signal : undefined; | ||
if (!this._exitCalled) { | ||
this._exitCalled = true; | ||
this._terminateProcess(code, signal); | ||
this._terminateProcess(code, convertedSignal); | ||
} | ||
@@ -34,0 +35,0 @@ }); |
@@ -28,4 +28,4 @@ "use strict"; | ||
function isPromise(value) { | ||
return value !== undefined && typeof value.then === 'function'; | ||
return value != null && typeof value.then === 'function'; | ||
} | ||
exports.isPromise = isPromise; |
{ | ||
"name": "env-cmd", | ||
"version": "10.0.0", | ||
"version": "10.0.1", | ||
"description": "Executes a command using the environment variables in an env file", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
38199
585