@wiajs/log 4.3.16 → 4.3.18
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/log.bs.cjs +1 -1
- package/dist/log.cjs +1 -1
- package/dist/log.js +1 -1
- package/dist/log.min.js +1 -1
- package/dist/log.mjs +1 -1
- package/package.json +4 -4
- package/types/log.bs.d.ts +18 -0
- package/types/log.d.ts +24 -0
- /package/lib/{browser.js → log.bs.js} +0 -0
- /package/lib/{node.js → log.js} +0 -0
package/dist/log.bs.cjs
CHANGED
package/dist/log.cjs
CHANGED
package/dist/log.js
CHANGED
package/dist/log.min.js
CHANGED
package/dist/log.mjs
CHANGED
package/package.json
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "@wiajs/log",
|
3
3
|
"description": "Lightweight debugging utility for Node.js and the browser",
|
4
|
-
"version": "4.3.
|
4
|
+
"version": "4.3.18",
|
5
5
|
"type": "module",
|
6
6
|
"main": "index.js",
|
7
7
|
"types": "./types/log.d.ts",
|
8
|
-
"browser": "./lib/
|
8
|
+
"browser": "./lib/log.bs.js",
|
9
9
|
"exports": {
|
10
10
|
".": {
|
11
11
|
"node": {
|
@@ -14,9 +14,9 @@
|
|
14
14
|
"types": "./types/log.d.ts"
|
15
15
|
},
|
16
16
|
"browser": {
|
17
|
-
"import": "./lib/
|
17
|
+
"import": "./lib/log.bs.js",
|
18
18
|
"require": "./dist/log.bs.cjs",
|
19
|
-
"types": "./types/
|
19
|
+
"types": "./types/log.bs.d.ts"
|
20
20
|
},
|
21
21
|
"default": {
|
22
22
|
"import": "./index.js",
|
@@ -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
|
+
}
|
package/types/log.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
|
+
};
|
File without changes
|
/package/lib/{node.js → log.js}
RENAMED
File without changes
|