@nxtedition/nxt-undici 2.0.43 → 2.0.45

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.
@@ -63,18 +63,17 @@ class Handler {
63
63
  }
64
64
  }
65
65
 
66
- const stackTraceLimit = Error.stackTraceLimit
67
- Error.stackTraceLimit = 0
68
- try {
69
- this.handler.onError(
70
- createHttpError(this.statusCode, {
71
- ureq: this.opts,
72
- ures: { statusCode: this.statusCode, headers: this.headers, body: this.body },
73
- }),
74
- )
75
- } finally {
76
- Error.stackTraceLimit = stackTraceLimit
77
- }
66
+ this.handler.onError(
67
+ createHttpError(this.statusCode, {
68
+ ureq: {
69
+ origin: this.opts.origin,
70
+ path: this.opts.path,
71
+ method: this.opts.method,
72
+ headers: this.opts.headers,
73
+ },
74
+ ures: { statusCode: this.statusCode, headers: this.headers, body: this.body },
75
+ }),
76
+ )
78
77
 
79
78
  this.decoder = null
80
79
  this.contentType = null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/nxt-undici",
3
- "version": "2.0.43",
3
+ "version": "2.0.45",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "main": "lib/index.js",