@nxtedition/nxt-undici 3.2.1 → 3.2.3

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.
Files changed (2) hide show
  1. package/lib/index.js +5 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -75,8 +75,10 @@ export async function request(url, opts) {
75
75
  dispatcherCache.set(baseDispatcher, dispatcher)
76
76
  }
77
77
 
78
- return await undici.request(url, {
78
+ return await dispatcher.request({
79
79
  id: opts.id,
80
+ origin: url.origin,
81
+ path: url.path ?? (url.search ? `${url.pathname}${url.search}` : url.pathname),
80
82
  method,
81
83
  dispatcher,
82
84
  body: opts.body,
@@ -96,5 +98,7 @@ export async function request(url, opts) {
96
98
  error: opts.error ?? true,
97
99
  verify: opts.verify ?? true,
98
100
  logger: opts.logger ?? null,
101
+ lookup: opts.lookup ?? null,
102
+ dns: opts.dns ?? null,
99
103
  })
100
104
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/nxt-undici",
3
- "version": "3.2.1",
3
+ "version": "3.2.3",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "main": "lib/index.js",