Socket
Socket
Sign inDemoInstall

cross-spawn

Package Overview
Dependencies
5
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.0 to 7.0.1

7

CHANGELOG.md

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

### [7.0.1](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.0...v7.0.1) (2019-10-07)
### Bug Fixes
* **core:** support worker threads ([#127](https://github.com/moxystudio/node-cross-spawn/issues/127)) ([cfd49c9](https://github.com/moxystudio/node-cross-spawn/commit/cfd49c9))
## [7.0.0](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.5...v7.0.0) (2019-09-03)

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

8

lib/util/resolveCommand.js

@@ -10,6 +10,8 @@ 'use strict';

const hasCustomCwd = parsed.options.cwd != null;
// Worker threads do not have process.chdir()
const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined;
// If a custom `cwd` was specified, we need to change the process cwd
// because `which` will do stat calls but does not support a custom cwd
if (hasCustomCwd) {
if (shouldSwitchCwd) {
try {

@@ -32,3 +34,5 @@ process.chdir(parsed.options.cwd);

} finally {
process.chdir(cwd);
if (shouldSwitchCwd) {
process.chdir(cwd);
}
}

@@ -35,0 +39,0 @@

{
"name": "cross-spawn",
"version": "7.0.0",
"version": "7.0.1",
"description": "Cross platform child_process#spawn and child_process#spawnSync",

@@ -56,4 +56,4 @@ "keywords": [

"path-key": "^3.1.0",
"shebang-command": "^1.2.0",
"which": "^1.2.9"
"shebang-command": "^2.0.0",
"which": "^2.0.1"
},

@@ -60,0 +60,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc