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

fastify-graceful-shutdown

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-graceful-shutdown - npm Package Compare versions

Comparing version 3.4.2 to 3.5.0

12

index.js

@@ -29,4 +29,4 @@ 'use strict'

new Error(
`${signal} handler was already registered use fastify.gracefulShutdown`
)
`${signal} handler was already registered use fastify.gracefulShutdown`,
),
)

@@ -42,3 +42,3 @@ return

} else {
logger.info({ signal: signal }, 'process terminated')
logger.debug({ signal: signal }, 'process terminated')
handlerEventListener.exit(0)

@@ -52,3 +52,3 @@ }

{ signal: signal, timeout: timeout },
'terminate process after timeout'
'terminate process after timeout',
)

@@ -74,3 +74,3 @@ handlerEventListener.exit(1)

addHandler((signal, cb) => {
logger.info({ signal: signal }, 'triggering close hook')
logger.debug({ signal: signal }, 'triggering close hook')
fastify.close(cb)

@@ -83,3 +83,3 @@ })

terminateAfterTimeout(signal, timeout)
logger.info({ signal: signal }, 'received signal')
logger.debug({ signal: signal }, 'received signal')
shutdown(signal)

@@ -86,0 +86,0 @@ }

{
"name": "fastify-graceful-shutdown",
"version": "3.4.2",
"version": "3.5.0",
"description": "Gracefully shutdown fastify",

@@ -5,0 +5,0 @@ "main": "index.js",

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