@node-red/editor-client 3.1.8 → 4.0.0-beta.2

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 (149) hide show
  1. package/locales/de/editor.json +2 -0
  2. package/locales/en-US/editor.json +10 -1
  3. package/locales/fr/editor.json +8 -1
  4. package/locales/ja/editor.json +10 -3
  5. package/package.json +1 -1
  6. package/public/red/about +52 -0
  7. package/public/red/red.js +1433 -263
  8. package/public/red/red.min.js +3 -3
  9. package/public/red/style.min.css +2 -2
  10. package/public/red/tours/3.1/welcome.js +231 -0
  11. package/public/red/tours/images/nr4-auto-complete.png +0 -0
  12. package/public/red/tours/images/nr4-config-select.png +0 -0
  13. package/public/red/tours/images/nr4-multiplayer.png +0 -0
  14. package/public/red/tours/images/nr4-plugins.png +0 -0
  15. package/public/red/tours/images/nr4-sf-config.png +0 -0
  16. package/public/red/tours/images/nr4-timestamp-formatting.png +0 -0
  17. package/public/red/tours/welcome.js +105 -161
  18. package/public/types/node/assert/strict.d.ts +1 -1
  19. package/public/types/node/assert.d.ts +8 -9
  20. package/public/types/node/async_hooks.d.ts +9 -5
  21. package/public/types/node/buffer.d.ts +43 -18
  22. package/public/types/node/child_process.d.ts +8 -5
  23. package/public/types/node/cluster.d.ts +15 -19
  24. package/public/types/node/console.d.ts +2 -2
  25. package/public/types/node/crypto.d.ts +165 -70
  26. package/public/types/node/dgram.d.ts +4 -4
  27. package/public/types/node/diagnostics_channel.d.ts +8 -7
  28. package/public/types/node/dns/promises.d.ts +11 -9
  29. package/public/types/node/dns.d.ts +18 -13
  30. package/public/types/node/dom-events.d.ts +129 -0
  31. package/public/types/node/domain.d.ts +2 -2
  32. package/public/types/node/events.d.ts +49 -12
  33. package/public/types/node/fs/promises.d.ts +68 -24
  34. package/public/types/node/fs.d.ts +132 -59
  35. package/public/types/node/globals.d.ts +31 -17
  36. package/public/types/node/http.d.ts +138 -27
  37. package/public/types/node/http2.d.ts +38 -5
  38. package/public/types/node/https.d.ts +12 -3
  39. package/public/types/node/module.d.ts +1 -2
  40. package/public/types/node/net.d.ts +69 -28
  41. package/public/types/node/os.d.ts +16 -5
  42. package/public/types/node/path.d.ts +5 -5
  43. package/public/types/node/perf_hooks.d.ts +48 -9
  44. package/public/types/node/process.d.ts +18 -17
  45. package/public/types/node/querystring.d.ts +2 -2
  46. package/public/types/node/readline/promises.d.ts +146 -0
  47. package/public/types/node/readline.d.ts +141 -31
  48. package/public/types/node/stream/consumers.d.ts +2 -2
  49. package/public/types/node/stream/promises.d.ts +1 -1
  50. package/public/types/node/stream/web.d.ts +4 -66
  51. package/public/types/node/stream.d.ts +96 -118
  52. package/public/types/node/string_decoder.d.ts +2 -2
  53. package/public/types/node/test.d.ts +200 -16
  54. package/public/types/node/timers/promises.d.ts +1 -26
  55. package/public/types/node/timers.d.ts +2 -2
  56. package/public/types/node/tls.d.ts +21 -12
  57. package/public/types/node/trace_events.d.ts +12 -2
  58. package/public/types/node/ts4.8/assert/strict.d.ts +11 -0
  59. package/public/types/node/ts4.8/assert.d.ts +964 -0
  60. package/public/types/node/ts4.8/async_hooks.d.ts +504 -0
  61. package/public/types/node/ts4.8/buffer.d.ts +2262 -0
  62. package/public/types/node/ts4.8/child_process.d.ts +1372 -0
  63. package/public/types/node/ts4.8/cluster.d.ts +413 -0
  64. package/public/types/node/ts4.8/console.d.ts +415 -0
  65. package/public/types/node/ts4.8/crypto.d.ts +3967 -0
  66. package/public/types/node/ts4.8/dgram.d.ts +548 -0
  67. package/public/types/node/ts4.8/diagnostics_channel.d.ts +156 -0
  68. package/public/types/node/ts4.8/dns/promises.d.ts +373 -0
  69. package/public/types/node/ts4.8/dns.d.ts +662 -0
  70. package/public/types/node/ts4.8/dom-events.d.ts +129 -0
  71. package/public/types/node/ts4.8/domain.d.ts +173 -0
  72. package/public/types/node/ts4.8/events.d.ts +681 -0
  73. package/public/types/node/ts4.8/fs/promises.d.ts +1141 -0
  74. package/public/types/node/ts4.8/fs.d.ts +3875 -0
  75. package/public/types/node/ts4.8/globals.d.ts +297 -0
  76. package/public/types/node/ts4.8/http.d.ts +1617 -0
  77. package/public/types/node/ts4.8/http2.d.ts +2137 -0
  78. package/public/types/node/ts4.8/https.d.ts +544 -0
  79. package/public/types/node/ts4.8/module.d.ts +117 -0
  80. package/public/types/node/ts4.8/net.d.ts +872 -0
  81. package/public/types/node/ts4.8/os.d.ts +469 -0
  82. package/public/types/node/ts4.8/path.d.ts +194 -0
  83. package/public/types/node/ts4.8/perf_hooks.d.ts +628 -0
  84. package/public/types/node/ts4.8/process.d.ts +1485 -0
  85. package/public/types/node/ts4.8/querystring.d.ts +134 -0
  86. package/public/types/node/ts4.8/readline/promises.d.ts +146 -0
  87. package/public/types/node/ts4.8/readline.d.ts +656 -0
  88. package/public/types/node/ts4.8/stream/consumers.d.ts +15 -0
  89. package/public/types/node/ts4.8/stream/promises.d.ts +45 -0
  90. package/public/types/node/ts4.8/stream/web.d.ts +333 -0
  91. package/public/types/node/ts4.8/stream.d.ts +1343 -0
  92. package/public/types/node/ts4.8/string_decoder.d.ts +70 -0
  93. package/public/types/node/ts4.8/test.d.ts +377 -0
  94. package/public/types/node/ts4.8/timers/promises.d.ts +71 -0
  95. package/public/types/node/ts4.8/timers.d.ts +97 -0
  96. package/public/types/node/ts4.8/tls.d.ts +1031 -0
  97. package/public/types/node/ts4.8/trace_events.d.ts +174 -0
  98. package/public/types/node/ts4.8/tty.d.ts +209 -0
  99. package/public/types/node/ts4.8/url.d.ts +900 -0
  100. package/public/types/node/ts4.8/util.d.ts +1853 -0
  101. package/public/types/node/ts4.8/v8.d.ts +399 -0
  102. package/public/types/node/ts4.8/vm.d.ts +512 -0
  103. package/public/types/node/ts4.8/wasi.d.ts +161 -0
  104. package/public/types/node/ts4.8/worker_threads.d.ts +692 -0
  105. package/public/types/node/ts4.8/zlib.d.ts +520 -0
  106. package/public/types/node/tty.d.ts +5 -3
  107. package/public/types/node/url.d.ts +81 -39
  108. package/public/types/node/util.d.ts +269 -13
  109. package/public/types/node/v8.d.ts +22 -4
  110. package/public/types/node/vm.d.ts +7 -5
  111. package/public/types/node/wasi.d.ts +2 -2
  112. package/public/types/node/worker_threads.d.ts +51 -11
  113. package/public/types/node/zlib.d.ts +2 -2
  114. package/public/types/node-red/func.d.ts +26 -17
  115. package/public/vendor/ace/worker-jsonata.js +1 -1
  116. package/public/vendor/monaco/dist/{fa2cc0ab9f0bec2b3365.ttf → 0c718f5b7d2bce997c5f.ttf} +0 -0
  117. package/public/vendor/monaco/dist/css.worker.js +1 -1
  118. package/public/vendor/monaco/dist/css.worker.js.LICENSE.txt +1 -1
  119. package/public/vendor/monaco/dist/editor.js +1 -29
  120. package/public/vendor/monaco/dist/editor.js.LICENSE.txt +2 -2
  121. package/public/vendor/monaco/dist/editor.worker.js +1 -1
  122. package/public/vendor/monaco/dist/html.worker.js +1 -1
  123. package/public/vendor/monaco/dist/html.worker.js.LICENSE.txt +1 -1
  124. package/public/vendor/monaco/dist/json.worker.js +1 -1
  125. package/public/vendor/monaco/dist/json.worker.js.LICENSE.txt +1 -1
  126. package/public/vendor/monaco/dist/locale/cs.js +324 -106
  127. package/public/vendor/monaco/dist/locale/de.js +336 -118
  128. package/public/vendor/monaco/dist/locale/es.js +329 -111
  129. package/public/vendor/monaco/dist/locale/fr.js +334 -116
  130. package/public/vendor/monaco/dist/locale/it.js +327 -109
  131. package/public/vendor/monaco/dist/locale/ja.js +329 -111
  132. package/public/vendor/monaco/dist/locale/ko.js +330 -112
  133. package/public/vendor/monaco/dist/locale/pl.js +329 -111
  134. package/public/vendor/monaco/dist/locale/pt-br.js +329 -111
  135. package/public/vendor/monaco/dist/locale/qps-ploc.js +330 -112
  136. package/public/vendor/monaco/dist/locale/ru.js +331 -113
  137. package/public/vendor/monaco/dist/locale/tr.js +329 -111
  138. package/public/vendor/monaco/dist/locale/zh-hans.js +331 -113
  139. package/public/vendor/monaco/dist/locale/zh-hant.js +331 -113
  140. package/public/vendor/monaco/dist/ts.worker.js +2 -2
  141. package/public/vendor/vendor.js +1 -1
  142. package/public/vendor/monaco/dist/7064e66c3890a12c47b4.ttf +0 -0
  143. /package/public/red/tours/{images → 3.1/images}/context-menu.png +0 -0
  144. /package/public/red/tours/{images → 3.1/images}/global-env-vars.png +0 -0
  145. /package/public/red/tours/{images → 3.1/images}/hiding-flows.png +0 -0
  146. /package/public/red/tours/{images → 3.1/images}/locking-flows.png +0 -0
  147. /package/public/red/tours/{images → 3.1/images}/mermaid.png +0 -0
  148. /package/public/red/tours/{images → 3.1/images}/node-help.png +0 -0
  149. /package/public/red/tours/{images → 3.1/images}/tab-changes.png +0 -0
