@dnlup/fastify-traps
Advanced tools
Comparing version 1.2.0-0 to 1.2.0-1
@@ -5,2 +5,9 @@ # Changelog | ||
## [1.2.0-1](https://github.com/dnlup/fastify-traps/compare/v1.2.0-0...v1.2.0-1) (2021-09-03) | ||
### Bug Fixes | ||
* Make plugin options optional ([763ee4b](https://github.com/dnlup/fastify-traps/commit/763ee4bb5295607942e409ed9e52b8c32329f9d0)) | ||
## [1.2.0-0](https://github.com/dnlup/fastify-traps/compare/v1.1.2...v1.2.0-0) (2021-07-12) | ||
@@ -7,0 +14,0 @@ |
@@ -7,8 +7,8 @@ import { | ||
export interface TrapsPluginOptions { | ||
timeout: number, | ||
onSignal: (signal: 'SIGTERM' | 'SIGINT') => {}, | ||
onClose: () => {}, | ||
onTimeout: (timeout: number) => {}, | ||
onError: (error: Error|any) => {}, | ||
strict: boolean | ||
timeout?: number, | ||
onSignal?: (signal: 'SIGTERM' | 'SIGINT') => {}, | ||
onClose?: () => {}, | ||
onTimeout?: (timeout: number) => {}, | ||
onError?: (error: Error|any) => {}, | ||
strict?: boolean | ||
} | ||
@@ -19,2 +19,2 @@ | ||
export default trapsPluginCallback; | ||
export default trapsPluginCallback; |
{ | ||
"name": "@dnlup/fastify-traps", | ||
"version": "1.2.0-0", | ||
"version": "1.2.0-1", | ||
"description": "A Fastify plugin to close the server gracefully on SIGINT and SIGTERM signals", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
10307
87