@nxtedition/nxt-undici 6.3.11 → 6.3.13

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/lib/index.js CHANGED
@@ -84,13 +84,13 @@ function wrapDispatch(dispatcher) {
84
84
  wrappedDispatcher = compose(
85
85
  dispatcher,
86
86
  interceptors.dns(),
87
+ interceptors.lookup(),
87
88
  interceptors.requestBodyFactory(),
88
89
  interceptors.responseRetry(),
89
90
  interceptors.responseVerify(),
90
91
  interceptors.proxy(),
91
92
  interceptors.cache(),
92
93
  interceptors.redirect(),
93
- interceptors.lookup(),
94
94
  interceptors.log(),
95
95
  interceptors.requestId(),
96
96
  interceptors.responseError(),
package/lib/utils.js CHANGED
@@ -375,10 +375,9 @@ export function decorateError(err, opts, { statusCode, headers, trailers, body }
375
375
  err.statusCode = statusCode
376
376
  }
377
377
 
378
- err.url ??= opts.origin ? new URL(opts.path, opts.origin).href : null
379
-
380
378
  err.req = {
381
- url: err.url,
379
+ path: opts.path,
380
+ origin: opts.origin,
382
381
  method: opts?.method,
383
382
  headers: opts?.headers,
384
383
  body:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/nxt-undici",
3
- "version": "6.3.11",
3
+ "version": "6.3.13",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "main": "lib/index.js",