node-red-contrib-tak-registration 0.11.1 → 0.11.5

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 (249) 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 +42 -23
  240. package/tak-registration.html +4 -4
  241. package/node_modules/define-data-property/tsinit +0 -109
  242. package/node_modules/function-bind/.jscs.json +0 -176
  243. package/node_modules/function-bind/.npmignore +0 -22
  244. package/node_modules/function-bind/.travis.yml +0 -168
  245. package/node_modules/has/LICENSE-MIT +0 -22
  246. package/node_modules/has/README.md +0 -18
  247. package/node_modules/has/package.json +0 -48
  248. package/node_modules/has/src/index.js +0 -5
  249. package/node_modules/has/test/index.js +0 -10
@@ -1,9 +1,10 @@
1
1
  /**
2
2
  * @since v0.3.7
3
+ * @experimental
3
4
  */
4
- declare module 'module' {
5
- import { URL } from 'node:url';
6
- import { MessagePort } from 'node:worker_threads';
5
+ declare module "module" {
6
+ import { URL } from "node:url";
7
+ import { MessagePort } from "node:worker_threads";
7
8
  namespace Module {
8
9
  /**
9
10
  * The `module.syncBuiltinESMExports()` method updates all the live bindings for
@@ -64,6 +65,24 @@ declare module 'module' {
64
65
  originalLine: number;
65
66
  originalColumn: number;
66
67
  }
68
+ interface SourceOrigin {
69
+ /**
70
+ * The name of the range in the source map, if one was provided
71
+ */
72
+ name?: string;
73
+ /**
74
+ * The file name of the original source, as reported in the SourceMap
75
+ */
76
+ fileName: string;
77
+ /**
78
+ * The 1-indexed lineNumber of the corresponding call site in the original source
79
+ */
80
+ lineNumber: number;
81
+ /**
82
+ * The 1-indexed columnNumber of the corresponding call site in the original source
83
+ */
84
+ columnNumber: number;
85
+ }
67
86
  /**
68
87
  * @since v13.7.0, v12.17.0
69
88
  */
@@ -92,11 +111,23 @@ declare module 'module' {
92
111
  * @param columnOffset The zero-indexed column number offset in the generated source
93
112
  */
94
113
  findEntry(lineOffset: number, columnOffset: number): SourceMapping;
114
+ /**
115
+ * Given a 1-indexed `lineNumber` and `columnNumber` from a call site in the generated source,
116
+ * find the corresponding call site location in the original source.
117
+ *
118
+ * If the `lineNumber` and `columnNumber` provided are not found in any source map,
119
+ * then an empty object is returned.
120
+ * @param lineNumber The 1-indexed line number of the call site in the generated source
121
+ * @param columnNumber The 1-indexed column number of the call site in the generated source
122
+ */
123
+ findOrigin(lineNumber: number, columnNumber: number): SourceOrigin | {};
95
124
  }
96
- interface ImportAssertions extends NodeJS.Dict<string> {
125
+ /** @deprecated Use `ImportAttributes` instead */
126
+ interface ImportAssertions extends ImportAttributes {}
127
+ interface ImportAttributes extends NodeJS.Dict<string> {
97
128
  type?: string | undefined;
98
129
  }
99
- type ModuleFormat = 'builtin' | 'commonjs' | 'json' | 'module' | 'wasm';
130
+ type ModuleFormat = "builtin" | "commonjs" | "json" | "module" | "wasm";
100
131
  type ModuleSource = string | ArrayBuffer | NodeJS.TypedArray;
101
132
  interface GlobalPreloadContext {
102
133
  port: MessagePort;
@@ -113,22 +144,26 @@ declare module 'module' {
113
144
  */
114
145
  type GlobalPreloadHook = (context: GlobalPreloadContext) => string;
115
146
  /**
116
- * The `initialize` hook provides a way to define a custom function that runs in the loader's thread
117
- * when the loader is initialized. Initialization happens when the loader is registered via `register`
118
- * or registered via the `--experimental-loader` command line option.
147
+ * The `initialize` hook provides a way to define a custom function that runs in the hooks thread
148
+ * when the hooks module is initialized. Initialization happens when the hooks module is registered via `register`.
119
149
  *
120
- * This hook can send and receive data from a `register` invocation, including ports and other transferrable objects.
150
+ * This hook can receive data from a `register` invocation, including ports and other transferrable objects.
151
+ * The return value of `initialize` can be a `Promise`, in which case it will be awaited before the main application thread execution resumes.
121
152
  */
122
- type InitializeHook<Data = any, ReturnType = any> = (data: Data) => ReturnType;
153
+ type InitializeHook<Data = any> = (data: Data) => void | Promise<void>;
123
154
  interface ResolveHookContext {
124
155
  /**
125
156
  * Export conditions of the relevant `package.json`
126
157
  */
127
158
  conditions: string[];
159
+ /**
160
+ * @deprecated Use `importAttributes` instead
161
+ */
162
+ importAssertions: ImportAttributes;
128
163
  /**
129
164
  * An object whose key-value pairs represent the assertions for the module to import
130
165
  */
131
- importAssertions: ImportAssertions;
166
+ importAttributes: ImportAttributes;
132
167
  /**
133
168
  * The module importing this one, or undefined if this is the Node.js entry point
134
169
  */
@@ -140,9 +175,13 @@ declare module 'module' {
140
175
  */
141
176
  format?: ModuleFormat | null | undefined;
142
177
  /**
143
- * The import assertions to use when caching the module (optional; if excluded the input will be used)
178
+ * @deprecated Use `importAttributes` instead
179
+ */
180
+ importAssertions?: ImportAttributes | undefined;
181
+ /**
182
+ * The import attributes to use when caching the module (optional; if excluded the input will be used)
144
183
  */
145
- importAssertions?: ImportAssertions | undefined;
184
+ importAttributes?: ImportAttributes | undefined;
146
185
  /**
147
186
  * A signal that this hook intends to terminate the chain of `resolve` hooks.
148
187
  * @default false
@@ -165,7 +204,10 @@ declare module 'module' {
165
204
  type ResolveHook = (
166
205
  specifier: string,
167
206
  context: ResolveHookContext,
168
- nextResolve: (specifier: string, context?: ResolveHookContext) => ResolveFnOutput | Promise<ResolveFnOutput>
207
+ nextResolve: (
208
+ specifier: string,
209
+ context?: ResolveHookContext,
210
+ ) => ResolveFnOutput | Promise<ResolveFnOutput>,
169
211
  ) => ResolveFnOutput | Promise<ResolveFnOutput>;
170
212
  interface LoadHookContext {
171
213
  /**
@@ -176,10 +218,14 @@ declare module 'module' {
176
218
  * The format optionally supplied by the `resolve` hook chain
177
219
  */
178
220
  format: ModuleFormat;
221
+ /**
222
+ * @deprecated Use `importAttributes` instead
223
+ */
224
+ importAssertions: ImportAttributes;
179
225
  /**
180
226
  * An object whose key-value pairs represent the assertions for the module to import
181
227
  */
182
- importAssertions: ImportAssertions;
228
+ importAttributes: ImportAttributes;
183
229
  }
184
230
  interface LoadFnOutput {
185
231
  format: ModuleFormat;
@@ -204,11 +250,11 @@ declare module 'module' {
204
250
  type LoadHook = (
205
251
  url: string,
206
252
  context: LoadHookContext,
207
- nextLoad: (url: string, context?: LoadHookContext) => LoadFnOutput | Promise<LoadFnOutput>
253
+ nextLoad: (url: string, context?: LoadHookContext) => LoadFnOutput | Promise<LoadFnOutput>,
208
254
  ) => LoadFnOutput | Promise<LoadFnOutput>;
209
255
  }
210
256
  interface RegisterOptions<Data> {
211
- parentURL: string;
257
+ parentURL: string | URL;
212
258
  data?: Data | undefined;
213
259
  transferList?: any[] | undefined;
214
260
  }
@@ -220,8 +266,12 @@ declare module 'module' {
220
266
  static builtinModules: string[];
221
267
  static isBuiltin(moduleName: string): boolean;
222
268
  static Module: typeof Module;
223
- static register<Data = any, ReturnType = any>(specifier: string, parentURL?: string, options?: RegisterOptions<Data>): ReturnType;
224
- static register<Data = any, ReturnType = any>(specifier: string, options?: RegisterOptions<Data>): ReturnType;
269
+ static register<Data = any>(
270
+ specifier: string | URL,
271
+ parentURL?: string | URL,
272
+ options?: RegisterOptions<Data>,
273
+ ): void;
274
+ static register<Data = any>(specifier: string | URL, options?: RegisterOptions<Data>): void;
225
275
  constructor(id: string, parent?: Module);
226
276
  }
227
277
  global {
@@ -231,27 +281,21 @@ declare module 'module' {
231
281
  * Provides a module-relative resolution function scoped to each module, returning
232
282
  * the URL string.
233
283
  *
234
- * @param specified The module specifier to resolve relative to the current module.
235
- * @returns The absolute (`file:`) URL string for the resolved module.
236
- */
237
- resolve(specified: string): string;
238
- /**
239
- * This feature is only available with the `--experimental-import-meta-resolve`
284
+ * Second `parent` parameter is only used when the `--experimental-import-meta-resolve`
240
285
  * command flag enabled.
241
286
  *
242
- * Provides a module-relative resolution function scoped to each module, returning
243
- * the URL string.
287
+ * @since v20.6.0
244
288
  *
245
- * @param specified The module specifier to resolve relative to `parent`.
289
+ * @param specifier The module specifier to resolve relative to `parent`.
246
290
  * @param parent The absolute parent module URL to resolve from.
247
291
  * @returns The absolute (`file:`) URL string for the resolved module.
248
292
  */
249
- resolve(specified: string, parent: string | URL): string;
293
+ resolve(specifier: string, parent?: string | URL | undefined): string;
250
294
  }
251
295
  }
252
296
  export = Module;
253
297
  }
254
- declare module 'node:module' {
255
- import module = require('module');
298
+ declare module "node:module" {
299
+ import module = require("module");
256
300
  export = module;
257
301
  }
@@ -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
  }