Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

foreground-child

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

foreground-child - npm Package Compare versions

Comparing version 1.3.1 to 1.3.3

5

index.js
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) {

8

package.json
{
"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

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