@yuneta/gobj-js 7.26.17 → 7.26.18

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);
@@ -3337,13 +3337,18 @@ var gobjJs = (function(exports) {
3337
3337
  } else output = args.map((arg) => typeof arg === "object" ? log_stringify(arg) : log_string(arg)).join(" ");
3338
3338
  return output;
3339
3339
  }
3340
+ var __in_log_function__ = false;
3340
3341
  function call_log_function(fn, ...args) {
3342
+ if (__in_log_function__) return;
3343
+ __in_log_function__ = true;
3341
3344
  try {
3342
3345
  fn(...args);
3343
3346
  } catch (e) {
3344
3347
  try {
3345
3348
  _console.error("a log function threw:", e);
3346
3349
  } catch (e2) {}
3350
+ } finally {
3351
+ __in_log_function__ = false;
3347
3352
  }
3348
3353
  }
3349
3354
  function log_error(format, ...args) {