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

@ladjs/graceful

Package Overview
Dependencies
Maintainers
4
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ladjs/graceful - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

39

index.d.ts

@@ -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": {

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