foreground-child
Advanced tools
Comparing version 1.3.1 to 1.3.3
var signalExit = require('signal-exit') | ||
var spawn = require('win-spawn') | ||
var spawn = require('child_process').spawn | ||
if (process.platform === 'win32') { | ||
spawn = require('cross-spawn-async') | ||
} | ||
@@ -4,0 +7,0 @@ module.exports = function (program, args, cb) { |
{ | ||
"name": "foreground-child", | ||
"version": "1.3.1", | ||
"version": "1.3.3", | ||
"description": "Run a child as if it's the foreground process. Give it stdio. Exit when it exits.", | ||
@@ -10,7 +10,7 @@ "main": "index.js", | ||
"dependencies": { | ||
"signal-exit": "^2.0.0", | ||
"win-spawn": "^2.0.0" | ||
"cross-spawn-async": "^2.1.1", | ||
"signal-exit": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"tap": "^1.2.1" | ||
"tap": "^4.0.0" | ||
}, | ||
@@ -17,0 +17,0 @@ "scripts": { |
var fg = require('../index.js') | ||
var spawn = require('win-spawn') | ||
var spawn = require('child_process').spawn | ||
var signalExit = require('signal-exit') | ||
@@ -61,3 +61,4 @@ | ||
var t = require('tap') | ||
t.test('signals', function (t) { | ||
t.test('signals', { skip: winSignals() }, function (t) { | ||
var signals = [ | ||
@@ -106,3 +107,3 @@ 'SIGTERM', | ||
t.test('parent emits exit when SIGTERMed', { skip: isZero10OnTravis() }, function (t) { | ||
t.test('parent emits exit when SIGTERMed', { skip: isZero10OnTravis() || winSignals() }, function (t) { | ||
var which = ['parent', 'child', 'nobody'] | ||
@@ -153,1 +154,6 @@ which.forEach(function (who) { | ||
} | ||
function winSignals () { | ||
return process.platform === 'win32' ? | ||
'windows does not support unix signals' : false | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
7805
7
190
3
+ Addedcross-spawn-async@^2.1.1
+ Addedcross-spawn-async@2.2.5(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedlru-cache@4.1.5(transitive)
+ Addedpseudomap@1.0.2(transitive)
+ Addedwhich@1.3.1(transitive)
+ Addedyallist@2.1.2(transitive)
- Removedwin-spawn@^2.0.0
- Removedwin-spawn@2.0.0(transitive)