New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

exiting

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exiting - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

14

lib/index.js

@@ -69,4 +69,8 @@ 'use strict';

if (manager.state === 'prestopped' && manager.exitCode === 0) {
return;
if (manager.state === 'prestopped') {
if (manager.exitCode === 0) {
return; // defer to prestop logic
}
manager.state = 'errored';
}

@@ -104,4 +108,3 @@

if (internals.manager.state === 'stopping' ||
internals.manager.state === 'prestopped') { // Exceptions while stopping advance to error state immediately
if (internals.manager.state === 'stopping') { // Exceptions while stopping advance to error state immediately

@@ -269,2 +272,3 @@ internals.manager.state = 'errored';

}
active.push(server);

@@ -337,5 +341,7 @@ }

}
if (internals.manager) {
clearTimeout(internals.manager.exitTimer);
}
internals.manager = null;

@@ -342,0 +348,0 @@ };

{
"name": "exiting",
"version": "4.0.0",
"version": "4.0.1",
"description": "Gracefully stop hapi.js servers",

@@ -15,7 +15,7 @@ "main": "lib/index.js",

"hapi": "^17.0.0",
"lab": "^15.0.0"
"lab": "^18.0.1"
},
"dependencies": {
"bounce": "^1.2.0",
"hoek": "^5.0.0"
"hoek": "^6.1.2"
},

@@ -22,0 +22,0 @@ "peerDependencies": {

Sorry, the diff of this file is not supported yet

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