@nxtedition/nxt-undici 2.0.44 → 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,23 +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: {
72
- origin: this.opts.origin,
73
- path: this.opts.path,
74
- method: this.opts.method,
75
- headers: this.opts.headers,
76
- },
77
- ures: { statusCode: this.statusCode, headers: this.headers, body: this.body },
78
- }),
79
- )
80
- } finally {
81
- Error.stackTraceLimit = stackTraceLimit
82
- }
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
+ )
83
77
 
84
78
  this.decoder = null
85
79
  this.contentType = null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/nxt-undici",
3
- "version": "2.0.44",
3
+ "version": "2.0.45",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "main": "lib/index.js",