@blotoutio/providers-blotout-wallet-sdk 0.68.2 → 0.69.0
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/core.cjs.js +143 -40
- package/core.js +143 -40
- package/core.mjs +143 -40
- package/index.cjs.js +242 -177
- package/index.js +242 -177
- package/index.mjs +242 -177
- package/package.json +1 -1
- package/ui.cjs.js +5 -14
- package/ui.js +5 -14
- package/ui.mjs +5 -14
package/ui.js
CHANGED
@@ -356,35 +356,26 @@
|
|
356
356
|
return false;
|
357
357
|
}
|
358
358
|
};
|
359
|
+
const prefix = `[EdgeTag]`;
|
359
360
|
const logger = {
|
360
361
|
log: (...args) => {
|
361
362
|
if (canLog()) {
|
362
|
-
console.log(...args);
|
363
|
+
console.log(prefix, ...args);
|
363
364
|
}
|
364
365
|
},
|
365
366
|
error: (...args) => {
|
366
367
|
if (canLog()) {
|
367
|
-
console.error(...args);
|
368
|
+
console.error(prefix, ...args);
|
368
369
|
}
|
369
370
|
},
|
370
371
|
info: (...args) => {
|
371
372
|
if (canLog()) {
|
372
|
-
console.info(...args);
|
373
|
+
console.info(prefix, ...args);
|
373
374
|
}
|
374
375
|
},
|
375
376
|
trace: (...args) => {
|
376
377
|
if (canLog()) {
|
377
|
-
console.trace(...args);
|
378
|
-
}
|
379
|
-
},
|
380
|
-
table: (...args) => {
|
381
|
-
if (canLog()) {
|
382
|
-
console.table(...args);
|
383
|
-
}
|
384
|
-
},
|
385
|
-
dir: (...args) => {
|
386
|
-
if (canLog()) {
|
387
|
-
console.dir(...args);
|
378
|
+
console.trace(prefix, ...args);
|
388
379
|
}
|
389
380
|
},
|
390
381
|
};
|
package/ui.mjs
CHANGED
@@ -353,35 +353,26 @@ const canLog = () => {
|
|
353
353
|
return false;
|
354
354
|
}
|
355
355
|
};
|
356
|
+
const prefix = `[EdgeTag]`;
|
356
357
|
const logger = {
|
357
358
|
log: (...args) => {
|
358
359
|
if (canLog()) {
|
359
|
-
console.log(...args);
|
360
|
+
console.log(prefix, ...args);
|
360
361
|
}
|
361
362
|
},
|
362
363
|
error: (...args) => {
|
363
364
|
if (canLog()) {
|
364
|
-
console.error(...args);
|
365
|
+
console.error(prefix, ...args);
|
365
366
|
}
|
366
367
|
},
|
367
368
|
info: (...args) => {
|
368
369
|
if (canLog()) {
|
369
|
-
console.info(...args);
|
370
|
+
console.info(prefix, ...args);
|
370
371
|
}
|
371
372
|
},
|
372
373
|
trace: (...args) => {
|
373
374
|
if (canLog()) {
|
374
|
-
console.trace(...args);
|
375
|
-
}
|
376
|
-
},
|
377
|
-
table: (...args) => {
|
378
|
-
if (canLog()) {
|
379
|
-
console.table(...args);
|
380
|
-
}
|
381
|
-
},
|
382
|
-
dir: (...args) => {
|
383
|
-
if (canLog()) {
|
384
|
-
console.dir(...args);
|
375
|
+
console.trace(prefix, ...args);
|
385
376
|
}
|
386
377
|
},
|
387
378
|
};
|