@nxtedition/nxt-undici 7.3.16 → 7.3.17
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/interceptor/dns.js
CHANGED
|
@@ -45,17 +45,14 @@ export default () => (dispatch) => {
|
|
|
45
45
|
resolve([err, null])
|
|
46
46
|
} else {
|
|
47
47
|
const now = getFastNow()
|
|
48
|
-
const prev = cache.get(hostname)
|
|
49
|
-
const prevByAddr = prev ? new Map(prev.map((r) => [r.address, r])) : null
|
|
50
48
|
const val = records.map(({ address }) => {
|
|
51
|
-
const old = prevByAddr?.get(address)
|
|
52
49
|
return {
|
|
53
50
|
address,
|
|
54
51
|
expires: now + (ttl ?? 1e3),
|
|
55
52
|
pending: 0,
|
|
56
|
-
errored:
|
|
53
|
+
errored: 0,
|
|
57
54
|
counter: 0,
|
|
58
|
-
timeout:
|
|
55
|
+
timeout: 0,
|
|
59
56
|
}
|
|
60
57
|
})
|
|
61
58
|
|
|
@@ -134,6 +131,7 @@ export default () => (dispatch) => {
|
|
|
134
131
|
if (!record) {
|
|
135
132
|
throw Object.assign(new Error(`No available DNS records found for ${hostname}`), {
|
|
136
133
|
code: 'ENOTFOUND',
|
|
134
|
+
data: { records },
|
|
137
135
|
})
|
|
138
136
|
}
|
|
139
137
|
|
|
@@ -47,13 +47,17 @@ export default () => (dispatch) => {
|
|
|
47
47
|
schedulers.set(opts.origin, scheduler)
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
scheduler
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
50
|
+
const priorityHandler = new Handler(handler, scheduler)
|
|
51
|
+
scheduler.acquire(
|
|
52
|
+
(priorityHandler) => {
|
|
53
|
+
try {
|
|
54
|
+
dispatch(opts, priorityHandler)
|
|
55
|
+
} catch (err) {
|
|
56
|
+
priorityHandler.onError(err)
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
opts.priority,
|
|
60
|
+
priorityHandler,
|
|
61
|
+
)
|
|
58
62
|
}
|
|
59
63
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxtedition/nxt-undici",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.17",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Robert Nagy <robert.nagy@boffins.se>",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"lib/*"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@nxtedition/scheduler": "^
|
|
13
|
-
"@nxtedition/undici": "^11.1.
|
|
12
|
+
"@nxtedition/scheduler": "^4.1.1",
|
|
13
|
+
"@nxtedition/undici": "^11.1.4",
|
|
14
14
|
"cache-control-parser": "^2.2.0",
|
|
15
15
|
"fast-querystring": "^1.1.2",
|
|
16
16
|
"http-errors": "^2.0.1",
|
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@eslint/js": "^10.0.1",
|
|
21
|
-
"@types/node": "^25.2
|
|
22
|
-
"eslint": "^10.
|
|
21
|
+
"@types/node": "^25.5.2",
|
|
22
|
+
"eslint": "^10.2.0",
|
|
23
23
|
"eslint-plugin-n": "^17.24.0",
|
|
24
24
|
"husky": "^9.1.7",
|
|
25
|
-
"lint-staged": "^16.
|
|
26
|
-
"pino": "^
|
|
25
|
+
"lint-staged": "^16.4.0",
|
|
26
|
+
"pino": "^10.3.1",
|
|
27
27
|
"pinst": "^3.0.0",
|
|
28
28
|
"prettier": "^3.8.1",
|
|
29
29
|
"send": "^1.2.1",
|
|
30
|
-
"tap": "^21.
|
|
31
|
-
"undici-types": "^
|
|
30
|
+
"tap": "^21.6.3",
|
|
31
|
+
"undici-types": "^8.0.2"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"prepare": "husky",
|