@nxtedition/nxt-undici 3.3.3 → 4.0.1

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 +4 -1
  2. package/package.json +6 -6
package/lib/index.js CHANGED
@@ -84,6 +84,9 @@ export function dispatch(dispatcher, opts, handler) {
84
84
  return wrapDispatcher(dispatcher).dispatch(opts, handler)
85
85
  }
86
86
 
87
+ // HACK
88
+ const _request = undici.Dispatcher.prototype.request
89
+
87
90
  export async function request(url, opts) {
88
91
  // TODO (fix): More argument validation...
89
92
 
@@ -99,5 +102,5 @@ export async function request(url, opts) {
99
102
  opts = url
100
103
  }
101
104
 
102
- return await wrapDispatcher(opts.dispatcher ?? undici.getGlobalDispatcher()).request(opts)
105
+ return _request.call(await wrapDispatcher(opts.dispatcher ?? undici.getGlobalDispatcher()), opts)
103
106
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/nxt-undici",
3
- "version": "3.3.3",
3
+ "version": "4.0.1",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "main": "lib/index.js",
@@ -9,25 +9,25 @@
9
9
  "lib/*"
10
10
  ],
11
11
  "dependencies": {
12
- "@nxtedition/undici": "^7.0.1",
12
+ "@nxtedition/undici": "^8.1.0",
13
13
  "cache-control-parser": "^2.0.6",
14
14
  "cacheable-lookup": "^7.0.0",
15
15
  "http-errors": "^2.0.0",
16
- "lru-cache": "^10.2.0"
16
+ "lru-cache": "^10.3.0"
17
17
  },
18
18
  "devDependencies": {
19
- "@types/node": "^20.14.8",
19
+ "@types/node": "^20.14.9",
20
20
  "eslint": "^8.0.0",
21
21
  "eslint-config-prettier": "^9.1.0",
22
22
  "eslint-config-standard": "^17.0.0",
23
23
  "eslint-plugin-import": "^2.29.1",
24
24
  "eslint-plugin-n": "^17.9.0",
25
- "eslint-plugin-promise": "^6.2.0",
25
+ "eslint-plugin-promise": "^6.4.0",
26
26
  "husky": "^9.0.11",
27
27
  "lint-staged": "^15.2.7",
28
28
  "pinst": "^3.0.0",
29
29
  "prettier": "^3.3.2",
30
- "tap": "^19.2.5"
30
+ "tap": "^20.0.3"
31
31
  },
32
32
  "scripts": {
33
33
  "prepare": "husky install",