@nxtedition/nxt-undici 4.2.12 → 4.2.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/interceptor/dns.js +7 -3
- package/package.json +1 -2
package/lib/interceptor/dns.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import assert from 'node:assert'
|
|
2
|
+
import net from 'node:net'
|
|
3
|
+
import dns from 'node:dns'
|
|
2
4
|
import { DecoratorHandler } from '../utils.js'
|
|
3
|
-
import CacheableLookup from 'cacheable-lookup'
|
|
4
|
-
import net from 'net'
|
|
5
5
|
|
|
6
|
-
const DEFAULT_RESOLVER =
|
|
6
|
+
const DEFAULT_RESOLVER = {
|
|
7
|
+
lookup(hostname, options, callbac) {
|
|
8
|
+
return dns.lookup(hostname, options, callbac)
|
|
9
|
+
},
|
|
10
|
+
}
|
|
7
11
|
|
|
8
12
|
class Handler extends DecoratorHandler {
|
|
9
13
|
#handler
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxtedition/nxt-undici",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.13",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Robert Nagy <robert.nagy@boffins.se>",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"cache-control-parser": "^2.0.6",
|
|
13
|
-
"cacheable-lookup": "^7.0.0",
|
|
14
13
|
"http-errors": "^2.0.0",
|
|
15
14
|
"lru-cache": "^11.0.0",
|
|
16
15
|
"undici": "^6.19.5"
|