@duckbug/js 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -38,7 +38,7 @@ class DuckBugProvider {
|
|
|
38
38
|
time: this.getTimeStamp(),
|
|
39
39
|
level: index_cjs_namespaceObject.logLevel.WARN,
|
|
40
40
|
message: this.convertArgsToString(args[0]),
|
|
41
|
-
context:
|
|
41
|
+
context: args.slice(1)
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
error(...args) {
|
|
@@ -46,7 +46,7 @@ class DuckBugProvider {
|
|
|
46
46
|
time: this.getTimeStamp(),
|
|
47
47
|
level: index_cjs_namespaceObject.logLevel.ERROR,
|
|
48
48
|
message: this.convertArgsToString(args[0]),
|
|
49
|
-
context:
|
|
49
|
+
context: args.slice(1)
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
log(...args) {
|
|
@@ -54,7 +54,7 @@ class DuckBugProvider {
|
|
|
54
54
|
time: this.getTimeStamp(),
|
|
55
55
|
level: index_cjs_namespaceObject.logLevel.INFO,
|
|
56
56
|
message: this.convertArgsToString(args[0]),
|
|
57
|
-
context:
|
|
57
|
+
context: args.slice(1)
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
report(tag, level, payload) {
|
|
@@ -62,7 +62,7 @@ class DuckBugProvider {
|
|
|
62
62
|
time: this.getTimeStamp(),
|
|
63
63
|
level,
|
|
64
64
|
message: tag,
|
|
65
|
-
context:
|
|
65
|
+
context: payload
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
quack(tag, error) {
|
package/dist/cjs/SDK/DuckSDK.cjs
CHANGED
|
@@ -48,7 +48,9 @@ class DuckSDK {
|
|
|
48
48
|
fatal(tag, payload) {
|
|
49
49
|
this.sendReportToPlugins(tag, external_index_cjs_namespaceObject.logLevel.FATAL, payload);
|
|
50
50
|
}
|
|
51
|
-
quack() {
|
|
51
|
+
quack(tag, error) {
|
|
52
|
+
this.providers.forEach((plugin)=>plugin.quack(tag, error));
|
|
53
|
+
}
|
|
52
54
|
sendReportToPlugins(tag, level, payload) {
|
|
53
55
|
this.providers.forEach((plugin)=>plugin.report(tag, level, payload));
|
|
54
56
|
}
|
|
@@ -10,7 +10,7 @@ class DuckBugProvider {
|
|
|
10
10
|
time: this.getTimeStamp(),
|
|
11
11
|
level: logLevel.WARN,
|
|
12
12
|
message: this.convertArgsToString(args[0]),
|
|
13
|
-
context:
|
|
13
|
+
context: args.slice(1)
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
16
|
error(...args) {
|
|
@@ -18,7 +18,7 @@ class DuckBugProvider {
|
|
|
18
18
|
time: this.getTimeStamp(),
|
|
19
19
|
level: logLevel.ERROR,
|
|
20
20
|
message: this.convertArgsToString(args[0]),
|
|
21
|
-
context:
|
|
21
|
+
context: args.slice(1)
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
log(...args) {
|
|
@@ -26,7 +26,7 @@ class DuckBugProvider {
|
|
|
26
26
|
time: this.getTimeStamp(),
|
|
27
27
|
level: logLevel.INFO,
|
|
28
28
|
message: this.convertArgsToString(args[0]),
|
|
29
|
-
context:
|
|
29
|
+
context: args.slice(1)
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
report(tag, level, payload) {
|
|
@@ -34,7 +34,7 @@ class DuckBugProvider {
|
|
|
34
34
|
time: this.getTimeStamp(),
|
|
35
35
|
level,
|
|
36
36
|
message: tag,
|
|
37
|
-
context:
|
|
37
|
+
context: payload
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
quack(tag, error) {
|
package/dist/esm/SDK/DuckSDK.js
CHANGED
|
@@ -20,7 +20,9 @@ class DuckSDK {
|
|
|
20
20
|
fatal(tag, payload) {
|
|
21
21
|
this.sendReportToPlugins(tag, logLevel.FATAL, payload);
|
|
22
22
|
}
|
|
23
|
-
quack() {
|
|
23
|
+
quack(tag, error) {
|
|
24
|
+
this.providers.forEach((plugin)=>plugin.quack(tag, error));
|
|
25
|
+
}
|
|
24
26
|
sendReportToPlugins(tag, level, payload) {
|
|
25
27
|
this.providers.forEach((plugin)=>plugin.report(tag, level, payload));
|
|
26
28
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duckbug/js",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/cjs/index.cjs",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"lint": "yarn biome ci",
|
|
27
27
|
"prepare": "husky",
|
|
28
28
|
"test": "vitest run",
|
|
29
|
-
"publish": "yarn build &&
|
|
29
|
+
"publish": "yarn build && npm publish"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@biomejs/biome": "2.1.1",
|