cross-spawn
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -8,3 +8,2 @@ 'use strict'; | ||
var commandCache = new LRU({ max: 50, maxAge: 30 * 1000 }); // Cache just for 30sec | ||
var hasSepInPathRegExp = new RegExp(process.platform === 'win32' ? /[\/\\]/ : /\//); | ||
@@ -14,8 +13,2 @@ function resolveCommand(command, noExtension) { | ||
// If command looks like a file path, make it absolute to make it canonical | ||
// and also to circuvent a bug in which, see: https://github.com/npm/node-which/issues/33 | ||
if (hasSepInPathRegExp.test(command)) { | ||
command = path.resolve(command); | ||
} | ||
noExtension = !!noExtension; | ||
@@ -22,0 +15,0 @@ resolved = commandCache.get(command + '!' + noExtension); |
{ | ||
"name": "cross-spawn", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Cross platform child_process#spawn and child_process#spawnSync", | ||
@@ -36,3 +36,3 @@ "main": "index.js", | ||
"lru-cache": "^4.0.1", | ||
"which": "^1.2.8" | ||
"which": "^1.2.9" | ||
}, | ||
@@ -39,0 +39,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1
13673
222
Updatedwhich@^1.2.9