New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.1.0 to 3.2.0

2

index.js

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

module.exports = fp(fastifyGracefulShutdown, {
fastify: '^3.0.0',
fastify: '>=3.0.0',
name: 'fastify-graceful-shutdown',
})
{
"name": "fastify-graceful-shutdown",
"version": "3.1.0",
"version": "3.2.0",
"description": "Gracefully shutdown fastify",

@@ -32,9 +32,9 @@ "main": "index.js",

"devDependencies": {
"fastify": "^3.11.0",
"np": "^7.2.0",
"fastify": "^4.0.2",
"np": "^7.5.0",
"pre-commit": "^1.2.2",
"prettier": "^2.2.1",
"tap": "^14.11.0",
"tap": "^15.0.6",
"tap-spec": "^5.0.0",
"tsd": "^0.14.0"
"tsd": "^0.21.0"
},

@@ -41,0 +41,0 @@ "prettier": {

# 🏹 fastify-graceful-shutdown
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](#badge)

@@ -8,2 +9,3 @@ [![NPM version](https://img.shields.io/npm/v/fastify-graceful-shutdown.svg?style=flat)](https://www.npmjs.com/package/fastify-graceful-shutdown)

## Install
```bash

@@ -14,2 +16,3 @@ npm install --save fastify-graceful-shutdown

## Register plugin
```js

@@ -20,8 +23,16 @@ fastify.register(require('fastify-graceful-shutdown'))

## Usage
```js
fastify.gracefulShutdown((signal, next) => {
next()
fastify.after(() => {
fastify.gracefulShutdown((signal, next) => {
console.log('Upps!')
next()
})
})
```
## Compatibility
Fastify >=3
## Caveats

@@ -28,0 +39,0 @@

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