Comparing version 6.0.4 to 6.0.5
19
index.js
@@ -5,2 +5,3 @@ 'use strict'; | ||
const program = require('commander'); | ||
const signalExit = require('signal-exit'); | ||
@@ -10,12 +11,18 @@ const useCli = ~require.main.filename.indexOf('buddy-cli'); | ||
// Register for uncaught errors and clean up | ||
process.on('uncaughtException', (err) => { | ||
function exit () { | ||
if (buddy) buddy.destroy(); | ||
process.exit(); | ||
} | ||
function error (err) { | ||
console.log(err.stack ? err.stack : err); | ||
// Ding! | ||
console.log('\x07'); | ||
}); | ||
process.on('exit', (code) => { | ||
if (buddy) buddy.exceptionalCleanup(); | ||
}); | ||
exit(); | ||
} | ||
// Register for uncaught errors and clean up | ||
process.once('uncaughtException', error); | ||
signalExit(exit); | ||
find(useCli, (err, buddyFactory, version) => { | ||
@@ -22,0 +29,0 @@ if (err) throw err; |
{ | ||
"name": "buddy-cli", | ||
"version": "6.0.4", | ||
"version": "6.0.5", | ||
"description": "The command-line bootstrapper for Buddy", | ||
@@ -14,3 +14,4 @@ "author": "popeindustries <alex@pope-industries.com>", | ||
"commander": "2.9.0", | ||
"recur-fs": "2.2.x" | ||
"recur-fs": "2.2.x", | ||
"signal-exit": "3.0.1" | ||
}, | ||
@@ -17,0 +18,0 @@ "devDependencies": {}, |
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
8026
143
3
+ Addedsignal-exit@3.0.1
+ Addedsignal-exit@3.0.1(transitive)