node-red-contrib-tak-registration 0.11.1 → 0.11.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.
- package/node_modules/@types/node/LICENSE +0 -0
- package/node_modules/@types/node/README.md +4 -5
- package/node_modules/@types/node/assert/strict.d.ts +4 -4
- package/node_modules/@types/node/assert.d.ts +50 -26
- package/node_modules/@types/node/async_hooks.d.ts +13 -6
- package/node_modules/@types/node/buffer.d.ts +46 -38
- package/node_modules/@types/node/child_process.d.ts +278 -138
- package/node_modules/@types/node/cluster.d.ts +107 -89
- package/node_modules/@types/node/console.d.ts +18 -15
- package/node_modules/@types/node/constants.d.ts +12 -11
- package/node_modules/@types/node/crypto.d.ts +746 -268
- package/node_modules/@types/node/dgram.d.ts +82 -46
- package/node_modules/@types/node/diagnostics_channel.d.ts +3 -3
- package/node_modules/@types/node/dns/promises.d.ts +37 -26
- package/node_modules/@types/node/dns.d.ts +204 -63
- package/node_modules/@types/node/dom-events.d.ts +67 -71
- package/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@types/node/events.d.ts +99 -8
- package/node_modules/@types/node/fs/promises.d.ts +122 -85
- package/node_modules/@types/node/fs.d.ts +520 -316
- package/node_modules/@types/node/globals.d.ts +346 -286
- package/node_modules/@types/node/globals.global.d.ts +0 -0
- package/node_modules/@types/node/http.d.ts +321 -189
- package/node_modules/@types/node/http2.d.ts +630 -377
- package/node_modules/@types/node/https.d.ts +221 -112
- package/node_modules/@types/node/index.d.ts +0 -45
- package/node_modules/@types/node/inspector.d.ts +0 -1
- package/node_modules/@types/node/module.d.ts +75 -31
- package/node_modules/@types/node/net.d.ts +149 -93
- package/node_modules/@types/node/os.d.ts +10 -9
- package/node_modules/@types/node/package.json +88 -90
- package/node_modules/@types/node/path.d.ts +13 -13
- package/node_modules/@types/node/perf_hooks.d.ts +19 -18
- package/node_modules/@types/node/process.d.ts +170 -126
- package/node_modules/@types/node/punycode.d.ts +4 -4
- package/node_modules/@types/node/querystring.d.ts +14 -4
- package/node_modules/@types/node/readline/promises.d.ts +12 -7
- package/node_modules/@types/node/readline.d.ts +69 -56
- package/node_modules/@types/node/repl.d.ts +67 -61
- package/node_modules/@types/node/stream/consumers.d.ts +10 -10
- package/node_modules/@types/node/stream/promises.d.ts +56 -15
- package/node_modules/@types/node/stream/web.d.ts +40 -20
- package/node_modules/@types/node/stream.d.ts +365 -232
- package/node_modules/@types/node/string_decoder.d.ts +8 -8
- package/node_modules/@types/node/test.d.ts +133 -212
- package/node_modules/@types/node/timers/promises.d.ts +4 -4
- package/node_modules/@types/node/timers.d.ts +26 -11
- package/node_modules/@types/node/tls.d.ts +152 -72
- package/node_modules/@types/node/trace_events.d.ts +3 -3
- package/node_modules/@types/node/ts4.8/assert/strict.d.ts +4 -4
- package/node_modules/@types/node/ts4.8/assert.d.ts +50 -26
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +13 -6
- package/node_modules/@types/node/ts4.8/buffer.d.ts +47 -39
- package/node_modules/@types/node/ts4.8/child_process.d.ts +278 -138
- package/node_modules/@types/node/ts4.8/cluster.d.ts +107 -89
- package/node_modules/@types/node/ts4.8/console.d.ts +18 -15
- package/node_modules/@types/node/ts4.8/constants.d.ts +12 -11
- package/node_modules/@types/node/ts4.8/crypto.d.ts +746 -268
- package/node_modules/@types/node/ts4.8/dgram.d.ts +82 -46
- package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +3 -3
- package/node_modules/@types/node/ts4.8/dns/promises.d.ts +37 -26
- package/node_modules/@types/node/ts4.8/dns.d.ts +204 -63
- package/node_modules/@types/node/ts4.8/dom-events.d.ts +67 -71
- package/node_modules/@types/node/ts4.8/domain.d.ts +4 -4
- package/node_modules/@types/node/ts4.8/events.d.ts +99 -8
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +122 -85
- package/node_modules/@types/node/ts4.8/fs.d.ts +520 -316
- package/node_modules/@types/node/ts4.8/globals.d.ts +346 -286
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -0
- package/node_modules/@types/node/ts4.8/http.d.ts +321 -189
- package/node_modules/@types/node/ts4.8/http2.d.ts +630 -377
- package/node_modules/@types/node/ts4.8/https.d.ts +221 -112
- package/node_modules/@types/node/ts4.8/index.d.ts +0 -0
- package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -1
- package/node_modules/@types/node/ts4.8/module.d.ts +75 -31
- package/node_modules/@types/node/ts4.8/net.d.ts +149 -93
- package/node_modules/@types/node/ts4.8/os.d.ts +10 -9
- package/node_modules/@types/node/ts4.8/path.d.ts +13 -13
- package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +19 -18
- package/node_modules/@types/node/ts4.8/process.d.ts +170 -126
- package/node_modules/@types/node/ts4.8/punycode.d.ts +4 -4
- package/node_modules/@types/node/ts4.8/querystring.d.ts +14 -4
- package/node_modules/@types/node/ts4.8/readline/promises.d.ts +12 -7
- package/node_modules/@types/node/ts4.8/readline.d.ts +69 -56
- package/node_modules/@types/node/ts4.8/repl.d.ts +67 -61
- package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +10 -10
- package/node_modules/@types/node/ts4.8/stream/promises.d.ts +56 -15
- package/node_modules/@types/node/ts4.8/stream/web.d.ts +40 -20
- package/node_modules/@types/node/ts4.8/stream.d.ts +494 -223
- package/node_modules/@types/node/ts4.8/string_decoder.d.ts +8 -8
- package/node_modules/@types/node/ts4.8/test.d.ts +135 -214
- package/node_modules/@types/node/ts4.8/timers/promises.d.ts +4 -4
- package/node_modules/@types/node/ts4.8/timers.d.ts +26 -11
- package/node_modules/@types/node/ts4.8/tls.d.ts +152 -72
- package/node_modules/@types/node/ts4.8/trace_events.d.ts +3 -3
- package/node_modules/@types/node/ts4.8/tty.d.ts +10 -10
- package/node_modules/@types/node/ts4.8/url.d.ts +26 -14
- package/node_modules/@types/node/ts4.8/util.d.ts +187 -120
- package/node_modules/@types/node/ts4.8/v8.d.ts +4 -4
- package/node_modules/@types/node/ts4.8/vm.d.ts +58 -50
- package/node_modules/@types/node/ts4.8/wasi.d.ts +10 -4
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +83 -86
- package/node_modules/@types/node/ts4.8/zlib.d.ts +9 -9
- package/node_modules/@types/node/tty.d.ts +10 -10
- package/node_modules/@types/node/url.d.ts +26 -14
- package/node_modules/@types/node/util.d.ts +187 -120
- package/node_modules/@types/node/v8.d.ts +4 -4
- package/node_modules/@types/node/vm.d.ts +58 -50
- package/node_modules/@types/node/wasi.d.ts +10 -4
- package/node_modules/@types/node/worker_threads.d.ts +83 -86
- package/node_modules/@types/node/zlib.d.ts +9 -9
- package/node_modules/axios/CHANGELOG.md +225 -0
- package/node_modules/axios/README.md +273 -9
- package/node_modules/axios/dist/axios.js +249 -178
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +1 -1
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +213 -193
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +213 -193
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +1 -1
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +297 -213
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +20 -11
- package/node_modules/axios/index.d.ts +21 -12
- package/node_modules/axios/lib/adapters/adapters.js +33 -15
- package/node_modules/axios/lib/adapters/http.js +25 -12
- package/node_modules/axios/lib/adapters/xhr.js +17 -10
- package/node_modules/axios/lib/core/mergeConfig.js +1 -0
- package/node_modules/axios/lib/defaults/index.js +1 -1
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/cookies.js +39 -49
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +2 -2
- package/node_modules/axios/lib/platform/browser/index.js +0 -51
- package/node_modules/axios/lib/platform/common/utils.js +47 -0
- package/node_modules/axios/lib/platform/index.js +5 -1
- package/node_modules/axios/package.json +2 -1
- package/node_modules/call-bind/.eslintrc +0 -1
- package/node_modules/call-bind/.nycrc +0 -4
- package/node_modules/call-bind/CHANGELOG.md +35 -0
- package/node_modules/call-bind/README.md +63 -1
- package/node_modules/call-bind/index.js +10 -13
- package/node_modules/call-bind/package.json +33 -23
- package/node_modules/call-bind/test/callBound.js +0 -1
- package/node_modules/call-bind/test/index.js +18 -4
- package/node_modules/{function-bind → deep-equal}/.editorconfig +1 -1
- package/node_modules/deep-equal/.eslintrc +6 -0
- package/node_modules/deep-equal/.nycrc +17 -0
- package/node_modules/deep-equal/CHANGELOG.md +204 -4
- package/node_modules/deep-equal/assert.js +3 -0
- package/node_modules/deep-equal/package.json +39 -17
- package/node_modules/deep-equal/readme.markdown +28 -12
- package/node_modules/deep-equal/test/_tape.js +24 -3
- package/node_modules/deep-equal/test/cmp.js +1047 -48
- package/node_modules/define-data-property/CHANGELOG.md +10 -0
- package/node_modules/define-data-property/index.d.ts.map +1 -1
- package/node_modules/define-data-property/index.js +8 -0
- package/node_modules/define-data-property/package.json +11 -9
- package/node_modules/define-data-property/test/index.js +6 -11
- package/node_modules/define-data-property/tsconfig.json +1 -0
- package/node_modules/fast-xml-parser/CHANGELOG.md +11 -0
- package/node_modules/fast-xml-parser/package.json +5 -5
- package/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +1 -0
- package/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +4 -0
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +6 -3
- package/node_modules/follow-redirects/index.js +16 -4
- package/node_modules/follow-redirects/package.json +2 -3
- package/node_modules/function-bind/.eslintrc +11 -5
- package/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/node_modules/function-bind/.nycrc +13 -0
- package/node_modules/function-bind/CHANGELOG.md +136 -0
- package/node_modules/function-bind/README.md +25 -27
- package/node_modules/function-bind/implementation.js +44 -12
- package/node_modules/function-bind/package.json +38 -14
- package/node_modules/get-intrinsic/CHANGELOG.md +8 -0
- package/node_modules/get-intrinsic/index.js +1 -1
- package/node_modules/get-intrinsic/package.json +11 -11
- package/node_modules/has-property-descriptors/CHANGELOG.md +11 -0
- package/node_modules/has-property-descriptors/package.json +13 -6
- package/node_modules/hasown/.eslintrc +5 -0
- package/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/node_modules/hasown/.nycrc +13 -0
- package/node_modules/hasown/CHANGELOG.md +20 -0
- package/node_modules/hasown/LICENSE +21 -0
- package/node_modules/hasown/README.md +40 -0
- package/node_modules/hasown/index.d.ts +3 -0
- package/node_modules/hasown/index.d.ts.map +1 -0
- package/node_modules/hasown/index.js +8 -0
- package/node_modules/hasown/package.json +91 -0
- package/node_modules/hasown/tsconfig.json +49 -0
- package/node_modules/set-function-length/.eslintrc +27 -0
- package/node_modules/set-function-length/.github/FUNDING.yml +12 -0
- package/node_modules/set-function-length/.nycrc +13 -0
- package/node_modules/set-function-length/CHANGELOG.md +41 -0
- package/node_modules/set-function-length/LICENSE +21 -0
- package/node_modules/set-function-length/README.md +56 -0
- package/node_modules/set-function-length/env.js +19 -0
- package/node_modules/set-function-length/index.js +41 -0
- package/node_modules/set-function-length/package.json +84 -0
- package/node_modules/undici-types/README.md +6 -0
- package/node_modules/undici-types/agent.d.ts +31 -0
- package/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/undici-types/client.d.ts +97 -0
- package/node_modules/undici-types/connector.d.ts +34 -0
- package/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/undici-types/cookies.d.ts +28 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/node_modules/undici-types/errors.d.ts +128 -0
- package/node_modules/undici-types/fetch.d.ts +209 -0
- package/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/undici-types/handlers.d.ts +9 -0
- package/node_modules/undici-types/header.d.ts +4 -0
- package/node_modules/undici-types/index.d.ts +63 -0
- package/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/node_modules/undici-types/mock-client.d.ts +25 -0
- package/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/node_modules/undici-types/package.json +55 -0
- package/node_modules/undici-types/patch.d.ts +71 -0
- package/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/undici-types/pool.d.ts +28 -0
- package/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/node_modules/undici-types/readable.d.ts +61 -0
- package/node_modules/undici-types/webidl.d.ts +220 -0
- package/node_modules/undici-types/websocket.d.ts +131 -0
- package/package.json +3 -3
- package/tak-ingest.js +39 -24
- package/tak-registration.html +4 -4
- package/node_modules/define-data-property/tsinit +0 -109
- package/node_modules/function-bind/.jscs.json +0 -176
- package/node_modules/function-bind/.npmignore +0 -22
- package/node_modules/function-bind/.travis.yml +0 -168
- package/node_modules/has/LICENSE-MIT +0 -22
- package/node_modules/has/README.md +0 -18
- package/node_modules/has/package.json +0 -48
- package/node_modules/has/src/index.js +0 -5
- package/node_modules/has/test/index.js +0 -10
|
@@ -12,11 +12,15 @@
|
|
|
12
12
|
* ```
|
|
13
13
|
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/net.js)
|
|
14
14
|
*/
|
|
15
|
-
declare module
|
|
16
|
-
import * as stream from
|
|
17
|
-
import { Abortable, EventEmitter } from
|
|
18
|
-
import * as dns from
|
|
19
|
-
type LookupFunction = (
|
|
15
|
+
declare module "net" {
|
|
16
|
+
import * as stream from "node:stream";
|
|
17
|
+
import { Abortable, EventEmitter } from "node:events";
|
|
18
|
+
import * as dns from "node:dns";
|
|
19
|
+
type LookupFunction = (
|
|
20
|
+
hostname: string,
|
|
21
|
+
options: dns.LookupAllOptions,
|
|
22
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: dns.LookupAddress[]) => void,
|
|
23
|
+
) => void;
|
|
20
24
|
interface AddressInfo {
|
|
21
25
|
address: string;
|
|
22
26
|
family: string;
|
|
@@ -70,7 +74,7 @@ declare module 'net' {
|
|
|
70
74
|
path: string;
|
|
71
75
|
}
|
|
72
76
|
type SocketConnectOpts = TcpSocketConnectOpts | IpcSocketConnectOpts;
|
|
73
|
-
type SocketReadyState =
|
|
77
|
+
type SocketReadyState = "opening" | "open" | "readOnly" | "writeOnly" | "closed";
|
|
74
78
|
/**
|
|
75
79
|
* This class is an abstraction of a TCP socket or a streaming `IPC` endpoint
|
|
76
80
|
* (uses named pipes on Windows, and Unix domain sockets otherwise). It is also
|
|
@@ -87,6 +91,12 @@ declare module 'net' {
|
|
|
87
91
|
*/
|
|
88
92
|
class Socket extends stream.Duplex {
|
|
89
93
|
constructor(options?: SocketConstructorOpts);
|
|
94
|
+
/**
|
|
95
|
+
* Destroys the socket after all data is written. If the `finish` event was already emitted the socket is destroyed immediately.
|
|
96
|
+
* If the socket is still writable it implicitly calls `socket.end()`.
|
|
97
|
+
* @since v0.3.4
|
|
98
|
+
*/
|
|
99
|
+
destroySoon(): void;
|
|
90
100
|
/**
|
|
91
101
|
* Sends data on the socket. The second parameter specifies the encoding in the
|
|
92
102
|
* case of a string. It defaults to UTF8 encoding.
|
|
@@ -230,6 +240,15 @@ declare module 'net' {
|
|
|
230
240
|
* @return The socket itself.
|
|
231
241
|
*/
|
|
232
242
|
ref(): this;
|
|
243
|
+
/**
|
|
244
|
+
* This property is only present if the family autoselection algorithm is enabled in `socket.connect(options)`
|
|
245
|
+
* and it is an array of the addresses that have been attempted.
|
|
246
|
+
*
|
|
247
|
+
* Each address is a string in the form of `$IP:$PORT`.
|
|
248
|
+
* If the connection was successful, then the last address is the one that the socket is currently connected to.
|
|
249
|
+
* @since v19.4.0
|
|
250
|
+
*/
|
|
251
|
+
readonly autoSelectFamilyAttemptedAddresses: string[];
|
|
233
252
|
/**
|
|
234
253
|
* This property shows the number of characters buffered for writing. The buffer
|
|
235
254
|
* may contain strings whose length after encoding is not yet known. So this number
|
|
@@ -353,65 +372,80 @@ declare module 'net' {
|
|
|
353
372
|
* 9. timeout
|
|
354
373
|
*/
|
|
355
374
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
356
|
-
addListener(event:
|
|
357
|
-
addListener(event:
|
|
358
|
-
addListener(event:
|
|
359
|
-
addListener(event:
|
|
360
|
-
addListener(event:
|
|
361
|
-
addListener(event:
|
|
362
|
-
addListener(
|
|
363
|
-
|
|
364
|
-
|
|
375
|
+
addListener(event: "close", listener: (hadError: boolean) => void): this;
|
|
376
|
+
addListener(event: "connect", listener: () => void): this;
|
|
377
|
+
addListener(event: "data", listener: (data: Buffer) => void): this;
|
|
378
|
+
addListener(event: "drain", listener: () => void): this;
|
|
379
|
+
addListener(event: "end", listener: () => void): this;
|
|
380
|
+
addListener(event: "error", listener: (err: Error) => void): this;
|
|
381
|
+
addListener(
|
|
382
|
+
event: "lookup",
|
|
383
|
+
listener: (err: Error, address: string, family: string | number, host: string) => void,
|
|
384
|
+
): this;
|
|
385
|
+
addListener(event: "ready", listener: () => void): this;
|
|
386
|
+
addListener(event: "timeout", listener: () => void): this;
|
|
365
387
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
366
|
-
emit(event:
|
|
367
|
-
emit(event:
|
|
368
|
-
emit(event:
|
|
369
|
-
emit(event:
|
|
370
|
-
emit(event:
|
|
371
|
-
emit(event:
|
|
372
|
-
emit(event:
|
|
373
|
-
emit(event:
|
|
374
|
-
emit(event:
|
|
388
|
+
emit(event: "close", hadError: boolean): boolean;
|
|
389
|
+
emit(event: "connect"): boolean;
|
|
390
|
+
emit(event: "data", data: Buffer): boolean;
|
|
391
|
+
emit(event: "drain"): boolean;
|
|
392
|
+
emit(event: "end"): boolean;
|
|
393
|
+
emit(event: "error", err: Error): boolean;
|
|
394
|
+
emit(event: "lookup", err: Error, address: string, family: string | number, host: string): boolean;
|
|
395
|
+
emit(event: "ready"): boolean;
|
|
396
|
+
emit(event: "timeout"): boolean;
|
|
375
397
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
376
|
-
on(event:
|
|
377
|
-
on(event:
|
|
378
|
-
on(event:
|
|
379
|
-
on(event:
|
|
380
|
-
on(event:
|
|
381
|
-
on(event:
|
|
382
|
-
on(
|
|
383
|
-
|
|
384
|
-
|
|
398
|
+
on(event: "close", listener: (hadError: boolean) => void): this;
|
|
399
|
+
on(event: "connect", listener: () => void): this;
|
|
400
|
+
on(event: "data", listener: (data: Buffer) => void): this;
|
|
401
|
+
on(event: "drain", listener: () => void): this;
|
|
402
|
+
on(event: "end", listener: () => void): this;
|
|
403
|
+
on(event: "error", listener: (err: Error) => void): this;
|
|
404
|
+
on(
|
|
405
|
+
event: "lookup",
|
|
406
|
+
listener: (err: Error, address: string, family: string | number, host: string) => void,
|
|
407
|
+
): this;
|
|
408
|
+
on(event: "ready", listener: () => void): this;
|
|
409
|
+
on(event: "timeout", listener: () => void): this;
|
|
385
410
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
386
|
-
once(event:
|
|
387
|
-
once(event:
|
|
388
|
-
once(event:
|
|
389
|
-
once(event:
|
|
390
|
-
once(event:
|
|
391
|
-
once(event:
|
|
392
|
-
once(
|
|
393
|
-
|
|
394
|
-
|
|
411
|
+
once(event: "close", listener: (hadError: boolean) => void): this;
|
|
412
|
+
once(event: "connect", listener: () => void): this;
|
|
413
|
+
once(event: "data", listener: (data: Buffer) => void): this;
|
|
414
|
+
once(event: "drain", listener: () => void): this;
|
|
415
|
+
once(event: "end", listener: () => void): this;
|
|
416
|
+
once(event: "error", listener: (err: Error) => void): this;
|
|
417
|
+
once(
|
|
418
|
+
event: "lookup",
|
|
419
|
+
listener: (err: Error, address: string, family: string | number, host: string) => void,
|
|
420
|
+
): this;
|
|
421
|
+
once(event: "ready", listener: () => void): this;
|
|
422
|
+
once(event: "timeout", listener: () => void): this;
|
|
395
423
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
396
|
-
prependListener(event:
|
|
397
|
-
prependListener(event:
|
|
398
|
-
prependListener(event:
|
|
399
|
-
prependListener(event:
|
|
400
|
-
prependListener(event:
|
|
401
|
-
prependListener(event:
|
|
402
|
-
prependListener(
|
|
403
|
-
|
|
404
|
-
|
|
424
|
+
prependListener(event: "close", listener: (hadError: boolean) => void): this;
|
|
425
|
+
prependListener(event: "connect", listener: () => void): this;
|
|
426
|
+
prependListener(event: "data", listener: (data: Buffer) => void): this;
|
|
427
|
+
prependListener(event: "drain", listener: () => void): this;
|
|
428
|
+
prependListener(event: "end", listener: () => void): this;
|
|
429
|
+
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
430
|
+
prependListener(
|
|
431
|
+
event: "lookup",
|
|
432
|
+
listener: (err: Error, address: string, family: string | number, host: string) => void,
|
|
433
|
+
): this;
|
|
434
|
+
prependListener(event: "ready", listener: () => void): this;
|
|
435
|
+
prependListener(event: "timeout", listener: () => void): this;
|
|
405
436
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
406
|
-
prependOnceListener(event:
|
|
407
|
-
prependOnceListener(event:
|
|
408
|
-
prependOnceListener(event:
|
|
409
|
-
prependOnceListener(event:
|
|
410
|
-
prependOnceListener(event:
|
|
411
|
-
prependOnceListener(event:
|
|
412
|
-
prependOnceListener(
|
|
413
|
-
|
|
414
|
-
|
|
437
|
+
prependOnceListener(event: "close", listener: (hadError: boolean) => void): this;
|
|
438
|
+
prependOnceListener(event: "connect", listener: () => void): this;
|
|
439
|
+
prependOnceListener(event: "data", listener: (data: Buffer) => void): this;
|
|
440
|
+
prependOnceListener(event: "drain", listener: () => void): this;
|
|
441
|
+
prependOnceListener(event: "end", listener: () => void): this;
|
|
442
|
+
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
443
|
+
prependOnceListener(
|
|
444
|
+
event: "lookup",
|
|
445
|
+
listener: (err: Error, address: string, family: string | number, host: string) => void,
|
|
446
|
+
): this;
|
|
447
|
+
prependOnceListener(event: "ready", listener: () => void): this;
|
|
448
|
+
prependOnceListener(event: "timeout", listener: () => void): this;
|
|
415
449
|
}
|
|
416
450
|
interface ListenOptions extends Abortable {
|
|
417
451
|
port?: number | undefined;
|
|
@@ -604,48 +638,48 @@ declare module 'net' {
|
|
|
604
638
|
* 5. drop
|
|
605
639
|
*/
|
|
606
640
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
607
|
-
addListener(event:
|
|
608
|
-
addListener(event:
|
|
609
|
-
addListener(event:
|
|
610
|
-
addListener(event:
|
|
611
|
-
addListener(event:
|
|
641
|
+
addListener(event: "close", listener: () => void): this;
|
|
642
|
+
addListener(event: "connection", listener: (socket: Socket) => void): this;
|
|
643
|
+
addListener(event: "error", listener: (err: Error) => void): this;
|
|
644
|
+
addListener(event: "listening", listener: () => void): this;
|
|
645
|
+
addListener(event: "drop", listener: (data?: DropArgument) => void): this;
|
|
612
646
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
613
|
-
emit(event:
|
|
614
|
-
emit(event:
|
|
615
|
-
emit(event:
|
|
616
|
-
emit(event:
|
|
617
|
-
emit(event:
|
|
647
|
+
emit(event: "close"): boolean;
|
|
648
|
+
emit(event: "connection", socket: Socket): boolean;
|
|
649
|
+
emit(event: "error", err: Error): boolean;
|
|
650
|
+
emit(event: "listening"): boolean;
|
|
651
|
+
emit(event: "drop", data?: DropArgument): boolean;
|
|
618
652
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
619
|
-
on(event:
|
|
620
|
-
on(event:
|
|
621
|
-
on(event:
|
|
622
|
-
on(event:
|
|
623
|
-
on(event:
|
|
653
|
+
on(event: "close", listener: () => void): this;
|
|
654
|
+
on(event: "connection", listener: (socket: Socket) => void): this;
|
|
655
|
+
on(event: "error", listener: (err: Error) => void): this;
|
|
656
|
+
on(event: "listening", listener: () => void): this;
|
|
657
|
+
on(event: "drop", listener: (data?: DropArgument) => void): this;
|
|
624
658
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
625
|
-
once(event:
|
|
626
|
-
once(event:
|
|
627
|
-
once(event:
|
|
628
|
-
once(event:
|
|
629
|
-
once(event:
|
|
659
|
+
once(event: "close", listener: () => void): this;
|
|
660
|
+
once(event: "connection", listener: (socket: Socket) => void): this;
|
|
661
|
+
once(event: "error", listener: (err: Error) => void): this;
|
|
662
|
+
once(event: "listening", listener: () => void): this;
|
|
663
|
+
once(event: "drop", listener: (data?: DropArgument) => void): this;
|
|
630
664
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
631
|
-
prependListener(event:
|
|
632
|
-
prependListener(event:
|
|
633
|
-
prependListener(event:
|
|
634
|
-
prependListener(event:
|
|
635
|
-
prependListener(event:
|
|
665
|
+
prependListener(event: "close", listener: () => void): this;
|
|
666
|
+
prependListener(event: "connection", listener: (socket: Socket) => void): this;
|
|
667
|
+
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
668
|
+
prependListener(event: "listening", listener: () => void): this;
|
|
669
|
+
prependListener(event: "drop", listener: (data?: DropArgument) => void): this;
|
|
636
670
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
637
|
-
prependOnceListener(event:
|
|
638
|
-
prependOnceListener(event:
|
|
639
|
-
prependOnceListener(event:
|
|
640
|
-
prependOnceListener(event:
|
|
641
|
-
prependOnceListener(event:
|
|
671
|
+
prependOnceListener(event: "close", listener: () => void): this;
|
|
672
|
+
prependOnceListener(event: "connection", listener: (socket: Socket) => void): this;
|
|
673
|
+
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
674
|
+
prependOnceListener(event: "listening", listener: () => void): this;
|
|
675
|
+
prependOnceListener(event: "drop", listener: (data?: DropArgument) => void): this;
|
|
642
676
|
/**
|
|
643
677
|
* Calls {@link Server.close()} and returns a promise that fulfills when the server has closed.
|
|
644
678
|
* @since v20.5.0
|
|
645
679
|
*/
|
|
646
680
|
[Symbol.asyncDispose](): Promise<void>;
|
|
647
681
|
}
|
|
648
|
-
type IPVersion =
|
|
682
|
+
type IPVersion = "ipv4" | "ipv6";
|
|
649
683
|
/**
|
|
650
684
|
* The `BlockList` object can be used with some network APIs to specify rules for
|
|
651
685
|
* disabling inbound or outbound access to specific IP addresses, IP ranges, or
|
|
@@ -805,6 +839,28 @@ declare module 'net' {
|
|
|
805
839
|
function createConnection(options: NetConnectOpts, connectionListener?: () => void): Socket;
|
|
806
840
|
function createConnection(port: number, host?: string, connectionListener?: () => void): Socket;
|
|
807
841
|
function createConnection(path: string, connectionListener?: () => void): Socket;
|
|
842
|
+
/**
|
|
843
|
+
* Gets the current default value of the `autoSelectFamily` option of `socket.connect(options)`.
|
|
844
|
+
* The initial default value is `true`, unless the command line option`--no-network-family-autoselection` is provided.
|
|
845
|
+
* @since v19.4.0
|
|
846
|
+
*/
|
|
847
|
+
function getDefaultAutoSelectFamily(): boolean;
|
|
848
|
+
/**
|
|
849
|
+
* Sets the default value of the `autoSelectFamily` option of `socket.connect(options)`.
|
|
850
|
+
* @since v19.4.0
|
|
851
|
+
*/
|
|
852
|
+
function setDefaultAutoSelectFamily(value: boolean): void;
|
|
853
|
+
/**
|
|
854
|
+
* Gets the current default value of the `autoSelectFamilyAttemptTimeout` option of `socket.connect(options)`.
|
|
855
|
+
* The initial default value is `250`.
|
|
856
|
+
* @since v19.8.0
|
|
857
|
+
*/
|
|
858
|
+
function getDefaultAutoSelectFamilyAttemptTimeout(): number;
|
|
859
|
+
/**
|
|
860
|
+
* Sets the default value of the `autoSelectFamilyAttemptTimeout` option of `socket.connect(options)`.
|
|
861
|
+
* @since v19.8.0
|
|
862
|
+
*/
|
|
863
|
+
function setDefaultAutoSelectFamilyAttemptTimeout(value: number): void;
|
|
808
864
|
/**
|
|
809
865
|
* Returns `6` if `input` is an IPv6 address. Returns `4` if `input` is an IPv4
|
|
810
866
|
* address in [dot-decimal notation](https://en.wikipedia.org/wiki/Dot-decimal_notation) with no leading zeroes. Otherwise, returns`0`.
|
|
@@ -888,6 +944,6 @@ declare module 'net' {
|
|
|
888
944
|
readonly flowlabel: number;
|
|
889
945
|
}
|
|
890
946
|
}
|
|
891
|
-
declare module
|
|
892
|
-
export * from
|
|
947
|
+
declare module "node:net" {
|
|
948
|
+
export * from "net";
|
|
893
949
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* ```
|
|
8
8
|
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/os.js)
|
|
9
9
|
*/
|
|
10
|
-
declare module
|
|
10
|
+
declare module "os" {
|
|
11
11
|
interface CpuInfo {
|
|
12
12
|
model: string;
|
|
13
13
|
speed: number;
|
|
@@ -27,18 +27,18 @@ declare module 'os' {
|
|
|
27
27
|
cidr: string | null;
|
|
28
28
|
}
|
|
29
29
|
interface NetworkInterfaceInfoIPv4 extends NetworkInterfaceBase {
|
|
30
|
-
family:
|
|
30
|
+
family: "IPv4";
|
|
31
31
|
scopeid?: undefined;
|
|
32
32
|
}
|
|
33
33
|
interface NetworkInterfaceInfoIPv6 extends NetworkInterfaceBase {
|
|
34
|
-
family:
|
|
34
|
+
family: "IPv6";
|
|
35
35
|
scopeid: number;
|
|
36
36
|
}
|
|
37
37
|
interface UserInfo<T> {
|
|
38
38
|
username: T;
|
|
39
39
|
uid: number;
|
|
40
40
|
gid: number;
|
|
41
|
-
shell: T;
|
|
41
|
+
shell: T | null;
|
|
42
42
|
homedir: T;
|
|
43
43
|
}
|
|
44
44
|
type NetworkInterfaceInfo = NetworkInterfaceInfoIPv4 | NetworkInterfaceInfoIPv6;
|
|
@@ -239,7 +239,7 @@ declare module 'os' {
|
|
|
239
239
|
* Throws a `SystemError` if a user has no `username` or `homedir`.
|
|
240
240
|
* @since v6.0.0
|
|
241
241
|
*/
|
|
242
|
-
function userInfo(options: { encoding:
|
|
242
|
+
function userInfo(options: { encoding: "buffer" }): UserInfo<Buffer>;
|
|
243
243
|
function userInfo(options?: { encoding: BufferEncoding }): UserInfo<string>;
|
|
244
244
|
type SignalConstants = {
|
|
245
245
|
[key in NodeJS.Signals]: number;
|
|
@@ -400,7 +400,8 @@ declare module 'os' {
|
|
|
400
400
|
const EOL: string;
|
|
401
401
|
/**
|
|
402
402
|
* Returns the operating system CPU architecture for which the Node.js binary was
|
|
403
|
-
* compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'
|
|
403
|
+
* compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`,`'mips'`, `'mipsel'`, `'ppc'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`,
|
|
404
|
+
* and `'x64'`.
|
|
404
405
|
*
|
|
405
406
|
* The return value is equivalent to `process.arch`.
|
|
406
407
|
* @since v0.5.0
|
|
@@ -447,7 +448,7 @@ declare module 'os' {
|
|
|
447
448
|
* Possible values are `'BE'` for big endian and `'LE'` for little endian.
|
|
448
449
|
* @since v0.9.4
|
|
449
450
|
*/
|
|
450
|
-
function endianness():
|
|
451
|
+
function endianness(): "BE" | "LE";
|
|
451
452
|
/**
|
|
452
453
|
* Returns the scheduling priority for the process specified by `pid`. If `pid` is
|
|
453
454
|
* not provided or is `0`, the priority of the current process is returned.
|
|
@@ -472,6 +473,6 @@ declare module 'os' {
|
|
|
472
473
|
function setPriority(priority: number): void;
|
|
473
474
|
function setPriority(pid: number, priority: number): void;
|
|
474
475
|
}
|
|
475
|
-
declare module
|
|
476
|
-
export * from
|
|
476
|
+
declare module "node:os" {
|
|
477
|
+
export * from "os";
|
|
477
478
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
import path = require(
|
|
1
|
+
declare module "path/posix" {
|
|
2
|
+
import path = require("path");
|
|
3
3
|
export = path;
|
|
4
4
|
}
|
|
5
|
-
declare module
|
|
6
|
-
import path = require(
|
|
5
|
+
declare module "path/win32" {
|
|
6
|
+
import path = require("path");
|
|
7
7
|
export = path;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
@@ -15,7 +15,7 @@ declare module 'path/win32' {
|
|
|
15
15
|
* ```
|
|
16
16
|
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/path.js)
|
|
17
17
|
*/
|
|
18
|
-
declare module
|
|
18
|
+
declare module "path" {
|
|
19
19
|
namespace path {
|
|
20
20
|
/**
|
|
21
21
|
* A parsed path object generated by path.parse() or consumed by path.format().
|
|
@@ -137,11 +137,11 @@ declare module 'path' {
|
|
|
137
137
|
/**
|
|
138
138
|
* The platform-specific file separator. '\\' or '/'.
|
|
139
139
|
*/
|
|
140
|
-
readonly sep:
|
|
140
|
+
readonly sep: "\\" | "/";
|
|
141
141
|
/**
|
|
142
142
|
* The platform-specific file delimiter. ';' or ':'.
|
|
143
143
|
*/
|
|
144
|
-
readonly delimiter:
|
|
144
|
+
readonly delimiter: ";" | ":";
|
|
145
145
|
/**
|
|
146
146
|
* Returns an object from a path string - the opposite of format().
|
|
147
147
|
*
|
|
@@ -177,15 +177,15 @@ declare module 'path' {
|
|
|
177
177
|
const path: path.PlatformPath;
|
|
178
178
|
export = path;
|
|
179
179
|
}
|
|
180
|
-
declare module
|
|
181
|
-
import path = require(
|
|
180
|
+
declare module "node:path" {
|
|
181
|
+
import path = require("path");
|
|
182
182
|
export = path;
|
|
183
183
|
}
|
|
184
|
-
declare module
|
|
185
|
-
import path = require(
|
|
184
|
+
declare module "node:path/posix" {
|
|
185
|
+
import path = require("path/posix");
|
|
186
186
|
export = path;
|
|
187
187
|
}
|
|
188
|
-
declare module
|
|
189
|
-
import path = require(
|
|
188
|
+
declare module "node:path/win32" {
|
|
189
|
+
import path = require("path/win32");
|
|
190
190
|
export = path;
|
|
191
191
|
}
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
* ```
|
|
30
30
|
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/perf_hooks.js)
|
|
31
31
|
*/
|
|
32
|
-
declare module
|
|
33
|
-
import { AsyncResource } from
|
|
34
|
-
type EntryType =
|
|
32
|
+
declare module "perf_hooks" {
|
|
33
|
+
import { AsyncResource } from "node:async_hooks";
|
|
34
|
+
type EntryType = "node" | "mark" | "measure" | "gc" | "function" | "http2" | "http";
|
|
35
35
|
interface NodeGCPerformanceDetail {
|
|
36
36
|
/**
|
|
37
37
|
* When `performanceEntry.entryType` is equal to 'gc', `the performance.kind` property identifies
|
|
@@ -95,7 +95,7 @@ declare module 'perf_hooks' {
|
|
|
95
95
|
*/
|
|
96
96
|
class PerformanceMark extends PerformanceEntry {
|
|
97
97
|
readonly duration: 0;
|
|
98
|
-
readonly entryType:
|
|
98
|
+
readonly entryType: "mark";
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
101
101
|
* Exposes measures created via the `Performance.measure()` method.
|
|
@@ -104,7 +104,7 @@ declare module 'perf_hooks' {
|
|
|
104
104
|
* @since v18.2.0, v16.17.0
|
|
105
105
|
*/
|
|
106
106
|
class PerformanceMeasure extends PerformanceEntry {
|
|
107
|
-
readonly entryType:
|
|
107
|
+
readonly entryType: "measure";
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
110
110
|
* _This property is an extension by Node.js. It is not available in Web browsers._
|
|
@@ -166,7 +166,10 @@ declare module 'perf_hooks' {
|
|
|
166
166
|
* @param util1 The result of a previous call to eventLoopUtilization()
|
|
167
167
|
* @param util2 The result of a previous call to eventLoopUtilization() prior to util1
|
|
168
168
|
*/
|
|
169
|
-
type EventLoopUtilityFunction = (
|
|
169
|
+
type EventLoopUtilityFunction = (
|
|
170
|
+
util1?: EventLoopUtilization,
|
|
171
|
+
util2?: EventLoopUtilization,
|
|
172
|
+
) => EventLoopUtilization;
|
|
170
173
|
interface MarkOptions {
|
|
171
174
|
/**
|
|
172
175
|
* Additional optional detail to include with the mark.
|
|
@@ -321,7 +324,6 @@ declare module 'perf_hooks' {
|
|
|
321
324
|
* * }
|
|
322
325
|
* * ]
|
|
323
326
|
*
|
|
324
|
-
*
|
|
325
327
|
* performance.clearMarks();
|
|
326
328
|
* performance.clearMeasures();
|
|
327
329
|
* observer.disconnect();
|
|
@@ -458,13 +460,13 @@ declare module 'perf_hooks' {
|
|
|
458
460
|
observe(
|
|
459
461
|
options:
|
|
460
462
|
| {
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
463
|
+
entryTypes: readonly EntryType[];
|
|
464
|
+
buffered?: boolean | undefined;
|
|
465
|
+
}
|
|
464
466
|
| {
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
467
|
+
type: EntryType;
|
|
468
|
+
buffered?: boolean | undefined;
|
|
469
|
+
},
|
|
468
470
|
): void;
|
|
469
471
|
}
|
|
470
472
|
namespace constants {
|
|
@@ -618,7 +620,7 @@ declare module 'perf_hooks' {
|
|
|
618
620
|
* @since v15.9.0, v14.18.0
|
|
619
621
|
*/
|
|
620
622
|
function createHistogram(options?: CreateHistogramOptions): RecordableHistogram;
|
|
621
|
-
import { performance as _performance } from
|
|
623
|
+
import { performance as _performance } from "perf_hooks";
|
|
622
624
|
global {
|
|
623
625
|
/**
|
|
624
626
|
* `performance` is a global reference for `require('perf_hooks').performance`
|
|
@@ -628,11 +630,10 @@ declare module 'perf_hooks' {
|
|
|
628
630
|
var performance: typeof globalThis extends {
|
|
629
631
|
onmessage: any;
|
|
630
632
|
performance: infer T;
|
|
631
|
-
}
|
|
632
|
-
? T
|
|
633
|
+
} ? T
|
|
633
634
|
: typeof _performance;
|
|
634
635
|
}
|
|
635
636
|
}
|
|
636
|
-
declare module
|
|
637
|
-
export * from
|
|
637
|
+
declare module "node:perf_hooks" {
|
|
638
|
+
export * from "perf_hooks";
|
|
638
639
|
}
|