better-call 1.0.16 → 1.0.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.
package/dist/client.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { BetterFetchOption, BetterFetchResponse } from '@better-fetch/fetch';
2
- import { j as Router, Z as UnionToIntersection, b as Endpoint, W as HasRequiredKeys } from './router-c8myTmx-.cjs';
2
+ import { j as Router, Z as UnionToIntersection, b as Endpoint, W as HasRequiredKeys } from './router-DcqXHY8X.cjs';
3
3
 
4
4
  type HasRequired<T extends {
5
5
  body?: any;
package/dist/client.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { BetterFetchOption, BetterFetchResponse } from '@better-fetch/fetch';
2
- import { j as Router, Z as UnionToIntersection, b as Endpoint, W as HasRequiredKeys } from './router-c8myTmx-.js';
2
+ import { j as Router, Z as UnionToIntersection, b as Endpoint, W as HasRequiredKeys } from './router-DcqXHY8X.js';
3
3
 
4
4
  type HasRequired<T extends {
5
5
  body?: any;
package/dist/index.cjs CHANGED
@@ -75,12 +75,14 @@ function makeErrorForHideStackFrame(Base, clazz) {
75
75
  get errorStack() {
76
76
  return this.#hiddenStack;
77
77
  }
78
- // This is a workaround for wpt tests that expect that the error
79
- // constructor has a `name` property of the base class.
80
- get ["constructor"]() {
81
- return clazz;
82
- }
83
78
  }
79
+ Object.defineProperty(HideStackFramesError.prototype, "constructor", {
80
+ get() {
81
+ return clazz;
82
+ },
83
+ enumerable: false,
84
+ configurable: true
85
+ });
84
86
  return HideStackFramesError;
85
87
  }
86
88
  var _statusCode = {