Comparing version 1.18.1-alpha.2 to 1.18.1
@@ -346,3 +346,7 @@ var debug = require('debug')('nodemon'); | ||
bus.on('quit', function onQuit() { | ||
bus.on('quit', function onQuit(code) { | ||
if (code === undefined) { | ||
code = 0; | ||
} | ||
// remove event listener | ||
@@ -361,3 +365,3 @@ var exitTimer = null; | ||
}); | ||
process.exit(0); | ||
process.exit(code); | ||
} else { | ||
@@ -394,3 +398,3 @@ bus.emit('exit'); | ||
// remove the flag file on exit | ||
// remove the child file on exit | ||
process.on('exit', function () { | ||
@@ -405,7 +409,6 @@ utils.log.detail('exiting'); | ||
// usual suspect: ctrl+c exit | ||
process.once('SIGINT', () => bus.emit('quit')); | ||
process.once('SIGINT', () => bus.emit('quit', 130)); | ||
process.once('SIGTERM', () => { | ||
bus.emit('quit'); | ||
bus.emit('quit', 143); | ||
if (child) { child.kill('SIGTERM'); } | ||
process.exit(0); | ||
}); | ||
@@ -412,0 +415,0 @@ }) |
@@ -118,3 +118,3 @@ var debug = require('debug')('nodemon'); | ||
} | ||
// this prevents cursor keys from working. | ||
// this intentionally prevents cursor keys from working. | ||
process.stdout.write(String.fromCharCode(chr)); | ||
@@ -124,12 +124,13 @@ } | ||
if (chr === 3) { | ||
// if restartable, assume ctrl+c will break immediately | ||
if (ctrlC) { | ||
process.exit(0); | ||
} | ||
// if restartable, assume ctrl+c will break immediately | ||
if (rs) { | ||
bus.emit('quit'); | ||
bus.emit('quit', 130); | ||
} | ||
ctrlC = true; | ||
return; | ||
} else if (buffer === '.exit' || chr === 4) { // ctrl+d | ||
} else if (!rs && (buffer === '.exit' || chr === 4)) { // ctrl+d | ||
process.exit(); | ||
@@ -136,0 +137,0 @@ } else if (chr === 13 || chr === 10) { // enter / carriage return |
@@ -1,70 +0,1 @@ | ||
{ | ||
"name": "nodemon", | ||
"homepage": "http://nodemon.io", | ||
"author": { | ||
"name": "Remy Sharp", | ||
"url": "http://github.com/remy" | ||
}, | ||
"bin": { | ||
"nodemon": "./bin/nodemon.js" | ||
}, | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/remy/nodemon.git" | ||
}, | ||
"description": "Simple monitor script for use during development of a node.js app.", | ||
"keywords": [ | ||
"monitor", | ||
"development", | ||
"restart", | ||
"autoload", | ||
"reload", | ||
"terminal" | ||
], | ||
"license": "MIT", | ||
"main": "./lib/nodemon", | ||
"scripts": { | ||
"commitmsg": "commitlint -e", | ||
"coverage": "istanbul cover _mocha -- --timeout 30000 --ui bdd --reporter list test/**/*.test.js", | ||
"lint": "jscs lib/**/*.js -v", | ||
":spec": "node_modules/.bin/mocha --timeout 30000 --ui bdd test/**/*.test.js", | ||
"test": "npm run lint && npm run spec", | ||
"spec": "for FILE in test/**/*.test.js; do echo $FILE; TEST=1 mocha --exit --timeout 30000 $FILE; if [ $? -ne 0 ]; then exit 1; fi; sleep 1; done", | ||
"postspec": "npm run clean", | ||
"clean": "rm -rf test/fixtures/test*.js test/fixtures/test*.md", | ||
"web": "node web", | ||
"semantic-release": "semantic-release pre && npm publish && semantic-release post", | ||
"prepush": "npm run lint", | ||
"killall": "ps auxww | grep node | grep -v grep | awk '{ print $2 }' | xargs kill -9", | ||
"postinstall": "node bin/postinstall || exit 0" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^3.1.3", | ||
"@commitlint/config-angular": "^3.1.1", | ||
"async": "1.4.2", | ||
"coffee-script": "~1.7.1", | ||
"husky": "^0.14.3", | ||
"istanbul": "^0.4.5", | ||
"jscs": "^3.0.7", | ||
"mocha": "^2.3.3", | ||
"proxyquire": "^1.8.0", | ||
"semantic-release": "^8.2.0", | ||
"should": "~4.0.0" | ||
}, | ||
"dependencies": { | ||
"chokidar": "^2.0.2", | ||
"debug": "^3.1.0", | ||
"ignore-by-default": "^1.0.1", | ||
"minimatch": "^3.0.4", | ||
"pstree.remy": "^1.1.0", | ||
"semver": "^5.5.0", | ||
"supports-color": "^5.2.0", | ||
"touch": "^3.1.0", | ||
"undefsafe": "^2.0.2", | ||
"update-notifier": "^2.3.0" | ||
}, | ||
"version": "1.18.1-alpha.2" | ||
} | ||
{"name":"nodemon","homepage":"http://nodemon.io","author":{"name":"Remy Sharp","url":"http://github.com/remy"},"bin":{"nodemon":"./bin/nodemon.js"},"engines":{"node":">=4"},"repository":{"type":"git","url":"https://github.com/remy/nodemon.git"},"description":"Simple monitor script for use during development of a node.js app.","keywords":["monitor","development","restart","autoload","reload","terminal"],"license":"MIT","main":"./lib/nodemon","scripts":{"commitmsg":"commitlint -e","coverage":"istanbul cover _mocha -- --timeout 30000 --ui bdd --reporter list test/**/*.test.js","lint":"jscs lib/**/*.js -v",":spec":"node_modules/.bin/mocha --timeout 30000 --ui bdd test/**/*.test.js","test":"npm run lint && npm run spec","spec":"for FILE in test/**/*.test.js; do echo $FILE; TEST=1 mocha --exit --timeout 30000 $FILE; if [ $? -ne 0 ]; then exit 1; fi; sleep 1; done","postspec":"npm run clean","clean":"rm -rf test/fixtures/test*.js test/fixtures/test*.md","web":"node web","semantic-release":"semantic-release pre && npm publish && semantic-release post","prepush":"npm run lint","killall":"ps auxww | grep node | grep -v grep | awk '{ print $2 }' | xargs kill -9","postinstall":"node bin/postinstall || exit 0"},"devDependencies":{"@commitlint/cli":"^3.1.3","@commitlint/config-angular":"^3.1.1","async":"1.4.2","coffee-script":"~1.7.1","husky":"^0.14.3","istanbul":"^0.4.5","jscs":"^3.0.7","mocha":"^2.3.3","proxyquire":"^1.8.0","semantic-release":"^8.2.0","should":"~4.0.0"},"dependencies":{"chokidar":"^2.0.2","debug":"^3.1.0","ignore-by-default":"^1.0.1","minimatch":"^3.0.4","pstree.remy":"^1.1.0","semver":"^5.5.0","supports-color":"^5.2.0","touch":"^3.1.0","undefsafe":"^2.0.2","update-notifier":"^2.3.0"},"version":"1.18.1"} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
102393
42
2494