Skip to content

Commit 128125f

Browse files
author
o.drapeza
committed
fix(interceptors/dns): correct lookup types
1 parent 2c156e1 commit 128125f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"test:infra": "borp -p \"test/infra/*.js\"",
8787
"test:interceptors": "borp -p \"test/interceptors/*.js\"",
8888
"test:jest": "cross-env NODE_V8_COVERAGE= jest",
89-
"test:unit": "borp --reporter spec",
89+
"test:unit": "borp --expose-gc -p \"test/*.js\"",
9090
"test:node-fetch": "borp -p \"test/node-fetch/**/*.js\"",
9191
"test:node-test": "borp -p \"test/node-test/**/*.js\"",
9292
"test:tdd": "borp --expose-gc -p \"test/*.js\"",

types/interceptors.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ declare namespace Interceptors {
3030
export type DNSInterceptorOpts = {
3131
maxTTL?: number
3232
maxItems?: number
33-
lookup?: (hostname: string, options: LookupOptions, callback: (err: NodeJS.ErrnoException | null, addresses: DNSInterceptorRecord[]) => void) => void
33+
lookup?: (origin: URL, options: LookupOptions, callback: (err: NodeJS.ErrnoException | null, addresses: DNSInterceptorRecord[]) => void) => void
3434
pick?: (origin: URL, records: DNSInterceptorOriginRecords, affinity: 4 | 6) => DNSInterceptorRecord
3535
dualStack?: boolean
3636
affinity?: 4 | 6

0 commit comments

Comments
 (0)