node-red-contrib-tak-registration 0.11.0 → 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.
Files changed (250) hide show
  1. package/node_modules/@types/node/LICENSE +0 -0
  2. package/node_modules/@types/node/README.md +4 -5
  3. package/node_modules/@types/node/assert/strict.d.ts +4 -4
  4. package/node_modules/@types/node/assert.d.ts +50 -26
  5. package/node_modules/@types/node/async_hooks.d.ts +13 -6
  6. package/node_modules/@types/node/buffer.d.ts +46 -38
  7. package/node_modules/@types/node/child_process.d.ts +278 -138
  8. package/node_modules/@types/node/cluster.d.ts +107 -89
  9. package/node_modules/@types/node/console.d.ts +18 -15
  10. package/node_modules/@types/node/constants.d.ts +12 -11
  11. package/node_modules/@types/node/crypto.d.ts +746 -268
  12. package/node_modules/@types/node/dgram.d.ts +82 -46
  13. package/node_modules/@types/node/diagnostics_channel.d.ts +3 -3
  14. package/node_modules/@types/node/dns/promises.d.ts +37 -26
  15. package/node_modules/@types/node/dns.d.ts +204 -63
  16. package/node_modules/@types/node/dom-events.d.ts +67 -71
  17. package/node_modules/@types/node/domain.d.ts +4 -4
  18. package/node_modules/@types/node/events.d.ts +99 -8
  19. package/node_modules/@types/node/fs/promises.d.ts +122 -85
  20. package/node_modules/@types/node/fs.d.ts +520 -316
  21. package/node_modules/@types/node/globals.d.ts +346 -286
  22. package/node_modules/@types/node/globals.global.d.ts +0 -0
  23. package/node_modules/@types/node/http.d.ts +321 -189
  24. package/node_modules/@types/node/http2.d.ts +630 -377
  25. package/node_modules/@types/node/https.d.ts +221 -112
  26. package/node_modules/@types/node/index.d.ts +0 -45
  27. package/node_modules/@types/node/inspector.d.ts +0 -1
  28. package/node_modules/@types/node/module.d.ts +75 -31
  29. package/node_modules/@types/node/net.d.ts +149 -93
  30. package/node_modules/@types/node/os.d.ts +10 -9
  31. package/node_modules/@types/node/package.json +88 -90
  32. package/node_modules/@types/node/path.d.ts +13 -13
  33. package/node_modules/@types/node/perf_hooks.d.ts +19 -18
  34. package/node_modules/@types/node/process.d.ts +170 -126
  35. package/node_modules/@types/node/punycode.d.ts +4 -4
  36. package/node_modules/@types/node/querystring.d.ts +14 -4
  37. package/node_modules/@types/node/readline/promises.d.ts +12 -7
  38. package/node_modules/@types/node/readline.d.ts +69 -56
  39. package/node_modules/@types/node/repl.d.ts +67 -61
  40. package/node_modules/@types/node/stream/consumers.d.ts +10 -10
  41. package/node_modules/@types/node/stream/promises.d.ts +56 -15
  42. package/node_modules/@types/node/stream/web.d.ts +40 -20
  43. package/node_modules/@types/node/stream.d.ts +365 -232
  44. package/node_modules/@types/node/string_decoder.d.ts +8 -8
  45. package/node_modules/@types/node/test.d.ts +133 -212
  46. package/node_modules/@types/node/timers/promises.d.ts +4 -4
  47. package/node_modules/@types/node/timers.d.ts +26 -11
  48. package/node_modules/@types/node/tls.d.ts +152 -72
  49. package/node_modules/@types/node/trace_events.d.ts +3 -3
  50. package/node_modules/@types/node/ts4.8/assert/strict.d.ts +4 -4
  51. package/node_modules/@types/node/ts4.8/assert.d.ts +50 -26
  52. package/node_modules/@types/node/ts4.8/async_hooks.d.ts +13 -6
  53. package/node_modules/@types/node/ts4.8/buffer.d.ts +47 -39
  54. package/node_modules/@types/node/ts4.8/child_process.d.ts +278 -138
  55. package/node_modules/@types/node/ts4.8/cluster.d.ts +107 -89
  56. package/node_modules/@types/node/ts4.8/console.d.ts +18 -15
  57. package/node_modules/@types/node/ts4.8/constants.d.ts +12 -11
  58. package/node_modules/@types/node/ts4.8/crypto.d.ts +746 -268
  59. package/node_modules/@types/node/ts4.8/dgram.d.ts +82 -46
  60. package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +3 -3
  61. package/node_modules/@types/node/ts4.8/dns/promises.d.ts +37 -26
  62. package/node_modules/@types/node/ts4.8/dns.d.ts +204 -63
  63. package/node_modules/@types/node/ts4.8/dom-events.d.ts +67 -71
  64. package/node_modules/@types/node/ts4.8/domain.d.ts +4 -4
  65. package/node_modules/@types/node/ts4.8/events.d.ts +99 -8
  66. package/node_modules/@types/node/ts4.8/fs/promises.d.ts +122 -85
  67. package/node_modules/@types/node/ts4.8/fs.d.ts +520 -316
  68. package/node_modules/@types/node/ts4.8/globals.d.ts +346 -286
  69. package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -0
  70. package/node_modules/@types/node/ts4.8/http.d.ts +321 -189
  71. package/node_modules/@types/node/ts4.8/http2.d.ts +630 -377
  72. package/node_modules/@types/node/ts4.8/https.d.ts +221 -112
  73. package/node_modules/@types/node/ts4.8/index.d.ts +0 -0
  74. package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -1
  75. package/node_modules/@types/node/ts4.8/module.d.ts +75 -31
  76. package/node_modules/@types/node/ts4.8/net.d.ts +149 -93
  77. package/node_modules/@types/node/ts4.8/os.d.ts +10 -9
  78. package/node_modules/@types/node/ts4.8/path.d.ts +13 -13
  79. package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +19 -18
  80. package/node_modules/@types/node/ts4.8/process.d.ts +170 -126
  81. package/node_modules/@types/node/ts4.8/punycode.d.ts +4 -4
  82. package/node_modules/@types/node/ts4.8/querystring.d.ts +14 -4
  83. package/node_modules/@types/node/ts4.8/readline/promises.d.ts +12 -7
  84. package/node_modules/@types/node/ts4.8/readline.d.ts +69 -56
  85. package/node_modules/@types/node/ts4.8/repl.d.ts +67 -61
  86. package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +10 -10
  87. package/node_modules/@types/node/ts4.8/stream/promises.d.ts +56 -15
  88. package/node_modules/@types/node/ts4.8/stream/web.d.ts +40 -20
  89. package/node_modules/@types/node/ts4.8/stream.d.ts +494 -223
  90. package/node_modules/@types/node/ts4.8/string_decoder.d.ts +8 -8
  91. package/node_modules/@types/node/ts4.8/test.d.ts +135 -214
  92. package/node_modules/@types/node/ts4.8/timers/promises.d.ts +4 -4
  93. package/node_modules/@types/node/ts4.8/timers.d.ts +26 -11
  94. package/node_modules/@types/node/ts4.8/tls.d.ts +152 -72
  95. package/node_modules/@types/node/ts4.8/trace_events.d.ts +3 -3
  96. package/node_modules/@types/node/ts4.8/tty.d.ts +10 -10
  97. package/node_modules/@types/node/ts4.8/url.d.ts +26 -14
  98. package/node_modules/@types/node/ts4.8/util.d.ts +187 -120
  99. package/node_modules/@types/node/ts4.8/v8.d.ts +4 -4
  100. package/node_modules/@types/node/ts4.8/vm.d.ts +58 -50
  101. package/node_modules/@types/node/ts4.8/wasi.d.ts +10 -4
  102. package/node_modules/@types/node/ts4.8/worker_threads.d.ts +83 -86
  103. package/node_modules/@types/node/ts4.8/zlib.d.ts +9 -9
  104. package/node_modules/@types/node/tty.d.ts +10 -10
  105. package/node_modules/@types/node/url.d.ts +26 -14
  106. package/node_modules/@types/node/util.d.ts +187 -120
  107. package/node_modules/@types/node/v8.d.ts +4 -4
  108. package/node_modules/@types/node/vm.d.ts +58 -50
  109. package/node_modules/@types/node/wasi.d.ts +10 -4
  110. package/node_modules/@types/node/worker_threads.d.ts +83 -86
  111. package/node_modules/@types/node/zlib.d.ts +9 -9
  112. package/node_modules/axios/CHANGELOG.md +225 -0
  113. package/node_modules/axios/README.md +273 -9
  114. package/node_modules/axios/dist/axios.js +249 -178
  115. package/node_modules/axios/dist/axios.js.map +1 -1
  116. package/node_modules/axios/dist/axios.min.js +1 -1
  117. package/node_modules/axios/dist/axios.min.js.map +1 -1
  118. package/node_modules/axios/dist/browser/axios.cjs +213 -193
  119. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  120. package/node_modules/axios/dist/esm/axios.js +213 -193
  121. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  122. package/node_modules/axios/dist/esm/axios.min.js +1 -1
  123. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  124. package/node_modules/axios/dist/node/axios.cjs +297 -213
  125. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  126. package/node_modules/axios/index.d.cts +20 -11
  127. package/node_modules/axios/index.d.ts +21 -12
  128. package/node_modules/axios/lib/adapters/adapters.js +33 -15
  129. package/node_modules/axios/lib/adapters/http.js +25 -12
  130. package/node_modules/axios/lib/adapters/xhr.js +17 -10
  131. package/node_modules/axios/lib/core/mergeConfig.js +1 -0
  132. package/node_modules/axios/lib/defaults/index.js +1 -1
  133. package/node_modules/axios/lib/env/data.js +1 -1
  134. package/node_modules/axios/lib/helpers/cookies.js +39 -49
  135. package/node_modules/axios/lib/helpers/isURLSameOrigin.js +2 -2
  136. package/node_modules/axios/lib/platform/browser/index.js +0 -51
  137. package/node_modules/axios/lib/platform/common/utils.js +47 -0
  138. package/node_modules/axios/lib/platform/index.js +5 -1
  139. package/node_modules/axios/package.json +2 -1
  140. package/node_modules/call-bind/.eslintrc +0 -1
  141. package/node_modules/call-bind/.nycrc +0 -4
  142. package/node_modules/call-bind/CHANGELOG.md +35 -0
  143. package/node_modules/call-bind/README.md +63 -1
  144. package/node_modules/call-bind/index.js +10 -13
  145. package/node_modules/call-bind/package.json +33 -23
  146. package/node_modules/call-bind/test/callBound.js +0 -1
  147. package/node_modules/call-bind/test/index.js +18 -4
  148. package/node_modules/{function-bind → deep-equal}/.editorconfig +1 -1
  149. package/node_modules/deep-equal/.eslintrc +6 -0
  150. package/node_modules/deep-equal/.nycrc +17 -0
  151. package/node_modules/deep-equal/CHANGELOG.md +204 -4
  152. package/node_modules/deep-equal/assert.js +3 -0
  153. package/node_modules/deep-equal/package.json +39 -17
  154. package/node_modules/deep-equal/readme.markdown +28 -12
  155. package/node_modules/deep-equal/test/_tape.js +24 -3
  156. package/node_modules/deep-equal/test/cmp.js +1047 -48
  157. package/node_modules/define-data-property/CHANGELOG.md +10 -0
  158. package/node_modules/define-data-property/index.d.ts.map +1 -1
  159. package/node_modules/define-data-property/index.js +8 -0
  160. package/node_modules/define-data-property/package.json +11 -9
  161. package/node_modules/define-data-property/test/index.js +6 -11
  162. package/node_modules/define-data-property/tsconfig.json +1 -0
  163. package/node_modules/fast-xml-parser/CHANGELOG.md +11 -0
  164. package/node_modules/fast-xml-parser/package.json +5 -5
  165. package/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +1 -0
  166. package/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +4 -0
  167. package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +6 -3
  168. package/node_modules/follow-redirects/index.js +16 -4
  169. package/node_modules/follow-redirects/package.json +2 -3
  170. package/node_modules/function-bind/.eslintrc +11 -5
  171. package/node_modules/function-bind/.github/FUNDING.yml +12 -0
  172. package/node_modules/function-bind/.github/SECURITY.md +3 -0
  173. package/node_modules/function-bind/.nycrc +13 -0
  174. package/node_modules/function-bind/CHANGELOG.md +136 -0
  175. package/node_modules/function-bind/README.md +25 -27
  176. package/node_modules/function-bind/implementation.js +44 -12
  177. package/node_modules/function-bind/package.json +38 -14
  178. package/node_modules/get-intrinsic/CHANGELOG.md +8 -0
  179. package/node_modules/get-intrinsic/index.js +1 -1
  180. package/node_modules/get-intrinsic/package.json +11 -11
  181. package/node_modules/has-property-descriptors/CHANGELOG.md +11 -0
  182. package/node_modules/has-property-descriptors/package.json +13 -6
  183. package/node_modules/hasown/.eslintrc +5 -0
  184. package/node_modules/hasown/.github/FUNDING.yml +12 -0
  185. package/node_modules/hasown/.nycrc +13 -0
  186. package/node_modules/hasown/CHANGELOG.md +20 -0
  187. package/node_modules/hasown/LICENSE +21 -0
  188. package/node_modules/hasown/README.md +40 -0
  189. package/node_modules/hasown/index.d.ts +3 -0
  190. package/node_modules/hasown/index.d.ts.map +1 -0
  191. package/node_modules/hasown/index.js +8 -0
  192. package/node_modules/hasown/package.json +91 -0
  193. package/node_modules/hasown/tsconfig.json +49 -0
  194. package/node_modules/set-function-length/.eslintrc +27 -0
  195. package/node_modules/set-function-length/.github/FUNDING.yml +12 -0
  196. package/node_modules/set-function-length/.nycrc +13 -0
  197. package/node_modules/set-function-length/CHANGELOG.md +41 -0
  198. package/node_modules/set-function-length/LICENSE +21 -0
  199. package/node_modules/set-function-length/README.md +56 -0
  200. package/node_modules/set-function-length/env.js +19 -0
  201. package/node_modules/set-function-length/index.js +41 -0
  202. package/node_modules/set-function-length/package.json +84 -0
  203. package/node_modules/undici-types/README.md +6 -0
  204. package/node_modules/undici-types/agent.d.ts +31 -0
  205. package/node_modules/undici-types/api.d.ts +43 -0
  206. package/node_modules/undici-types/balanced-pool.d.ts +18 -0
  207. package/node_modules/undici-types/cache.d.ts +36 -0
  208. package/node_modules/undici-types/client.d.ts +97 -0
  209. package/node_modules/undici-types/connector.d.ts +34 -0
  210. package/node_modules/undici-types/content-type.d.ts +21 -0
  211. package/node_modules/undici-types/cookies.d.ts +28 -0
  212. package/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
  213. package/node_modules/undici-types/dispatcher.d.ts +241 -0
  214. package/node_modules/undici-types/errors.d.ts +128 -0
  215. package/node_modules/undici-types/fetch.d.ts +209 -0
  216. package/node_modules/undici-types/file.d.ts +39 -0
  217. package/node_modules/undici-types/filereader.d.ts +54 -0
  218. package/node_modules/undici-types/formdata.d.ts +108 -0
  219. package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  220. package/node_modules/undici-types/global-origin.d.ts +7 -0
  221. package/node_modules/undici-types/handlers.d.ts +9 -0
  222. package/node_modules/undici-types/header.d.ts +4 -0
  223. package/node_modules/undici-types/index.d.ts +63 -0
  224. package/node_modules/undici-types/interceptors.d.ts +5 -0
  225. package/node_modules/undici-types/mock-agent.d.ts +50 -0
  226. package/node_modules/undici-types/mock-client.d.ts +25 -0
  227. package/node_modules/undici-types/mock-errors.d.ts +12 -0
  228. package/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  229. package/node_modules/undici-types/mock-pool.d.ts +25 -0
  230. package/node_modules/undici-types/package.json +55 -0
  231. package/node_modules/undici-types/patch.d.ts +71 -0
  232. package/node_modules/undici-types/pool-stats.d.ts +19 -0
  233. package/node_modules/undici-types/pool.d.ts +28 -0
  234. package/node_modules/undici-types/proxy-agent.d.ts +30 -0
  235. package/node_modules/undici-types/readable.d.ts +61 -0
  236. package/node_modules/undici-types/webidl.d.ts +220 -0
  237. package/node_modules/undici-types/websocket.d.ts +131 -0
  238. package/package.json +3 -3
  239. package/tak-ingest.js +39 -24
  240. package/tak-registration.html +4 -4
  241. package/tak-registration.js +2 -3
  242. package/node_modules/define-data-property/tsinit +0 -109
  243. package/node_modules/function-bind/.jscs.json +0 -176
  244. package/node_modules/function-bind/.npmignore +0 -22
  245. package/node_modules/function-bind/.travis.yml +0 -168
  246. package/node_modules/has/LICENSE-MIT +0 -22
  247. package/node_modules/has/README.md +0 -18
  248. package/node_modules/has/package.json +0 -48
  249. package/node_modules/has/src/index.js +0 -5
  250. 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 '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 = (hostname: string, options: dns.LookupAllOptions, callback: (err: NodeJS.ErrnoException | null, addresses: dns.LookupAddress[]) => void) => void;
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 = 'opening' | 'open' | 'readOnly' | 'writeOnly' | 'closed';
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: 'close', listener: (hadError: boolean) => void): this;
357
- addListener(event: 'connect', listener: () => void): this;
358
- addListener(event: 'data', listener: (data: Buffer) => void): this;
359
- addListener(event: 'drain', listener: () => void): this;
360
- addListener(event: 'end', listener: () => void): this;
361
- addListener(event: 'error', listener: (err: Error) => void): this;
362
- addListener(event: 'lookup', listener: (err: Error, address: string, family: string | number, host: string) => void): this;
363
- addListener(event: 'ready', listener: () => void): this;
364
- addListener(event: 'timeout', listener: () => void): this;
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: 'close', hadError: boolean): boolean;
367
- emit(event: 'connect'): boolean;
368
- emit(event: 'data', data: Buffer): boolean;
369
- emit(event: 'drain'): boolean;
370
- emit(event: 'end'): boolean;
371
- emit(event: 'error', err: Error): boolean;
372
- emit(event: 'lookup', err: Error, address: string, family: string | number, host: string): boolean;
373
- emit(event: 'ready'): boolean;
374
- emit(event: 'timeout'): boolean;
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: 'close', listener: (hadError: boolean) => void): this;
377
- on(event: 'connect', listener: () => void): this;
378
- on(event: 'data', listener: (data: Buffer) => void): this;
379
- on(event: 'drain', listener: () => void): this;
380
- on(event: 'end', listener: () => void): this;
381
- on(event: 'error', listener: (err: Error) => void): this;
382
- on(event: 'lookup', listener: (err: Error, address: string, family: string | number, host: string) => void): this;
383
- on(event: 'ready', listener: () => void): this;
384
- on(event: 'timeout', listener: () => void): this;
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: 'close', listener: (hadError: boolean) => void): this;
387
- once(event: 'connect', listener: () => void): this;
388
- once(event: 'data', listener: (data: Buffer) => void): this;
389
- once(event: 'drain', listener: () => void): this;
390
- once(event: 'end', listener: () => void): this;
391
- once(event: 'error', listener: (err: Error) => void): this;
392
- once(event: 'lookup', listener: (err: Error, address: string, family: string | number, host: string) => void): this;
393
- once(event: 'ready', listener: () => void): this;
394
- once(event: 'timeout', listener: () => void): this;
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: 'close', listener: (hadError: boolean) => void): this;
397
- prependListener(event: 'connect', listener: () => void): this;
398
- prependListener(event: 'data', listener: (data: Buffer) => void): this;
399
- prependListener(event: 'drain', listener: () => void): this;
400
- prependListener(event: 'end', listener: () => void): this;
401
- prependListener(event: 'error', listener: (err: Error) => void): this;
402
- prependListener(event: 'lookup', listener: (err: Error, address: string, family: string | number, host: string) => void): this;
403
- prependListener(event: 'ready', listener: () => void): this;
404
- prependListener(event: 'timeout', listener: () => void): this;
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: 'close', listener: (hadError: boolean) => void): this;
407
- prependOnceListener(event: 'connect', listener: () => void): this;
408
- prependOnceListener(event: 'data', listener: (data: Buffer) => void): this;
409
- prependOnceListener(event: 'drain', listener: () => void): this;
410
- prependOnceListener(event: 'end', listener: () => void): this;
411
- prependOnceListener(event: 'error', listener: (err: Error) => void): this;
412
- prependOnceListener(event: 'lookup', listener: (err: Error, address: string, family: string | number, host: string) => void): this;
413
- prependOnceListener(event: 'ready', listener: () => void): this;
414
- prependOnceListener(event: 'timeout', listener: () => void): this;
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: 'close', listener: () => void): this;
608
- addListener(event: 'connection', listener: (socket: Socket) => void): this;
609
- addListener(event: 'error', listener: (err: Error) => void): this;
610
- addListener(event: 'listening', listener: () => void): this;
611
- addListener(event: 'drop', listener: (data?: DropArgument) => void): this;
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: 'close'): boolean;
614
- emit(event: 'connection', socket: Socket): boolean;
615
- emit(event: 'error', err: Error): boolean;
616
- emit(event: 'listening'): boolean;
617
- emit(event: 'drop', data?: DropArgument): boolean;
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: 'close', listener: () => void): this;
620
- on(event: 'connection', listener: (socket: Socket) => void): this;
621
- on(event: 'error', listener: (err: Error) => void): this;
622
- on(event: 'listening', listener: () => void): this;
623
- on(event: 'drop', listener: (data?: DropArgument) => void): this;
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: 'close', listener: () => void): this;
626
- once(event: 'connection', listener: (socket: Socket) => void): this;
627
- once(event: 'error', listener: (err: Error) => void): this;
628
- once(event: 'listening', listener: () => void): this;
629
- once(event: 'drop', listener: (data?: DropArgument) => void): this;
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: 'close', listener: () => void): this;
632
- prependListener(event: 'connection', listener: (socket: Socket) => void): this;
633
- prependListener(event: 'error', listener: (err: Error) => void): this;
634
- prependListener(event: 'listening', listener: () => void): this;
635
- prependListener(event: 'drop', listener: (data?: DropArgument) => void): this;
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: 'close', listener: () => void): this;
638
- prependOnceListener(event: 'connection', listener: (socket: Socket) => void): this;
639
- prependOnceListener(event: 'error', listener: (err: Error) => void): this;
640
- prependOnceListener(event: 'listening', listener: () => void): this;
641
- prependOnceListener(event: 'drop', listener: (data?: DropArgument) => void): this;
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 = 'ipv4' | 'ipv6';
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 'node:net' {
892
- export * from 'net';
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 'os' {
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: 'IPv4';
30
+ family: "IPv4";
31
31
  scopeid?: undefined;
32
32
  }
33
33
  interface NetworkInterfaceInfoIPv6 extends NetworkInterfaceBase {
34
- family: 'IPv6';
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: 'buffer' }): UserInfo<Buffer>;
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'`, `'mips'`,`'mipsel'`, `'ppc'`, `'ppc64'`, `'s390'`, `'s390x'`, and `'x64'`.
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(): 'BE' | 'LE';
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 'node:os' {
476
- export * from 'os';
476
+ declare module "node:os" {
477
+ export * from "os";
477
478
  }
@@ -1,9 +1,9 @@
1
- declare module 'path/posix' {
2
- import path = require('path');
1
+ declare module "path/posix" {
2
+ import path = require("path");
3
3
  export = path;
4
4
  }
5
- declare module 'path/win32' {
6
- import path = require('path');
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 'path' {
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 'node:path' {
181
- import path = require('path');
180
+ declare module "node:path" {
181
+ import path = require("path");
182
182
  export = path;
183
183
  }
184
- declare module 'node:path/posix' {
185
- import path = require('path/posix');
184
+ declare module "node:path/posix" {
185
+ import path = require("path/posix");
186
186
  export = path;
187
187
  }
188
- declare module 'node:path/win32' {
189
- import path = require('path/win32');
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 'perf_hooks' {
33
- import { AsyncResource } from 'node:async_hooks';
34
- type EntryType = 'node' | 'mark' | 'measure' | 'gc' | 'function' | 'http2' | 'http';
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: 'mark';
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: 'measure';
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 = (util1?: EventLoopUtilization, util2?: EventLoopUtilization) => EventLoopUtilization;
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
- entryTypes: ReadonlyArray<EntryType>;
462
- buffered?: boolean | undefined;
463
- }
463
+ entryTypes: readonly EntryType[];
464
+ buffered?: boolean | undefined;
465
+ }
464
466
  | {
465
- type: EntryType;
466
- buffered?: boolean | undefined;
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 'perf_hooks';
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 'node:perf_hooks' {
637
- export * from 'perf_hooks';
637
+ declare module "node:perf_hooks" {
638
+ export * from "perf_hooks";
638
639
  }