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 7.0.2 to 7.0.3

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [7.0.3](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.2...v7.0.3) (2020-05-25)
### Bug Fixes
* detect path key based on correct environment ([#133](https://github.com/moxystudio/node-cross-spawn/issues/133)) ([159e7e9](https://github.com/moxystudio/node-cross-spawn/commit/159e7e9785e57451cba034ae51719f97135074ae))
### [7.0.2](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.1...v7.0.2) (2020-04-04)

@@ -7,0 +14,0 @@

5

lib/util/resolveCommand.js

@@ -5,5 +5,6 @@ 'use strict';

const which = require('which');
const pathKey = require('path-key')();
const getPathKey = require('path-key');
function resolveCommandAttempt(parsed, withoutPathExt) {
const env = parsed.options.env || process.env;
const cwd = process.cwd();

@@ -28,3 +29,3 @@ const hasCustomCwd = parsed.options.cwd != null;

resolved = which.sync(parsed.command, {
path: (parsed.options.env || process.env)[pathKey],
path: env[getPathKey({ env })],
pathExt: withoutPathExt ? path.delimiter : undefined,

@@ -31,0 +32,0 @@ });

2

package.json
{
"name": "cross-spawn",
"version": "7.0.2",
"version": "7.0.3",
"description": "Cross platform child_process#spawn and child_process#spawnSync",

@@ -5,0 +5,0 @@ "keywords": [

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