npm package diff
Package: cross-spawn
Versions: 7.0.3 - 7.0.6
File: package/lib/enoent.js
Index: package/lib/enoent.js
===================================================================
--- package/lib/enoent.js
+++ package/lib/enoent.js
@@ -23,9 +23,9 @@
// If emitting "exit" event and exit code is 1, we need to check if
// the command exists and emit an "error" instead
// See https://github.com/IndigoUnited/node-cross-spawn/issues/16
if (name === 'exit') {
- const err = verifyENOENT(arg1, parsed, 'spawn');
+ const err = verifyENOENT(arg1, parsed);
if (err) {
return originalEmit.call(cp, 'error', err);
}