deno.land / x / feathers@v5.0.0-pre.29 / _commons / debug.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// DO NOT MODIFY - generated from packages/commons/src/debug.ts
export type DebugFunction = (...args: any[]) => void;export type DebugInitializer = (name: string) => DebugFunction;
const debuggers: { [key: string]: DebugFunction } = {};
export function noopDebug (): DebugFunction { return () => {}}
let defaultInitializer: DebugInitializer = noopDebug;
export function setDebug (debug: DebugInitializer) { defaultInitializer = debug;
Object.keys(debuggers).forEach(name => { debuggers[name] = debug(name); });}
export function createDebug (name: string) { if (!debuggers[name]) { debuggers[name] = defaultInitializer(name); }
return (...args: any[]) => debuggers[name](...args);}
feathers
The API and real-time application framework
DocumentationDocumentation
GitHub Repositoryfeathersjs/feathers
GitHub Stars
14344

Version Info

Tagged at
4 months ago

External Dependencies

No external dependencies 🎉