@wiajs/log 4.3.16 → 4.3.17

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wiajs/log",
3
3
  "description": "Lightweight debugging utility for Node.js and the browser",
4
- "version": "4.3.16",
4
+ "version": "4.3.17",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "types": "./types/log.d.ts",
@@ -0,0 +1,18 @@
1
+ export default log;
2
+ declare function log(...args: any[]): {
3
+ (...args2: any): void;
4
+ debug: (...args: any[]) => void;
5
+ info: (...args: any[]) => void;
6
+ warn: (...args: any[]) => void;
7
+ trace: (...args: any[]) => void;
8
+ error: (...args: any[]) => void;
9
+ err: (...args: any[]) => void;
10
+ };
11
+ declare namespace log {
12
+ function err(...args: any[]): void;
13
+ function error(...args: any[]): void;
14
+ function warn(...args: any[]): void;
15
+ function info(...args: any[]): void;
16
+ function debug(...args: any[]): void;
17
+ function trace(...args: any[]): void;
18
+ }
@@ -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
+ };