@ladjs/graceful
Advanced tools
Comparing version 3.2.2 to 4.0.0
@@ -124,5 +124,3 @@ const http = require('node:http'); | ||
// handle graceful restarts | ||
// support nodemon (SIGUSR2 as well) | ||
// <https://github.com/remy/nodemon#controlling-shutdown-of-your-script> | ||
for (const sig of ['SIGTERM', 'SIGHUP', 'SIGINT', 'SIGUSR2']) { | ||
for (const sig of ['SIGTERM', 'SIGHUP', 'SIGINT']) { | ||
process.once(sig, async () => { | ||
@@ -129,0 +127,0 @@ await this.exit(sig); |
{ | ||
"name": "@ladjs/graceful", | ||
"description": "Gracefully exit HTTP servers (Express/Koa/Fastify/etc), databases (Mongo/Mongoose), Bree job schedulers, and custom handlers.", | ||
"version": "3.2.2", | ||
"version": "4.0.0", | ||
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)", | ||
@@ -6,0 +6,0 @@ "bugs": { |
@@ -119,3 +119,2 @@ # [**@ladjs/graceful**](https://github.com/ladjs/graceful) | ||
* `process.once('SIGINT')` - will exit gracefully | ||
* `process.once('SIGUSR2')` - will exit gracefully (nodemon support) | ||
@@ -122,0 +121,0 @@ This package also prevents multiple process/SIG events from triggering multiple graceful exits. Only one graceful exit can occur at a time. |
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
26585
306
238