cross-spawn
Advanced tools
Comparing version 7.0.2 to 7.0.3
@@ -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,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 @@ }); |
{ | ||
"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": [ |
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
21207
237