Comparing version 2.10.0 to 2.10.1
{ | ||
"name": "errsole", | ||
"version": "2.10.0", | ||
"version": "2.10.1", | ||
"description": "Collect, Store, and Visualize Logs with a Single Module", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,2 +0,39 @@ | ||
declare module 'errsole' { | ||
// errsole.d.ts | ||
// Errsole available as a global namespace | ||
export as namespace Errsole; | ||
// Errsole for module-based systems | ||
export = Errsole; | ||
// Errsole class and its static members | ||
declare class Errsole { | ||
static port: number; | ||
static initialize(options: Errsole.Options): void; | ||
static meta(data: any): Errsole.LoggerContext; | ||
static alert: Errsole.Logger; | ||
static error: Errsole.Logger; | ||
static warn: Errsole.Logger; | ||
static debug: Errsole.Logger; | ||
static info: Errsole.Logger; | ||
static log: Errsole.Logger; | ||
static proxyMiddleware(): () => void; | ||
static multiFrameworkProxyMiddleware(): any; | ||
static expressProxyMiddleware(): any; | ||
static httpProxyMiddleware(): any; | ||
static connectProxyMiddleware(): any; | ||
static fastifyProxyMiddleware(): any; | ||
static koaProxyMiddleware(url: string): (ctx: any, next: any) => Promise<any>; | ||
static nestExpressProxyMiddleware(path: string, req: any, res: any, next: any): void; | ||
static nestFastifyProxyMiddleware(path: string, req: any, res: any): void; | ||
static hapiProxyMiddleware(basePath: string, auth?: boolean): { | ||
name: string; | ||
register: (server: any, options: any) => Promise<void>; | ||
}; | ||
} | ||
// Errsole namespace containing interfaces and other types | ||
declare namespace Errsole { | ||
interface Options { | ||
@@ -42,32 +79,2 @@ storage: any; | ||
} | ||
class Errsole { | ||
static port: number; | ||
static initialize(options: Options): void; | ||
static meta(data: any): LoggerContext; | ||
static alert: Logger; | ||
static error: Logger; | ||
static warn: Logger; | ||
static debug: Logger; | ||
static info: Logger; | ||
static log: Logger; | ||
static proxyMiddleware(): () => void; | ||
static multiFrameworkProxyMiddleware(): any; | ||
static expressProxyMiddleware(): any; | ||
static httpProxyMiddleware(): any; | ||
static connectProxyMiddleware(): any; | ||
static fastifyProxyMiddleware(): any; | ||
static koaProxyMiddleware(url: string): (ctx: any, next: any) => Promise<any>; | ||
static nestExpressProxyMiddleware(path: string, req: any, res: any, next: any): void; | ||
static nestFastifyProxyMiddleware(path: string, req: any, res: any): void; | ||
static hapiProxyMiddleware(basePath: string, auth?: boolean): { | ||
name: string; | ||
register: (server: any, options: any) => Promise<void>; | ||
}; | ||
} | ||
export = Errsole; | ||
} | ||
export as namespace Errsole; |
3387852
2684