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 6.0.4 to 6.0.5

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="6.0.5"></a>
## [6.0.5](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.4...v6.0.5) (2018-03-02)
### Bug Fixes
* avoid using deprecated Buffer constructor ([#94](https://github.com/moxystudio/node-cross-spawn/issues/94)) ([d5770df](https://github.com/moxystudio/node-cross-spawn/commit/d5770df)), closes [/nodejs.org/api/deprecations.html#deprecations_dep0005](https://github.com//nodejs.org/api/deprecations.html/issues/deprecations_dep0005)
<a name="6.0.4"></a>

@@ -7,0 +17,0 @@ ## [6.0.4](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.3...v6.0.4) (2018-01-31)

2

lib/enoent.js

@@ -34,3 +34,3 @@ 'use strict';

return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params
return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params
};

@@ -37,0 +37,0 @@ }

@@ -64,3 +64,3 @@ 'use strict';

parsed.command = process.env.comspec || 'cmd.exe';
parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
}

@@ -84,3 +84,3 @@

parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
} else {

@@ -87,0 +87,0 @@ if (typeof parsed.options.shell === 'string') {

@@ -8,8 +8,19 @@ 'use strict';

// Read the first 150 bytes from the file
const size = 150;
let buffer;
if (Buffer.alloc) {
// Node.js v4.5+ / v5.10+
buffer = Buffer.alloc(size);
} else {
// Old Node.js API
buffer = new Buffer(size);
buffer.fill(0); // zero-fill
}
let fd;
const buffer = new Buffer(150);
try {
fd = fs.openSync(command, 'r');
fs.readSync(fd, buffer, 0, 150, 0);
fs.readSync(fd, buffer, 0, size, 0);
fs.closeSync(fd);

@@ -16,0 +27,0 @@ } catch (e) { /* Empty */ }

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

@@ -62,8 +62,8 @@ "keywords": [

"babel-jest": "^22.1.0",
"babel-preset-moxy": "^2.0.4",
"babel-preset-moxy": "^2.2.1",
"eslint": "^4.3.0",
"eslint-config-moxy": "^4.1.0",
"eslint-config-moxy": "^5.0.0",
"husky": "^0.14.3",
"jest": "^22.0.0",
"lint-staged": "^6.0.0",
"lint-staged": "^7.0.0",
"mkdirp": "^0.5.1",

@@ -70,0 +70,0 @@ "regenerator-runtime": "^0.11.1",

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