@dudousxd/nestjs-telescope
Version:
Laravel Telescope-style observability console for NestJS — core: watchers, recorder, correlation, SQLite store, headless API.
18 lines • 558 B
JavaScript
// packages/core/src/dump/telescope-dump.ts
let sink = null;
/**
* Install (or clear, with `null`) the dump sink. Called by the Telescope module
* lifecycle — hosts and devs should not call this directly.
* @internal
*/
export function setTelescopeDump(fn) {
sink = fn;
}
/**
* Record a value (with an optional label) into Telescope's Dumps tab. Safe to
* call anywhere: a no-op until the Telescope module has wired the sink.
*/
export function telescopeDump(value, label) {
sink?.(value, label);
}
//# sourceMappingURL=telescope-dump.js.map