@nxtedition/nxt-undici 6.3.7 → 6.3.9
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 +1 -1
- package/lib/utils.js +1 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -110,7 +110,7 @@ function wrapDispatch(dispatcher) {
|
|
|
110
110
|
body: opts.body,
|
|
111
111
|
query: opts.query,
|
|
112
112
|
headers,
|
|
113
|
-
signal: opts.signal,
|
|
113
|
+
signal: opts.signal ?? undefined,
|
|
114
114
|
reset: opts.reset ?? false,
|
|
115
115
|
blocking: opts.blocking ?? true,
|
|
116
116
|
headersTimeout: opts.headersTimeout,
|
package/lib/utils.js
CHANGED
|
@@ -378,6 +378,7 @@ export function decorateError(err, opts, { statusCode, headers, trailers, body }
|
|
|
378
378
|
err.url ??= opts.origin ? new URL(opts.path, opts.origin).href : null
|
|
379
379
|
|
|
380
380
|
err.req = {
|
|
381
|
+
url: err.url,
|
|
381
382
|
method: opts?.method,
|
|
382
383
|
headers: opts?.headers,
|
|
383
384
|
body:
|