@wiajs/log 4.3.15 → 4.3.17
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/log.bs.cjs +155 -161
- package/dist/log.js +183 -181
- package/dist/log.mjs +155 -161
- package/lib/browser.js +57 -53
- package/lib/node.js +24 -18
- package/package.json +1 -1
- package/types/browser.d.ts +18 -0
- package/types/node.d.ts +24 -0
package/types/node.d.ts
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
export default class Log {
|
2
|
+
constructor(opts: any);
|
3
|
+
dgs: {
|
4
|
+
debug: debug.Debugger;
|
5
|
+
info: debug.Debugger;
|
6
|
+
err: debug.Debugger;
|
7
|
+
warn: debug.Debugger;
|
8
|
+
};
|
9
|
+
debug(...args: any[]): void;
|
10
|
+
error(...args: any[]): void;
|
11
|
+
err(...args: any[]): void;
|
12
|
+
warn(...args: any[]): void;
|
13
|
+
info(...args: any[]): void;
|
14
|
+
}
|
15
|
+
import debug from 'debug';
|
16
|
+
export function name(file: string): string;
|
17
|
+
export function log(...args: any[]): {
|
18
|
+
(...args2: any): void;
|
19
|
+
debug: (...args: any[]) => void;
|
20
|
+
info: (...args: any[]) => void;
|
21
|
+
warn: (...args: any[]) => void;
|
22
|
+
error: (...args: any[]) => void;
|
23
|
+
err: (...args: any[]) => void;
|
24
|
+
};
|