Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cross-spawn

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cross-spawn - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

7

lib/resolveCommand.js

@@ -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);

4

package.json
{
"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": {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc