Socket
Socket
Sign inDemoInstall

env-cmd

Package Overview
Dependencies
9
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 10.0.0 to 10.0.1

5

CHANGELOG.md
# 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 @@

2

dist/parse-rc-file.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc