@squareboat/nest-eyewitness
Version:
A simple easy-to-use package to receive error reports directly to your inbox whenever any exception is witnessed 👀 in your NestJS application.
11 lines (10 loc) • 524 B
TypeScript
import { EyewitnessOptions, WebhookOptions } from "./interfaces";
import { ArgumentsHost } from "@nestjs/common";
export declare class EyewitnessService {
private static config;
constructor(config: EyewitnessOptions);
static getConfig(): EyewitnessOptions;
static alert(exception: any, host: ArgumentsHost): Promise<void>;
static handleAPICall(webhookOptions: WebhookOptions, defaultPayload: Record<string, any>): any;
static buildPayload(exception: any, host: ArgumentsHost): Record<string, any>;
}