@yuneta/gobj-js 7.26.17 → 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.
@@ -3285,7 +3285,7 @@ var gobjJs = (function(exports) {
3285
3285
  ************************************************************/
3286
3286
  function log_stringify(v) {
3287
3287
  try {
3288
- return JSON.stringify(v);
3288
+ return JSON.stringify(v, (k, x) => typeof x === "bigint" ? x.toString() : x);
3289
3289
  } catch (e) {
3290
3290
  try {
3291
3291
  return String(v);
@@ -3346,6 +3346,16 @@ var gobjJs = (function(exports) {
3346
3346
  } catch (e2) {}
3347
3347
  }
3348
3348
  }
3349
+ var __in_remote_log__ = false;
3350
+ function call_remote_log_function(fn, ...args) {
3351
+ if (__in_remote_log__) return;
3352
+ __in_remote_log__ = true;
3353
+ try {
3354
+ call_log_function(fn, ...args);
3355
+ } finally {
3356
+ __in_remote_log__ = false;
3357
+ }
3358
+ }
3349
3359
  function log_error(format, ...args) {
3350
3360
  let msg = format_log(format, ...args);
3351
3361
  let hora = current_timestamp();
@@ -3354,7 +3364,7 @@ var gobjJs = (function(exports) {
3354
3364
  if (console_wants("error", msg)) call_log_function(f_error, "%c" + hora + " ERROR: " + String(msg), "color:red");
3355
3365
  } else {
3356
3366
  if (console_wants("error", msg)) _console.error("%c" + hora + " ERROR: " + String(msg), "color:red");
3357
- call_log_function(f_error, `${hora} ERROR: ${String(msg)}`);
3367
+ call_remote_log_function(f_error, `${hora} ERROR: ${String(msg)}`);
3358
3368
  }
3359
3369
  }
3360
3370
  emit_log_callback("error", msg, hora);
@@ -3367,7 +3377,7 @@ var gobjJs = (function(exports) {
3367
3377
  if (console_wants("warning", msg)) call_log_function(f_warning, "%c" + hora + " WARNING: " + String(msg), "color:yellow");
3368
3378
  } else {
3369
3379
  if (console_wants("warning", msg)) _console.warn("%c" + hora + " WARNING: " + String(msg), "color:yellow");
3370
- call_log_function(f_warning, `${hora} WARNING: ${String(msg)}`);
3380
+ call_remote_log_function(f_warning, `${hora} WARNING: ${String(msg)}`);
3371
3381
  }
3372
3382
  }
3373
3383
  emit_log_callback("warning", msg, hora);