cdk-ecr-deployment 3.0.35 → 3.0.37
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/.jsii +2 -2
- package/.jsii.tabl.json +1 -1
- package/lib/index.js +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +70 -22
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +106 -62
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +12 -10
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +70 -22
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +106 -62
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +12 -10
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +70 -22
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +106 -62
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +12 -10
- package/package.json +3 -3
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
* wasi.start(instance);
|
|
30
30
|
* ```
|
|
31
31
|
*
|
|
32
|
-
* To run the above example, create a new WebAssembly text format file named`demo.wat`:
|
|
32
|
+
* To run the above example, create a new WebAssembly text format file named `demo.wat`:
|
|
33
33
|
*
|
|
34
34
|
* ```text
|
|
35
35
|
* (module
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
* wat2wasm demo.wat
|
|
68
68
|
* ```
|
|
69
69
|
* @experimental
|
|
70
|
-
* @see [source](https://github.com/nodejs/node/blob/v20.
|
|
70
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.11.1/lib/wasi.js)
|
|
71
71
|
*/
|
|
72
72
|
declare module "wasi" {
|
|
73
73
|
interface WASIOptions {
|
|
@@ -75,11 +75,13 @@ declare module "wasi" {
|
|
|
75
75
|
* An array of strings that the WebAssembly application will
|
|
76
76
|
* see as command line arguments. The first argument is the virtual path to the
|
|
77
77
|
* WASI command itself.
|
|
78
|
+
* @default []
|
|
78
79
|
*/
|
|
79
80
|
args?: string[] | undefined;
|
|
80
81
|
/**
|
|
81
82
|
* An object similar to `process.env` that the WebAssembly
|
|
82
83
|
* application will see as its environment.
|
|
84
|
+
* @default {}
|
|
83
85
|
*/
|
|
84
86
|
env?: object | undefined;
|
|
85
87
|
/**
|
|
@@ -91,7 +93,7 @@ declare module "wasi" {
|
|
|
91
93
|
preopens?: NodeJS.Dict<string> | undefined;
|
|
92
94
|
/**
|
|
93
95
|
* By default, when WASI applications call `__wasi_proc_exit()`
|
|
94
|
-
*
|
|
96
|
+
* `wasi.start()` will return with the exit code specified rather than terminatng the process.
|
|
95
97
|
* Setting this option to `false` will cause the Node.js process to exit with
|
|
96
98
|
* the specified exit code instead.
|
|
97
99
|
* @default true
|
|
@@ -114,10 +116,10 @@ declare module "wasi" {
|
|
|
114
116
|
stderr?: number | undefined;
|
|
115
117
|
/**
|
|
116
118
|
* The version of WASI requested.
|
|
117
|
-
* Currently the only supported versions are `'unstable'` and `'preview1'`.
|
|
118
|
-
* @since
|
|
119
|
+
* Currently the only supported versions are `'unstable'` and `'preview1'`. This option is mandatory.
|
|
120
|
+
* @since v19.8.0
|
|
119
121
|
*/
|
|
120
|
-
version:
|
|
122
|
+
version: "unstable" | "preview1";
|
|
121
123
|
}
|
|
122
124
|
/**
|
|
123
125
|
* The `WASI` class provides the WASI system call API and additional convenience
|
|
@@ -145,10 +147,10 @@ declare module "wasi" {
|
|
|
145
147
|
*/
|
|
146
148
|
getImportObject(): object;
|
|
147
149
|
/**
|
|
148
|
-
* Attempt to begin execution of `instance` as a WASI command by invoking its`_start()` export. If `instance` does not contain a `_start()` export, or if`instance` contains an `_initialize()`
|
|
150
|
+
* Attempt to begin execution of `instance` as a WASI command by invoking its `_start()` export. If `instance` does not contain a `_start()` export, or if `instance` contains an `_initialize()`
|
|
149
151
|
* export, then an exception is thrown.
|
|
150
152
|
*
|
|
151
|
-
* `start()` requires that `instance` exports a [`WebAssembly.Memory`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory) named`memory`. If
|
|
153
|
+
* `start()` requires that `instance` exports a [`WebAssembly.Memory`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory) named `memory`. If
|
|
152
154
|
* `instance` does not have a `memory` export an exception is thrown.
|
|
153
155
|
*
|
|
154
156
|
* If `start()` is called more than once, an exception is thrown.
|
|
@@ -156,9 +158,9 @@ declare module "wasi" {
|
|
|
156
158
|
*/
|
|
157
159
|
start(instance: object): number; // TODO: avoid DOM dependency until WASM moved to own lib.
|
|
158
160
|
/**
|
|
159
|
-
* Attempt to initialize `instance` as a WASI reactor by invoking its`_initialize()` export, if it is present. If `instance` contains a `_start()`export, then an exception is thrown.
|
|
161
|
+
* Attempt to initialize `instance` as a WASI reactor by invoking its `_initialize()` export, if it is present. If `instance` contains a `_start()` export, then an exception is thrown.
|
|
160
162
|
*
|
|
161
|
-
* `initialize()` requires that `instance` exports a [`WebAssembly.Memory`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory) named`memory`.
|
|
163
|
+
* `initialize()` requires that `instance` exports a [`WebAssembly.Memory`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory) named `memory`.
|
|
162
164
|
* If `instance` does not have a `memory` export an exception is thrown.
|
|
163
165
|
*
|
|
164
166
|
* If `initialize()` is called more than once, an exception is thrown.
|
|
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Tue, 19 Mar 2024 12:41:20 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
@@ -43,18 +43,18 @@ declare module "dns/promises" {
|
|
|
43
43
|
* integer, then it must be `4` or `6` – if `options` is not provided, then IPv4
|
|
44
44
|
* and IPv6 addresses are both returned if found.
|
|
45
45
|
*
|
|
46
|
-
* With the `all` option set to `true`, the `Promise` is resolved with `addresses`being an array of objects with the properties `address` and `family`.
|
|
46
|
+
* With the `all` option set to `true`, the `Promise` is resolved with `addresses` being an array of objects with the properties `address` and `family`.
|
|
47
47
|
*
|
|
48
|
-
* On error, the `Promise` is rejected with an `Error` object, where `err.code`is the error code.
|
|
48
|
+
* On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` is the error code.
|
|
49
49
|
* Keep in mind that `err.code` will be set to `'ENOTFOUND'` not only when
|
|
50
50
|
* the host name does not exist but also when the lookup fails in other ways
|
|
51
51
|
* such as no available file descriptors.
|
|
52
52
|
*
|
|
53
|
-
* `dnsPromises.lookup()` does not necessarily have anything to do with the DNS
|
|
53
|
+
* [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromiseslookuphostname-options) does not necessarily have anything to do with the DNS
|
|
54
54
|
* protocol. The implementation uses an operating system facility that can
|
|
55
55
|
* associate names with addresses and vice versa. This implementation can have
|
|
56
56
|
* subtle but important consequences on the behavior of any Node.js program. Please
|
|
57
|
-
* take some time to consult the
|
|
57
|
+
* take some time to consult the [Implementation considerations section](https://nodejs.org/docs/latest-v20.x/api/dns.html#implementation-considerations) before
|
|
58
58
|
* using `dnsPromises.lookup()`.
|
|
59
59
|
*
|
|
60
60
|
* Example usage:
|
|
@@ -91,9 +91,9 @@ declare module "dns/promises" {
|
|
|
91
91
|
* the operating system's underlying `getnameinfo` implementation.
|
|
92
92
|
*
|
|
93
93
|
* If `address` is not a valid IP address, a `TypeError` will be thrown.
|
|
94
|
-
* The `port` will be coerced to a number. If it is not a legal port, a `TypeError`will be thrown.
|
|
94
|
+
* The `port` will be coerced to a number. If it is not a legal port, a `TypeError` will be thrown.
|
|
95
95
|
*
|
|
96
|
-
* On error, the `Promise` is rejected with an `Error` object, where `err.code`is the error code.
|
|
96
|
+
* On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` is the error code.
|
|
97
97
|
*
|
|
98
98
|
* ```js
|
|
99
99
|
* const dnsPromises = require('node:dns').promises;
|
|
@@ -119,7 +119,8 @@ declare module "dns/promises" {
|
|
|
119
119
|
*
|
|
120
120
|
* <omitted>
|
|
121
121
|
*
|
|
122
|
-
* On error, the `Promise` is rejected with an `Error` object, where `err.code`
|
|
122
|
+
* On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code`
|
|
123
|
+
* is one of the [DNS error codes](https://nodejs.org/docs/latest-v20.x/api/dns.html#error-codes).
|
|
123
124
|
* @since v10.6.0
|
|
124
125
|
* @param hostname Host name to resolve.
|
|
125
126
|
* @param [rrtype='A'] Resource record type.
|
|
@@ -142,7 +143,7 @@ declare module "dns/promises" {
|
|
|
142
143
|
rrtype: string,
|
|
143
144
|
): Promise<string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]>;
|
|
144
145
|
/**
|
|
145
|
-
* Uses the DNS protocol to resolve IPv4 addresses (`A` records) for the`hostname`. On success, the `Promise` is resolved with an array of IPv4
|
|
146
|
+
* Uses the DNS protocol to resolve IPv4 addresses (`A` records) for the `hostname`. On success, the `Promise` is resolved with an array of IPv4
|
|
146
147
|
* addresses (e.g. `['74.125.79.104', '74.125.79.105', '74.125.79.106']`).
|
|
147
148
|
* @since v10.6.0
|
|
148
149
|
* @param hostname Host name to resolve.
|
|
@@ -151,7 +152,7 @@ declare module "dns/promises" {
|
|
|
151
152
|
function resolve4(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
|
|
152
153
|
function resolve4(hostname: string, options: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
|
153
154
|
/**
|
|
154
|
-
* Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the`hostname`. On success, the `Promise` is resolved with an array of IPv6
|
|
155
|
+
* Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the `hostname`. On success, the `Promise` is resolved with an array of IPv6
|
|
155
156
|
* addresses.
|
|
156
157
|
* @since v10.6.0
|
|
157
158
|
* @param hostname Host name to resolve.
|
|
@@ -191,7 +192,7 @@ declare module "dns/promises" {
|
|
|
191
192
|
/**
|
|
192
193
|
* Uses the DNS protocol to resolve `CAA` records for the `hostname`. On success,
|
|
193
194
|
* the `Promise` is resolved with an array of objects containing available
|
|
194
|
-
* certification authority authorization records available for the `hostname`(e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'},{critical: 128, issue: 'pki.example.com'}]`).
|
|
195
|
+
* certification authority authorization records available for the `hostname` (e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'},{critical: 128, issue: 'pki.example.com'}]`).
|
|
195
196
|
* @since v15.0.0, v14.17.0
|
|
196
197
|
*/
|
|
197
198
|
function resolveCaa(hostname: string): Promise<CaaRecord[]>;
|
|
@@ -203,13 +204,13 @@ declare module "dns/promises" {
|
|
|
203
204
|
*/
|
|
204
205
|
function resolveCname(hostname: string): Promise<string[]>;
|
|
205
206
|
/**
|
|
206
|
-
* Uses the DNS protocol to resolve mail exchange records (`MX` records) for the`hostname`. On success, the `Promise` is resolved with an array of objects
|
|
207
|
+
* Uses the DNS protocol to resolve mail exchange records (`MX` records) for the `hostname`. On success, the `Promise` is resolved with an array of objects
|
|
207
208
|
* containing both a `priority` and `exchange` property (e.g.`[{priority: 10, exchange: 'mx.example.com'}, ...]`).
|
|
208
209
|
* @since v10.6.0
|
|
209
210
|
*/
|
|
210
211
|
function resolveMx(hostname: string): Promise<MxRecord[]>;
|
|
211
212
|
/**
|
|
212
|
-
* Uses the DNS protocol to resolve regular expression-based records (`NAPTR`records) for the `hostname`. On success, the `Promise` is resolved with an array
|
|
213
|
+
* Uses the DNS protocol to resolve regular expression-based records (`NAPTR` records) for the `hostname`. On success, the `Promise` is resolved with an array
|
|
213
214
|
* of objects with the following properties:
|
|
214
215
|
*
|
|
215
216
|
* * `flags`
|
|
@@ -233,13 +234,13 @@ declare module "dns/promises" {
|
|
|
233
234
|
*/
|
|
234
235
|
function resolveNaptr(hostname: string): Promise<NaptrRecord[]>;
|
|
235
236
|
/**
|
|
236
|
-
* Uses the DNS protocol to resolve name server records (`NS` records) for the`hostname`. On success, the `Promise` is resolved with an array of name server
|
|
237
|
+
* Uses the DNS protocol to resolve name server records (`NS` records) for the `hostname`. On success, the `Promise` is resolved with an array of name server
|
|
237
238
|
* records available for `hostname` (e.g.`['ns1.example.com', 'ns2.example.com']`).
|
|
238
239
|
* @since v10.6.0
|
|
239
240
|
*/
|
|
240
241
|
function resolveNs(hostname: string): Promise<string[]>;
|
|
241
242
|
/**
|
|
242
|
-
* Uses the DNS protocol to resolve pointer records (`PTR` records) for the`hostname`. On success, the `Promise` is resolved with an array of strings
|
|
243
|
+
* Uses the DNS protocol to resolve pointer records (`PTR` records) for the `hostname`. On success, the `Promise` is resolved with an array of strings
|
|
243
244
|
* containing the reply records.
|
|
244
245
|
* @since v10.6.0
|
|
245
246
|
*/
|
|
@@ -272,7 +273,7 @@ declare module "dns/promises" {
|
|
|
272
273
|
*/
|
|
273
274
|
function resolveSoa(hostname: string): Promise<SoaRecord>;
|
|
274
275
|
/**
|
|
275
|
-
* Uses the DNS protocol to resolve service records (`SRV` records) for the`hostname`. On success, the `Promise` is resolved with an array of objects with
|
|
276
|
+
* Uses the DNS protocol to resolve service records (`SRV` records) for the `hostname`. On success, the `Promise` is resolved with an array of objects with
|
|
276
277
|
* the following properties:
|
|
277
278
|
*
|
|
278
279
|
* * `priority`
|
|
@@ -292,7 +293,7 @@ declare module "dns/promises" {
|
|
|
292
293
|
*/
|
|
293
294
|
function resolveSrv(hostname: string): Promise<SrvRecord[]>;
|
|
294
295
|
/**
|
|
295
|
-
* Uses the DNS protocol to resolve text queries (`TXT` records) for the`hostname`. On success, the `Promise` is resolved with a two-dimensional array
|
|
296
|
+
* Uses the DNS protocol to resolve text queries (`TXT` records) for the `hostname`. On success, the `Promise` is resolved with a two-dimensional array
|
|
296
297
|
* of the text records available for `hostname` (e.g.`[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]`). Each sub-array contains TXT chunks of
|
|
297
298
|
* one record. Depending on the use case, these could be either joined together or
|
|
298
299
|
* treated separately.
|
|
@@ -303,12 +304,14 @@ declare module "dns/promises" {
|
|
|
303
304
|
* Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an
|
|
304
305
|
* array of host names.
|
|
305
306
|
*
|
|
306
|
-
* On error, the `Promise` is rejected with an `Error` object, where `err.code`
|
|
307
|
+
* On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code`
|
|
308
|
+
* is one of the [DNS error codes](https://nodejs.org/docs/latest-v20.x/api/dns.html#error-codes).
|
|
307
309
|
* @since v10.6.0
|
|
308
310
|
*/
|
|
309
311
|
function reverse(ip: string): Promise<string[]>;
|
|
310
312
|
/**
|
|
311
|
-
* Get the default value for `verbatim` in {@link lookup} and
|
|
313
|
+
* Get the default value for `verbatim` in {@link lookup} and [dnsPromises.lookup()](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromiseslookuphostname-options).
|
|
314
|
+
* The value could be:
|
|
312
315
|
*
|
|
313
316
|
* * `ipv4first`: for `verbatim` defaulting to `false`.
|
|
314
317
|
* * `verbatim`: for `verbatim` defaulting to `true`.
|
|
@@ -348,18 +351,43 @@ declare module "dns/promises" {
|
|
|
348
351
|
* * `ipv4first`: sets default `verbatim` `false`.
|
|
349
352
|
* * `verbatim`: sets default `verbatim` `true`.
|
|
350
353
|
*
|
|
351
|
-
* The default is `verbatim` and
|
|
352
|
-
* higher priority than `--dns-result-order
|
|
353
|
-
*
|
|
354
|
+
* The default is `verbatim` and [dnsPromises.setDefaultResultOrder()](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromisessetdefaultresultorderorder)
|
|
355
|
+
* have higher priority than [`--dns-result-order`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--dns-result-orderorder).
|
|
356
|
+
* When using [worker threads](https://nodejs.org/docs/latest-v20.x/api/worker_threads.html), [`dnsPromises.setDefaultResultOrder()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromisessetdefaultresultorderorder)
|
|
357
|
+
* from the main thread won't affect the default dns orders in workers.
|
|
354
358
|
* @since v16.4.0, v14.18.0
|
|
355
359
|
* @param order must be `'ipv4first'` or `'verbatim'`.
|
|
356
360
|
*/
|
|
357
361
|
function setDefaultResultOrder(order: "ipv4first" | "verbatim"): void;
|
|
362
|
+
const NODATA: "NODATA";
|
|
363
|
+
const FORMERR: "FORMERR";
|
|
364
|
+
const SERVFAIL: "SERVFAIL";
|
|
365
|
+
const NOTFOUND: "NOTFOUND";
|
|
366
|
+
const NOTIMP: "NOTIMP";
|
|
367
|
+
const REFUSED: "REFUSED";
|
|
368
|
+
const BADQUERY: "BADQUERY";
|
|
369
|
+
const BADNAME: "BADNAME";
|
|
370
|
+
const BADFAMILY: "BADFAMILY";
|
|
371
|
+
const BADRESP: "BADRESP";
|
|
372
|
+
const CONNREFUSED: "TIMEOUT";
|
|
373
|
+
const TIMEOUT: "TIMEOUT";
|
|
374
|
+
const EOF: "EOF";
|
|
375
|
+
const FILE: "FILE";
|
|
376
|
+
const NOMEM: "NOMEM";
|
|
377
|
+
const DESTRUCTION: "DESTRUCTION";
|
|
378
|
+
const BADSTR: "BADSTR";
|
|
379
|
+
const BADFLAGS: "BADFLAGS";
|
|
380
|
+
const NONAME: "NONAME";
|
|
381
|
+
const BADHINTS: "BADHINTS";
|
|
382
|
+
const NOTINITIALIZED: "NOTINITIALIZED";
|
|
383
|
+
const LOADIPHLPAPI: "LOADIPHLPAPI";
|
|
384
|
+
const ADDRGETNETWORKPARAMS: "ADDRGETNETWORKPARAMS";
|
|
385
|
+
const CANCELLED: "CANCELLED";
|
|
358
386
|
/**
|
|
359
387
|
* An independent resolver for DNS requests.
|
|
360
388
|
*
|
|
361
389
|
* Creating a new resolver uses the default server settings. Setting
|
|
362
|
-
* the servers used for a resolver using `resolver.setServers()` does not affect
|
|
390
|
+
* the servers used for a resolver using [`resolver.setServers()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromisessetserversservers) does not affect
|
|
363
391
|
* other resolvers:
|
|
364
392
|
*
|
|
365
393
|
* ```js
|
|
@@ -400,6 +428,11 @@ declare module "dns/promises" {
|
|
|
400
428
|
*/
|
|
401
429
|
class Resolver {
|
|
402
430
|
constructor(options?: ResolverOptions);
|
|
431
|
+
/**
|
|
432
|
+
* Cancel all outstanding DNS queries made by this resolver. The corresponding
|
|
433
|
+
* callbacks will be called with an error with code `ECANCELLED`.
|
|
434
|
+
* @since v8.3.0
|
|
435
|
+
*/
|
|
403
436
|
cancel(): void;
|
|
404
437
|
getServers: typeof getServers;
|
|
405
438
|
resolve: typeof resolve;
|
|
@@ -416,6 +449,21 @@ declare module "dns/promises" {
|
|
|
416
449
|
resolveSrv: typeof resolveSrv;
|
|
417
450
|
resolveTxt: typeof resolveTxt;
|
|
418
451
|
reverse: typeof reverse;
|
|
452
|
+
/**
|
|
453
|
+
* The resolver instance will send its requests from the specified IP address.
|
|
454
|
+
* This allows programs to specify outbound interfaces when used on multi-homed
|
|
455
|
+
* systems.
|
|
456
|
+
*
|
|
457
|
+
* If a v4 or v6 address is not specified, it is set to the default and the
|
|
458
|
+
* operating system will choose a local address automatically.
|
|
459
|
+
*
|
|
460
|
+
* The resolver will use the v4 local address when making requests to IPv4 DNS
|
|
461
|
+
* servers, and the v6 local address when making requests to IPv6 DNS servers.
|
|
462
|
+
* The `rrtype` of resolution requests has no impact on the local address used.
|
|
463
|
+
* @since v15.1.0, v14.17.0
|
|
464
|
+
* @param [ipv4='0.0.0.0'] A string representation of an IPv4 address.
|
|
465
|
+
* @param [ipv6='::0'] A string representation of an IPv6 address.
|
|
466
|
+
*/
|
|
419
467
|
setLocalAddress(ipv4?: string, ipv6?: string): void;
|
|
420
468
|
setServers: typeof setServers;
|
|
421
469
|
}
|