@@ -1,11 +1,19 @@
1
1
 
2
- /* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
2
+ /* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
3
3
 
4
4
  /**
5
5
  * The `node:test` module provides a standalone testing module.
6
- * @see [source](https://github.com/nodejs/node/blob/v16.17.0/lib/test.js)
6
+ * @see [source](https://github.com/nodejs/node/blob/v18.8.0/lib/test.js)
7
7
  */
8
8
  declare module 'node:test' {
9
+ /**
10
+ * Programmatically start the test runner.
11
+ * @since v18.9.0
12
+ * @param options Configuration options for running tests.
13
+ * @returns A {@link TapStream} that emits events about the test execution.
14
+ */
15
+ function run(options?: RunOptions): TapStream;
16
+
9
17
  /**
10
18
  * The `test()` function is the value imported from the test module. Each invocation of this
11
19
  * function results in the creation of a test point in the TAP output.
@@ -31,7 +39,7 @@ declare module 'node:test' {
31
39
  * });
32
40
  * });
33
41
  * ```
34
- * @since v16.17.0
42
+ * @since v18.0.0
35
43
  * @param name The name of the test, which is displayed when reporting test results.
36
44
  * Default: The `name` property of fn, or `'<anonymous>'` if `fn` does not have a name.
37
45
  * @param options Configuration options for the test
@@ -45,8 +53,8 @@ declare module 'node:test' {
45
53
  function test(options?: TestOptions, fn?: TestFn): Promise<void>;
46
54
  function test(fn?: TestFn): Promise<void>;
47
55
 
48
- /*
49
- * @since v16.17.0
56
+ /**
57
+ * @since v18.6.0
50
58
  * @param name The name of the suite, which is displayed when reporting suite results.
51
59
  * Default: The `name` property of fn, or `'<anonymous>'` if `fn` does not have a name.
52
60
  * @param options Configuration options for the suite
@@ -57,8 +65,8 @@ declare module 'node:test' {
57
65
  function describe(options?: TestOptions, fn?: SuiteFn): void;
58
66
  function describe(fn?: SuiteFn): void;
59
67
 
60
- /*
61
- * @since v16.17.0
68
+ /**
69
+ * @since v18.6.0
62
70
  * @param name The name of the test, which is displayed when reporting test results.
63
71
  * Default: The `name` property of fn, or `'<anonymous>'` if `fn` does not have a name.
64
72
  * @param options Configuration options for the test
@@ -89,17 +97,133 @@ declare module 'node:test' {
89
97
  */
90
98
  type ItFn = (done: (result?: any) => void) => any;
91
99
 
100
+ interface RunOptions {
101
+ /**
102
+ * @default false
103
+ */
104
+ concurrency?: number | boolean;
105
+
106
+ /**
107
+ * An array containing the list of files to run. If unspecified, the test runner execution model will be used.
108
+ */
109
+ files?: readonly string[];
110
+
111
+ /**
112
+ * Allows aborting an in-progress test.
113
+ * @default undefined
114
+ */
115
+ signal?: AbortSignal;
116
+
117
+ /**
118
+ * A number of milliseconds the test will fail after. If unspecified, subtests inherit this
119
+ * value from their parent.
120
+ * @default Infinity
121
+ */
122
+ timeout?: number;
123
+ }
124
+
125
+ /**
126
+ * A successful call of the run() method will return a new TapStream object, streaming a TAP output.
127
+ * TapStream will emit events in the order of the tests' definitions.
128
+ * @since v18.9.0
129
+ */
130
+ interface TapStream extends NodeJS.ReadableStream {
131
+ addListener(event: 'test:diagnostic', listener: (message: string) => void): this;
132
+ addListener(event: 'test:fail', listener: (data: TestFail) => void): this;
133
+ addListener(event: 'test:pass', listener: (data: TestPass) => void): this;
134
+ addListener(event: string, listener: (...args: any[]) => void): this;
135
+ emit(event: 'test:diagnostic', message: string): boolean;
136
+ emit(event: 'test:fail', data: TestFail): boolean;
137
+ emit(event: 'test:pass', data: TestPass): boolean;
138
+ emit(event: string | symbol, ...args: any[]): boolean;
139
+ on(event: 'test:diagnostic', listener: (message: string) => void): this;
140
+ on(event: 'test:fail', listener: (data: TestFail) => void): this;
141
+ on(event: 'test:pass', listener: (data: TestPass) => void): this;
142
+ on(event: string, listener: (...args: any[]) => void): this;
143
+ once(event: 'test:diagnostic', listener: (message: string) => void): this;
144
+ once(event: 'test:fail', listener: (data: TestFail) => void): this;
145
+ once(event: 'test:pass', listener: (data: TestPass) => void): this;
146
+ once(event: string, listener: (...args: any[]) => void): this;
147
+ prependListener(event: 'test:diagnostic', listener: (message: string) => void): this;
148
+ prependListener(event: 'test:fail', listener: (data: TestFail) => void): this;
149
+ prependListener(event: 'test:pass', listener: (data: TestPass) => void): this;
150
+ prependListener(event: string, listener: (...args: any[]) => void): this;
151
+ prependOnceListener(event: 'test:diagnostic', listener: (message: string) => void): this;
152
+ prependOnceListener(event: 'test:fail', listener: (data: TestFail) => void): this;
153
+ prependOnceListener(event: 'test:pass', listener: (data: TestPass) => void): this;
154
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
155
+ }
156
+
157
+ interface TestFail {
158
+ /**
159
+ * The test duration.
160
+ */
161
+ duration: number;
162
+
163
+ /**
164
+ * The failure casing test to fail.
165
+ */
166
+ error: Error;
167
+
168
+ /**
169
+ * The test name.
170
+ */
171
+ name: string;
172
+
173
+ /**
174
+ * The ordinal number of the test.
175
+ */
176
+ testNumber: number;
177
+
178
+ /**
179
+ * Present if `context.todo` is called.
180
+ */
181
+ todo?: string;
182
+
183
+ /**
184
+ * Present if `context.skip` is called.
185
+ */
186
+ skip?: string;
187
+ }
188
+
189
+ interface TestPass {
190
+ /**
191
+ * The test duration.
192
+ */
193
+ duration: number;
194
+
195
+ /**
196
+ * The test name.
197
+ */
198
+ name: string;
199
+
200
+ /**
201
+ * The ordinal number of the test.
202
+ */
203
+ testNumber: number;
204
+
205
+ /**
206
+ * Present if `context.todo` is called.
207
+ */
208
+ todo?: string;
209
+
210
+ /**
211
+ * Present if `context.skip` is called.
212
+ */
213
+ skip?: string;
214
+ }
215
+
92
216
  /**
93
217
  * An instance of `TestContext` is passed to each test function in order to interact with the
94
218
  * test runner. However, the `TestContext` constructor is not exposed as part of the API.
95
- * @since v16.17.0
219
+ * @since v18.0.0
96
220
  */
97
221
  interface TestContext {
98
222
  /**
99
223
  * This function is used to write TAP diagnostics to the output. Any diagnostic information is
100
224
  * included at the end of the test's results. This function does not return a value.
101
225
  * @param message Message to be displayed as a TAP diagnostic.
102
- * @since v16.17.0
226
+ * @since v18.0.0
103
227
  */
104
228
  diagnostic(message: string): void;
105
229
 
@@ -108,7 +232,7 @@ declare module 'node:test' {
108
232
  * option set. Otherwise, all tests are run. If Node.js was not started with the `--test-only`
109
233
  * command-line option, this function is a no-op.
110
234
  * @param shouldRunOnlyTests Whether or not to run `only` tests.
111
- * @since v16.17.0
235
+ * @since v18.0.0
112
236
  */
113
237
  runOnly(shouldRunOnlyTests: boolean): void;
114
238
 
@@ -117,7 +241,7 @@ declare module 'node:test' {
117
241
  * provided, it is included in the TAP output. Calling `skip()` does not terminate execution of
118
242
  * the test function. This function does not return a value.
119
243
  * @param message Optional skip message to be displayed in TAP output.
120
- * @since v16.17.0
244
+ * @since v18.0.0
121
245
  */
122
246
  skip(message?: string): void;
123
247
 
@@ -126,14 +250,14 @@ declare module 'node:test' {
126
250
  * included in the TAP output. Calling `todo()` does not terminate execution of the test
127
251
  * function. This function does not return a value.
128
252
  * @param message Optional `TODO` message to be displayed in TAP output.
129
- * @since v16.17.0
253
+ * @since v18.0.0
130
254
  */
131
255
  todo(message?: string): void;
132
256
 
133
257
  /**
134
258
  * This function is used to create subtests under the current test. This function behaves in
135
259
  * the same fashion as the top level {@link test} function.
136
- * @since v16.17.0
260
+ * @since v18.0.0
137
261
  * @param name The name of the test, which is displayed when reporting test results.
138
262
  * Default: The `name` property of fn, or `'<anonymous>'` if `fn` does not have a name.
139
263
  * @param options Configuration options for the test
@@ -162,7 +286,7 @@ declare module 'node:test' {
162
286
 
163
287
  /**
164
288
  * Allows aborting an in-progress test.
165
- * @since v16.17.0
289
+ * @since v18.8.0
166
290
  */
167
291
  signal?: AbortSignal;
168
292
 
@@ -177,7 +301,7 @@ declare module 'node:test' {
177
301
  * A number of milliseconds the test will fail after. If unspecified, subtests inherit this
178
302
  * value from their parent.
179
303
  * @default Infinity
180
- * @since v16.17.0
304
+ * @since v18.7.0
181
305
  */
182
306
  timeout?: number;
183
307
 
@@ -189,5 +313,65 @@ declare module 'node:test' {
189
313
  todo?: boolean | string;
190
314
  }
191
315
 
192
- export { test as default, test, describe, it };
316
+ /**
317
+ * This function is used to create a hook running before running a suite.
318
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
319
+ * the second argument. Default: A no-op function.
320
+ * @param options Configuration options for the hook.
321
+ * @since v18.8.0
322
+ */
323
+ function before(fn?: HookFn, options?: HookOptions): void;
324
+
325
+ /**
326
+ * This function is used to create a hook running after running a suite.
327
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
328
+ * the second argument. Default: A no-op function.
329
+ * @param options Configuration options for the hook.
330
+ * @since v18.8.0
331
+ */
332
+ function after(fn?: HookFn, options?: HookOptions): void;
333
+
334
+ /**
335
+ * This function is used to create a hook running before each subtest of the current suite.
336
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
337
+ * the second argument. Default: A no-op function.
338
+ * @param options Configuration options for the hook.
339
+ * @since v18.8.0
340
+ */
341
+ function beforeEach(fn?: HookFn, options?: HookOptions): void;
342
+
343
+ /**
344
+ * This function is used to create a hook running after each subtest of the current test.
345
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
346
+ * the second argument. Default: A no-op function.
347
+ * @param options Configuration options for the hook.
348
+ * @since v18.8.0
349
+ */
350
+ function afterEach(fn?: HookFn, options?: HookOptions): void;
351
+
352
+ /**
353
+ * The hook function. If the hook uses callbacks, the callback function is passed as the
354
+ * second argument.
355
+ */
356
+ type HookFn = (done: (result?: any) => void) => any;
357
+
358
+ /**
359
+ * Configuration options for hooks.
360
+ * @since v18.8.0
361
+ */
362
+ interface HookOptions {
363
+ /**
364
+ * Allows aborting an in-progress hook.
365
+ */
366
+ signal?: AbortSignal;
367
+
368
+ /**
369
+ * A number of milliseconds the hook will fail after. If unspecified, subtests inherit this
370
+ * value from their parent.
371
+ * @default Infinity
372
+ */
373
+ timeout?: number;
374
+ }
375
+
376
+ export { test as default, run, test, describe, it, before, after, beforeEach, afterEach };
193
377
  }
@@ -1,5 +1,5 @@
1
1
 
2
- /* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
2
+ /* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
3
3
 
4
4
  /**
5
5
  * The `timers/promises` API provides an alternative set of timer functions
@@ -65,31 +65,6 @@ declare module 'timers/promises' {
65
65
  * @since v15.9.0
66
66
  */
67
67
  function setInterval<T = void>(delay?: number, value?: T, options?: TimerOptions): AsyncIterable<T>;
68
-
69
- interface Scheduler {
70
- /**
71
- * ```js
72
- * import { scheduler } from 'node:timers/promises';
73
- *
74
- * await scheduler.wait(1000); // Wait one second before continuing
75
- * ```
76
- * An experimental API defined by the Scheduling APIs draft specification being developed as a standard Web Platform API.
77
- * Calling timersPromises.scheduler.wait(delay, options) is roughly equivalent to calling timersPromises.setTimeout(delay, undefined, options) except that the ref option is not supported.
78
- * @since v16.14.0
79
- * @experimental
80
- * @param [delay=1] The number of milliseconds to wait before fulfilling the promise.
81
- */
82
- wait: (delay?: number, options?: TimerOptions) => Promise<void>;
83
- /**
84
- * An experimental API defined by the Scheduling APIs draft specification being developed as a standard Web Platform API.
85
- * Calling timersPromises.scheduler.yield() is equivalent to calling timersPromises.setImmediate() with no arguments.
86
- * @since v16.14.0
87
- * @experimental
88
- */
89
- yield: () => Promise<void>;
90
- }
91
-
92
- const scheduler: Scheduler;
93
68
  }
94
69
  declare module 'node:timers/promises' {
95
70
  export * from 'timers/promises';
@@ -1,5 +1,5 @@
1
1
 
2
- /* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
2
+ /* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
3
3
 
4
4
  /**
5
5
  * The `timer` module exposes a global API for scheduling functions to
@@ -9,7 +9,7 @@
9
9
  * The timer functions within Node.js implement a similar API as the timers API
10
10
  * provided by Web Browsers but use a different internal implementation that is
11
11
  * built around the Node.js [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#setimmediate-vs-settimeout).
12
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/timers.js)
12
+ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/timers.js)
13
13
  */
14
14
  declare module 'timers' {
15
15
  import { Abortable } from 'node:events';
@@ -1,5 +1,5 @@
1
1
 
2
- /* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
2
+ /* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
3
3
 
4
4
  /**
5
5
  * The `tls` module provides an implementation of the Transport Layer Security
@@ -9,11 +9,12 @@
9
9
  * ```js
10
10
  * const tls = require('tls');
11
11
  * ```
12
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/tls.js)
12
+ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/tls.js)
13
13
  */
14
14
  declare module 'tls' {
15
15
  import { X509Certificate } from 'node:crypto';
16
16
  import * as net from 'node:net';
17
+ import * as stream from 'stream';
17
18
  const CLIENT_RENEG_LIMIT: number;
18
19
  const CLIENT_RENEG_WINDOW: number;
19
20
  interface Certificate {
@@ -145,8 +146,8 @@ declare module 'tls' {
145
146
  */
146
147
  constructor(socket: net.Socket, options?: TLSSocketOptions);
147
148
  /**
148
- * Returns `true` if the peer certificate was signed by one of the CAs specified
149
- * when creating the `tls.TLSSocket` instance, otherwise `false`.
149
+ * This property is `true` if the peer certificate was signed by one of the CAs
150
+ * specified when creating the `tls.TLSSocket` instance, otherwise `false`.
150
151
  * @since v0.11.4
151
152
  */
152
153
  authorized: boolean;
@@ -345,9 +346,9 @@ declare module 'tls' {
345
346
  * When enabled, TLS packet trace information is written to `stderr`. This can be
346
347
  * used to debug TLS connection problems.
347
348
  *
348
- * Note: The format of the output is identical to the output of `openssl s_client -trace` or `openssl s_server -trace`. While it is produced by OpenSSL's`SSL_trace()` function, the format is
349
- * undocumented, can change without notice,
350
- * and should not be relied on.
349
+ * The format of the output is identical to the output of`openssl s_client -trace` or `openssl s_server -trace`. While it is produced by
350
+ * OpenSSL's `SSL_trace()` function, the format is undocumented, can change
351
+ * without notice, and should not be relied on.
351
352
  * @since v12.2.0
352
353
  */
353
354
  enableTrace(): void;
@@ -376,7 +377,7 @@ declare module 'tls' {
376
377
  * 128,
377
378
  * 'client finished');
378
379
  *
379
- *
380
+ * /*
380
381
  * Example return value of keyingMaterial:
381
382
  * <Buffer 76 26 af 99 c5 56 8e 42 09 91 ef 9f 93 cb ad 6c 7b 65 f8 53 f1 d8 d9
382
383
  * 12 5a 33 b8 b5 25 df 7b 37 9f e0 e2 4f b8 67 83 a3 2f cd 5d 41 42 4c 91
@@ -519,7 +520,7 @@ declare module 'tls' {
519
520
  host?: string | undefined;
520
521
  port?: number | undefined;
521
522
  path?: string | undefined; // Creates unix socket connection to path. If this option is specified, `host` and `port` are ignored.
522
- socket?: net.Socket | undefined; // Establish secure connection on a given socket rather than creating a new socket
523
+ socket?: stream.Duplex | undefined; // Establish secure connection on a given socket rather than creating a new socket
523
524
  checkServerIdentity?: typeof checkServerIdentity | undefined;
524
525
  servername?: string | undefined; // SNI TLS Extension
525
526
  session?: Buffer | undefined;
@@ -725,7 +726,7 @@ declare module 'tls' {
725
726
  * object.passphrase is optional. Encrypted keys will be decrypted with
726
727
  * object.passphrase if provided, or options.passphrase if it is not.
727
728
  */
728
- key?: string | Buffer | Array<Buffer | KeyObject> | undefined;
729
+ key?: string | Buffer | Array<string | Buffer | KeyObject> | undefined;
729
730
  /**
730
731
  * Name of an OpenSSL engine to get private key from. Should be used
731
732
  * together with privateKeyIdentifier.
@@ -816,13 +817,19 @@ declare module 'tls' {
816
817
  * Returns [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) object, populating it with `reason`, `host`, and `cert` on
817
818
  * failure. On success, returns [undefined](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Undefined_type).
818
819
  *
819
- * This function can be overwritten by providing alternative function as part of
820
- * the `options.checkServerIdentity` option passed to `tls.connect()`. The
820
+ * This function is intended to be used in combination with the`checkServerIdentity` option that can be passed to {@link connect} and as
821
+ * such operates on a `certificate object`. For other purposes, consider using `x509.checkHost()` instead.
822
+ *
823
+ * This function can be overwritten by providing an alternative function as the`options.checkServerIdentity` option that is passed to `tls.connect()`. The
821
824
  * overwriting function can call `tls.checkServerIdentity()` of course, to augment
822
825
  * the checks done with additional verification.
823
826
  *
824
827
  * This function is only called if the certificate passed all other checks, such as
825
828
  * being issued by trusted CA (`options.ca`).
829
+ *
830
+ * Earlier versions of Node.js incorrectly accepted certificates for a given`hostname` if a matching `uniformResourceIdentifier` subject alternative name
831
+ * was present (see [CVE-2021-44531](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44531)). Applications that wish to accept`uniformResourceIdentifier` subject alternative names can use
832
+ * a custom`options.checkServerIdentity` function that implements the desired behavior.
826
833
  * @since v0.8.4
827
834
  * @param hostname The host name or IP address to verify the certificate against.
828
835
  * @param cert A `certificate object` representing the peer's certificate.
@@ -975,6 +982,8 @@ declare module 'tls' {
975
982
  * lower-case for historical reasons, but must be uppercased to be used in
976
983
  * the `ciphers` option of {@link createSecureContext}.
977
984
  *
985
+ * Not all supported ciphers are enabled by default. See `Modifying the default TLS cipher suite`.
986
+ *
978
987
  * Cipher names that start with `'tls_'` are for TLSv1.3, all the others are for
979
988
  * TLSv1.2 and below.
980
989
  *
@@ -1,5 +1,5 @@
1
1
 
2
- /* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
2
+ /* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
3
3
 
4
4
  /**
5
5
  * The `trace_events` module provides a mechanism to centralize tracing information
@@ -69,6 +69,16 @@
69
69
  * node --trace-event-categories v8 --trace-event-file-pattern '${pid}-${rotation}.log' server.js
70
70
  * ```
71
71
  *
72
+ * To guarantee that the log file is properly generated after signal events like`SIGINT`, `SIGTERM`, or `SIGBREAK`, make sure to have the appropriate handlers
73
+ * in your code, such as:
74
+ *
75
+ * ```js
76
+ * process.on('SIGINT', function onSigint() {
77
+ * console.info('Received SIGINT.');
78
+ * process.exit(130); // Or applicable exit code depending on OS and signal
79
+ * });
80
+ * ```
81
+ *
72
82
  * The tracing system uses the same time source
73
83
  * as the one used by `process.hrtime()`.
74
84
  * However the trace-event timestamps are expressed in microseconds,
@@ -76,7 +86,7 @@
76
86
  *
77
87
  * The features from this module are not available in `Worker` threads.
78
88
  * @experimental
79
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/trace_events.js)
89
+ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/trace_events.js)
80
90
  */
81
91
  declare module 'trace_events' {
82
92
  /**
@@ -0,0 +1,11 @@
1
+
2
+ /* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
3
+
4
+ declare module 'assert/strict' {
5
+ import { strict } from 'node:assert';
6
+ export = strict;
7
+ }
8
+ declare module 'node:assert/strict' {
9
+ import { strict } from 'node:assert';
10
+ export = strict;
11
+ }