UNPKG

apitally

Version:

Simple API monitoring & analytics for REST APIs built with Express, Fastify, NestJS, AdonisJS, Hono, H3, Elysia, Hapi, and Koa.

24 lines 630 B
var __defProp = Object.defineProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); import { configure } from "./configure.js"; function defineConfig(config) { return config; } __name(defineConfig, "defineConfig"); function captureError(error, ctx) { if (error instanceof Error) { ctx.apitallyError = error; } } __name(captureError, "captureError"); function setConsumer(ctx, consumer) { ctx.apitallyConsumer = consumer || void 0; } __name(setConsumer, "setConsumer"); export { captureError, configure, defineConfig, setConsumer }; //# sourceMappingURL=index.js.map