@ladjs/graceful
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -1,21 +0,20 @@ | ||
declare module '@ladjs/graceful' { | ||
export interface GracefulOptions { | ||
servers?: Array<{ close(): unknown }>; | ||
mongooses?: Array<{ disconnect(): Promise<void> }>; | ||
bulls?: Array<{ close(): unknown }>; | ||
brees?: Array<{ stop(): Promise<void> }>; | ||
redisClients?: Array<{ disconnect(): unknown }>; | ||
customHandlers?: Array<() => unknown>; | ||
timeoutMs?: number; | ||
logger?: { | ||
info(): unknown; | ||
warn(): unknown; | ||
error(): unknown; | ||
}; | ||
} | ||
export default class Graceful { | ||
constructor(options: GracefulOptions); | ||
listen(): void; | ||
exit(code: number | string): Promise<void>; | ||
} | ||
export interface GracefulOptions { | ||
servers?: Array<{ close(): unknown }>; | ||
mongooses?: Array<{ disconnect(): Promise<void> }>; | ||
bulls?: Array<{ close(): unknown }>; | ||
brees?: Array<{ stop(): Promise<void> }>; | ||
redisClients?: Array<{ disconnect(): unknown }>; | ||
customHandlers?: Array<() => unknown>; | ||
timeoutMs?: number; | ||
logger?: { | ||
info(): unknown; | ||
warn(): unknown; | ||
error(): unknown; | ||
}; | ||
} | ||
export default class Graceful { | ||
constructor(options?: GracefulOptions); | ||
listen(): void; | ||
exit(code: number | string): Promise<void>; | ||
} |
{ | ||
"name": "@ladjs/graceful", | ||
"description": "Gracefully exit server (Koa), database (Mongo/Mongoose), Bree job schedulers, Bull job schedulers, and custom handlers.", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)", | ||
@@ -6,0 +6,0 @@ "bugs": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12457
206