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

foreman

Package Overview
Dependencies
Maintainers
16
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

foreman - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

10

CHANGES.md

@@ -0,1 +1,11 @@

2018-05-21, Version 3.0.0
=========================
* Update outdated dependencies to latest (Miroslav Bajtoš)
* Fix error "Unknown signal: null" (Kaspar Schiess)
* Update supported Node.js versions (Miroslav Bajtoš)
2016-08-25, Version 2.0.0

@@ -2,0 +12,0 @@ =========================

24

lib/proc.js

@@ -32,2 +32,3 @@ // Copyright IBM Corp. 2012,2016. All Rights Reserved.

var child = prog.spawn(file, args, { env: proc.env });
var killallReceived = false;

@@ -42,7 +43,7 @@ child.stdout.on('data', function(data) {

child.on('close', function(code) {
child.on('close', function(code, signal) {
if(code === 0) {
cons.info(key, proc, "Exited Successfully");
} else {
cons.error(key, proc, "Exited with exit code " + code);
cons.error(key, proc, "Exited with exit code " + signal || code);
}

@@ -52,7 +53,22 @@ });

child.on('exit', function(code, signal) {
emitter.emit('killall', signal);
if (!killallReceived) {
emitter.emit('killall', signal || 'SIGINT');
}
});
emitter.on('killall', function(signal) {
child.kill(signal);
// Once this process has received a killall event, don't send another
// such event to everyone. Let's assume that once is enough.
killallReceived = true;
try {
child.kill(signal);
}
catch (err) {
if (err.code === 'EPERM') {
// Means that the child runs with higher privileges than we are; we're
// not going to be able to kill it in that state. Log and do nothing.
cons.error(key, proc, "Process has become unkillable; returns EPERM.");
}
}
});

@@ -59,0 +75,0 @@

10

package.json
{
"name": "foreman",
"version": "2.0.0",
"version": "3.0.0",
"homepage": "http://strongloop.github.io/node-foreman/",

@@ -29,6 +29,6 @@ "description": "Node Implementation of Foreman",

"dependencies": {
"commander": "~2.9.0",
"http-proxy": "~1.11.1",
"commander": "^2.15.1",
"http-proxy": "^1.17.0",
"mustache": "^2.2.1",
"shell-quote": "~1.4.2"
"shell-quote": "^1.6.1"
},

@@ -44,3 +44,3 @@ "repository": {

"engines": {
"node": ">=0.6.9"
"node": ">=6"
},

@@ -47,0 +47,0 @@ "preferGlobal": true,

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