hyoo_sync_client 0.0.361 → 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/node.js +1 -1
- package/node.js.map +1 -1
- package/node.mjs +1 -1
- package/node.test.js +1 -1
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.js +1 -1
- package/web.js.map +1 -1
- package/web.mjs +1 -1
package/node.mjs
CHANGED
|
@@ -1004,7 +1004,7 @@ var $;
|
|
|
1004
1004
|
this.cause = cause;
|
|
1005
1005
|
const stack_get = Object.getOwnPropertyDescriptor(this, 'stack')?.get ?? (() => super.stack);
|
|
1006
1006
|
Object.defineProperty(this, 'stack', {
|
|
1007
|
-
get: () => stack_get.call(this) + '\n' + [JSON.stringify(this.cause, null, ' ') ?? 'no cause', ...this.errors.map(e => e.stack)].map(e => e.trim()
|
|
1007
|
+
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()
|
|
1008
1008
|
.replace(/at /gm, ' at ')
|
|
1009
1009
|
.replace(/^(?! +at )(.*)/gm, ' at | $1 (#)')).join('\n')
|
|
1010
1010
|
});
|
package/node.test.js
CHANGED
|
@@ -995,7 +995,7 @@ var $;
|
|
|
995
995
|
this.cause = cause;
|
|
996
996
|
const stack_get = Object.getOwnPropertyDescriptor(this, 'stack')?.get ?? (() => super.stack);
|
|
997
997
|
Object.defineProperty(this, 'stack', {
|
|
998
|
-
get: () => stack_get.call(this) + '\n' + [JSON.stringify(this.cause, null, ' ') ?? 'no cause', ...this.errors.map(e => e.stack)].map(e => e.trim()
|
|
998
|
+
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()
|
|
999
999
|
.replace(/at /gm, ' at ')
|
|
1000
1000
|
.replace(/^(?! +at )(.*)/gm, ' at | $1 (#)')).join('\n')
|
|
1001
1001
|
});
|