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

nodemon

Package Overview
Dependencies
Maintainers
1
Versions
256
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodemon - npm Package Compare versions

Comparing version 1.18.1-alpha.2 to 1.18.1

15

lib/monitor/run.js

@@ -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 @@ })

9

lib/nodemon.js

@@ -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"}
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