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

@ladjs/graceful

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ladjs/graceful - npm Package Compare versions

Comparing version 3.2.2 to 4.0.0

4

index.js

@@ -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.

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