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
23
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 4.0.1 to 4.1.0

7

index.js

@@ -90,4 +90,5 @@ const http = require('node:http');

process.on('unhandledRejection', (err) => {
// we don't want to log here, we want to throw the error
// so that processes exit or bubble up to middleware error handling
// always log to console the error (e.g. so we can see it on pm2 logs)
console.error(err);
// we want to throw so that processes exit or bubble up to middleware error handling
// we need to support listening to unhandledRejections (backward compatibility)

@@ -101,2 +102,4 @@ // (even though node is deprecating this in future versions)

process.once('uncaughtException', (err) => {
// always log to console the error (e.g. so we can see it on pm2 logs)
console.error(err);
if (this.config.hideMeta)

@@ -103,0 +106,0 @@ this.config.logger.error(err, { [this.config.hideMeta]: true });

{
"name": "@ladjs/graceful",
"description": "Gracefully exit HTTP servers (Express/Koa/Fastify/etc), databases (Mongo/Mongoose), Bree job schedulers, and custom handlers.",
"version": "4.0.1",
"version": "4.1.0",
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",

@@ -6,0 +6,0 @@ "bugs": {

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