got 14.6.3 → 14.6.4

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.
@@ -3,7 +3,7 @@ import { checkServerIdentity, type SecureContextOptions, type DetailedPeerCertif
3
3
  import https, { type RequestOptions as HttpsRequestOptions, type Agent as HttpsAgent } from 'node:https';
4
4
  import http, { type Agent as HttpAgent, type ClientRequest } from 'node:http';
5
5
  import type { Readable } from 'node:stream';
6
- import type { Socket } from 'node:net';
6
+ import type { Socket, LookupFunction } from 'node:net';
7
7
  import CacheableLookup from 'cacheable-lookup';
8
8
  import http2wrapper, { type ClientHttp2Session } from 'http2-wrapper';
9
9
  import { type FormDataLike } from 'form-data-encoder';
@@ -1024,8 +1024,8 @@ export default class Options {
1024
1024
  set searchParams(value: string | SearchParameters | URLSearchParams | undefined);
1025
1025
  get searchParameters(): unknown;
1026
1026
  set searchParameters(_value: unknown);
1027
- get dnsLookup(): CacheableLookup['lookup'] | undefined;
1028
- set dnsLookup(value: CacheableLookup['lookup'] | undefined);
1027
+ get dnsLookup(): LookupFunction | undefined;
1028
+ set dnsLookup(value: LookupFunction | undefined);
1029
1029
  /**
1030
1030
  An instance of [`CacheableLookup`](https://github.com/szmarczak/cacheable-lookup) used for making DNS lookups.
1031
1031
  Useful when making lots of requests to different *public* hostnames.
@@ -1454,7 +1454,7 @@ export default class Options {
1454
1454
  signal: AbortSignal | undefined;
1455
1455
  ignoreInvalidCookies: boolean;
1456
1456
  searchParams: string | SearchParameters | URLSearchParams | undefined;
1457
- dnsLookup: CacheableLookup["lookup"] | undefined;
1457
+ dnsLookup: LookupFunction | undefined;
1458
1458
  dnsCache: CacheableLookup | boolean | undefined;
1459
1459
  context: Record<string, unknown>;
1460
1460
  hooks: Hooks;
@@ -1503,7 +1503,7 @@ export default class Options {
1503
1503
  ecdhCurve: string | undefined;
1504
1504
  crl: string | Buffer<ArrayBufferLike> | (string | Buffer<ArrayBufferLike>)[] | undefined;
1505
1505
  secureOptions: number | undefined;
1506
- lookup: {
1506
+ lookup: LookupFunction | {
1507
1507
  (hostname: string, family: import("cacheable-lookup").IPFamily, callback: (error: NodeJS.ErrnoException | null, address: string, family: import("cacheable-lookup").IPFamily) => void): void;
1508
1508
  (hostname: string, callback: (error: NodeJS.ErrnoException | null, address: string, family: import("cacheable-lookup").IPFamily) => void): void;
1509
1509
  (hostname: string, options: import("cacheable-lookup").LookupOptions & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "got",
3
- "version": "14.6.3",
3
+ "version": "14.6.4",
4
4
  "description": "Human-friendly and powerful HTTP request library for Node.js",
5
5
  "license": "MIT",
6
6
  "repository": "sindresorhus/got",