@yuneta/gobj-js 7.26.18 → 7.26.19
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/dist/gobj-js.cjs.js +11 -6
- package/dist/gobj-js.cjs.js.map +1 -1
- package/dist/gobj-js.cjs.min.js +879 -874
- package/dist/gobj-js.cjs.min.js.map +1 -1
- package/dist/gobj-js.es.js +11 -6
- package/dist/gobj-js.es.js.map +1 -1
- package/dist/gobj-js.es.min.js +917 -912
- package/dist/gobj-js.es.min.js.map +1 -1
- package/dist/gobj-js.iife.js +11 -6
- package/dist/gobj-js.iife.js.map +1 -1
- package/dist/gobj-js.iife.min.js +879 -874
- package/dist/gobj-js.iife.min.js.map +1 -1
- package/dist/gobj-js.umd.js +11 -6
- package/dist/gobj-js.umd.js.map +1 -1
- package/dist/gobj-js.umd.min.js +879 -874
- package/dist/gobj-js.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/gobj-js.umd.js
CHANGED
|
@@ -3339,18 +3339,23 @@
|
|
|
3339
3339
|
} else output = args.map((arg) => typeof arg === "object" ? log_stringify(arg) : log_string(arg)).join(" ");
|
|
3340
3340
|
return output;
|
|
3341
3341
|
}
|
|
3342
|
-
var __in_log_function__ = false;
|
|
3343
3342
|
function call_log_function(fn, ...args) {
|
|
3344
|
-
if (__in_log_function__) return;
|
|
3345
|
-
__in_log_function__ = true;
|
|
3346
3343
|
try {
|
|
3347
3344
|
fn(...args);
|
|
3348
3345
|
} catch (e) {
|
|
3349
3346
|
try {
|
|
3350
3347
|
_console.error("a log function threw:", e);
|
|
3351
3348
|
} catch (e2) {}
|
|
3349
|
+
}
|
|
3350
|
+
}
|
|
3351
|
+
var __in_remote_log__ = false;
|
|
3352
|
+
function call_remote_log_function(fn, ...args) {
|
|
3353
|
+
if (__in_remote_log__) return;
|
|
3354
|
+
__in_remote_log__ = true;
|
|
3355
|
+
try {
|
|
3356
|
+
call_log_function(fn, ...args);
|
|
3352
3357
|
} finally {
|
|
3353
|
-
|
|
3358
|
+
__in_remote_log__ = false;
|
|
3354
3359
|
}
|
|
3355
3360
|
}
|
|
3356
3361
|
function log_error(format, ...args) {
|
|
@@ -3361,7 +3366,7 @@
|
|
|
3361
3366
|
if (console_wants("error", msg)) call_log_function(f_error, "%c" + hora + " ERROR: " + String(msg), "color:red");
|
|
3362
3367
|
} else {
|
|
3363
3368
|
if (console_wants("error", msg)) _console.error("%c" + hora + " ERROR: " + String(msg), "color:red");
|
|
3364
|
-
|
|
3369
|
+
call_remote_log_function(f_error, `${hora} ERROR: ${String(msg)}`);
|
|
3365
3370
|
}
|
|
3366
3371
|
}
|
|
3367
3372
|
emit_log_callback("error", msg, hora);
|
|
@@ -3374,7 +3379,7 @@
|
|
|
3374
3379
|
if (console_wants("warning", msg)) call_log_function(f_warning, "%c" + hora + " WARNING: " + String(msg), "color:yellow");
|
|
3375
3380
|
} else {
|
|
3376
3381
|
if (console_wants("warning", msg)) _console.warn("%c" + hora + " WARNING: " + String(msg), "color:yellow");
|
|
3377
|
-
|
|
3382
|
+
call_remote_log_function(f_warning, `${hora} WARNING: ${String(msg)}`);
|
|
3378
3383
|
}
|
|
3379
3384
|
}
|
|
3380
3385
|
emit_log_callback("warning", msg, hora);
|