hyoo_sync_client 0.0.362 → 0.0.363

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/web.mjs CHANGED
@@ -354,7 +354,7 @@ var $;
354
354
  this.cause = cause;
355
355
  const stack_get = Object.getOwnPropertyDescriptor(this, 'stack')?.get ?? (() => super.stack);
356
356
  Object.defineProperty(this, 'stack', {
357
- get: () => stack_get.call(this) + '\n' + [JSON.stringify(this.cause, null, ' ') ?? 'no cause', ...this.errors.map(e => e.stack)].map(e => e.trim()
357
+ get: () => (stack_get.call(this) ?? this.message) + '\n' + [JSON.stringify(this.cause, null, ' ') ?? 'no cause', ...this.errors.map(e => e.stack)].map(e => e.trim()
358
358
  .replace(/at /gm, ' at ')
359
359
  .replace(/^(?! +at )(.*)/gm, ' at | $1 (#)')).join('\n')
360
360
  });