New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

spawnd

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spawnd - npm Package Compare versions

Comparing version

to
3.7.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [3.7.0](https://github.com/smooth-code/jest-puppeteer/tree/master/packages/spawnd/compare/v3.6.0...v3.7.0) (2018-12-11)
### Features
* use tree-kill instead of terminate ([#169](https://github.com/smooth-code/jest-puppeteer/tree/master/packages/spawnd/issues/169)) ([bb2e27b](https://github.com/smooth-code/jest-puppeteer/tree/master/packages/spawnd/commit/bb2e27b))
## [3.5.2](https://github.com/smooth-code/jest-puppeteer/tree/master/packages/spawnd/compare/v3.5.1...v3.5.2) (2018-11-27)

@@ -8,0 +19,0 @@

8

lib/index.js

@@ -7,3 +7,3 @@ "use strict";

var _terminate = _interopRequireDefault(require("terminate"));
var _treeKill = _interopRequireDefault(require("tree-kill"));

@@ -16,3 +16,3 @@ var _exit = _interopRequireDefault(require("exit"));

const pterminate = (0, _util.promisify)(_terminate.default);
const pTreeKill = (0, _util.promisify)(_treeKill.default);

@@ -22,3 +22,3 @@ function spawnd(command, options) {

if (proc && proc.pid) {
(0, _terminate.default)(proc.pid, () => (0, _exit.default)(code));
(0, _treeKill.default)(proc.pid, () => (0, _exit.default)(code));
} else {

@@ -41,3 +41,3 @@ (0, _exit.default)(code);

proc.removeAllListeners('error');
return pterminate(proc.pid).catch(() => {
return pTreeKill(proc.pid).catch(() => {
/* ignore error */

@@ -44,0 +44,0 @@ });

{
"name": "spawnd",
"description": "Spawn a dependent child process.",
"version": "3.5.2",
"version": "3.7.0",
"main": "lib/index.js",

@@ -27,6 +27,6 @@ "repository": "https://github.com/smooth-code/jest-puppeteer/tree/master/packages/spawnd",

"signal-exit": "^3.0.2",
"terminate": "^2.1.2",
"tree-kill": "^1.2.1",
"wait-port": "^0.2.2"
},
"gitHead": "3c77d2603c864a43647cd6ed7d40a6f133d116b4"
"gitHead": "8b7df93ed52fd2edabaa7af702aaa4742e13c81b"
}