@digipair/skill-web-debug 0.32.7 → 0.33.1
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.
- package/index.cjs.js +2 -2
- package/index.esm.js +2 -2
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
let DebugService = class DebugService {
|
|
6
|
-
async log(params, _pinsSettingsList,
|
|
6
|
+
async log(params, _pinsSettingsList, context) {
|
|
7
7
|
const { type = 'INFOS', label, value } = params;
|
|
8
8
|
const message = `[${type}] ${label}`;
|
|
9
9
|
if (value) {
|
|
@@ -11,7 +11,7 @@ let DebugService = class DebugService {
|
|
|
11
11
|
} else {
|
|
12
12
|
window.console.log(message);
|
|
13
13
|
}
|
|
14
|
-
return
|
|
14
|
+
return context.previous;
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
const log = (params, pinsSettingsList, context)=>new DebugService().log(params, pinsSettingsList, context);
|
package/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
let DebugService = class DebugService {
|
|
2
|
-
async log(params, _pinsSettingsList,
|
|
2
|
+
async log(params, _pinsSettingsList, context) {
|
|
3
3
|
const { type = 'INFOS', label, value } = params;
|
|
4
4
|
const message = `[${type}] ${label}`;
|
|
5
5
|
if (value) {
|
|
@@ -7,7 +7,7 @@ let DebugService = class DebugService {
|
|
|
7
7
|
} else {
|
|
8
8
|
window.console.log(message);
|
|
9
9
|
}
|
|
10
|
-
return
|
|
10
|
+
return context.previous;
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
const log = (params, pinsSettingsList, context)=>new DebugService().log(params, pinsSettingsList, context);
|