New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dnlup/fastify-traps

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dnlup/fastify-traps - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

31

index.d.ts
import {
FastifyPluginCallback,
} from 'fastify-plugin'
} from 'fastify'
export interface TrapsPluginOptions {
timeout?: number,
onSignal?: (signal: 'SIGTERM' | 'SIGINT') => void,
onClose?: () => void,
onTimeout?: (timeout: number) => void,
onError?: (error: Error|any) => void,
strict?: boolean
type FastifyTrapsPlugin = FastifyPluginCallback<fastifyTraps.FastifyTrapsOptions>
declare namespace fastifyTraps {
export interface FastifyTrapsOptions {
timeout?: number,
onSignal?: (signal: 'SIGTERM' | 'SIGINT') => void,
onClose?: () => void,
onTimeout?: (timeout: number) => void,
onError?: (error: Error|any) => void,
strict?: boolean
}
export const fastifyTraps: FastifyTrapsPlugin
export { fastifyTraps as default }
}
const plugin: FastifyPluginCallback<TrapsPluginOptions>;
export = plugin;
declare function fastifyTraps(
...params: Parameters<FastifyTrapsPlugin>
): ReturnType<FastifyTrapsPlugin>
export = fastifyTraps;
{
"name": "@dnlup/fastify-traps",
"version": "3.0.1",
"version": "3.0.2",
"description": "A Fastify plugin to close the server gracefully on SIGINT and SIGTERM signals",

@@ -52,3 +52,3 @@ "main": "index.js",

"husky": "^8.0.3",
"lint-staged": "^14.0.0",
"lint-staged": "^15.2.0",
"markdown-toc": "^1.2.0",

@@ -55,0 +55,0 @@ "snazzy": "^9.0.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