Comparing version 0.13.1 to 0.13.2
@@ -149,3 +149,5 @@ const util = require('util'); | ||
if (child !== process) { | ||
this.emit('respawn', child); | ||
this.emit('respawn', process.argv.filter(function (flag) { | ||
return this.nodeFlags.indexOf(flag) !== -1; | ||
}.bind(this)), child); | ||
} | ||
@@ -152,0 +154,0 @@ if (ready) { |
{ | ||
"name": "liftoff", | ||
"description": "Launch your command line tool with ease.", | ||
"version": "0.13.1", | ||
"version": "0.13.2", | ||
"homepage": "https://github.com/tkellen/node-liftoff", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -272,3 +272,3 @@ <p align="center"> | ||
#### respawn(proc) | ||
#### respawn(flags, child) | ||
@@ -282,5 +282,5 @@ Emitted when Liftoff re-spawns your process (when a [`nodeFlag`](#optsnodeflags) is detected). | ||
}); | ||
Hacker.on('respawn', function (proc) { | ||
console.log('Respawned to PID:', proc.pid); | ||
console.log('Node flags:', proc.execArgv); | ||
Hacker.on('respawn', function (flags, child) { | ||
console.log('Detected node flags:', flags); | ||
console.log('Respawned to PID:', child.pid); | ||
}); | ||
@@ -287,0 +287,0 @@ ``` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1127051
244