@node-red/editor-client 2.2.2 → 3.0.0-beta.1

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 (143) hide show
  1. package/locales/de/editor.json +14 -11
  2. package/locales/en-US/editor.json +44 -14
  3. package/locales/ja/editor.json +50 -17
  4. package/locales/ko/editor.json +5 -2
  5. package/locales/ru/editor.json +14 -11
  6. package/locales/zh-CN/editor.json +14 -11
  7. package/locales/zh-TW/editor.json +14 -11
  8. package/package.json +1 -1
  9. package/public/red/about +77 -0
  10. package/public/red/images/grip-horizontal.svg +1 -0
  11. package/public/red/images/grip.svg +1 -0
  12. package/public/red/keymap.json +5 -1
  13. package/public/red/red.js +2060 -610
  14. package/public/red/red.min.js +2 -2
  15. package/public/red/style.min.css +2 -2
  16. package/public/red/tours/images/continuous-search.png +0 -0
  17. package/public/red/tours/images/debug-path-tooltip.png +0 -0
  18. package/public/red/tours/images/junction-quick-add.png +0 -0
  19. package/public/red/tours/images/junction-slice.gif +0 -0
  20. package/public/red/tours/images/split-wire-with-links.gif +0 -0
  21. package/public/red/tours/welcome.js +65 -99
  22. package/public/types/node/assert.d.ts +5 -1
  23. package/public/types/node/async_hooks.d.ts +4 -1
  24. package/public/types/node/buffer.d.ts +68 -1
  25. package/public/types/node/child_process.d.ts +4 -1
  26. package/public/types/node/cluster.d.ts +4 -1
  27. package/public/types/node/console.d.ts +10 -1
  28. package/public/types/node/crypto.d.ts +6 -3
  29. package/public/types/node/dgram.d.ts +12 -9
  30. package/public/types/node/dns.d.ts +8 -1
  31. package/public/types/node/domain.d.ts +4 -1
  32. package/public/types/node/events.d.ts +5 -1
  33. package/public/types/node/fs.d.ts +10 -7
  34. package/public/types/node/globals.d.ts +140 -7
  35. package/public/types/node/http.d.ts +10 -4
  36. package/public/types/node/http2.d.ts +8 -5
  37. package/public/types/node/https.d.ts +4 -1
  38. package/public/types/node/module.d.ts +5 -1
  39. package/public/types/node/net.d.ts +7 -4
  40. package/public/types/node/os.d.ts +4 -1
  41. package/public/types/node/path.d.ts +5 -1
  42. package/public/types/node/perf_hooks.d.ts +4 -1
  43. package/public/types/node/process.d.ts +6 -2
  44. package/public/types/node/querystring.d.ts +4 -1
  45. package/public/types/node/readline.d.ts +5 -1
  46. package/public/types/node/stream.d.ts +13 -9
  47. package/public/types/node/string_decoder.d.ts +4 -1
  48. package/public/types/node/timers.d.ts +4 -1
  49. package/public/types/node/tls.d.ts +6 -2
  50. package/public/types/node/trace_events.d.ts +4 -1
  51. package/public/types/node/tty.d.ts +4 -1
  52. package/public/types/node/url.d.ts +35 -2
  53. package/public/types/node/util.d.ts +11 -2
  54. package/public/types/node/v8.d.ts +4 -1
  55. package/public/types/node/vm.d.ts +4 -1
  56. package/public/types/node/wasi.d.ts +4 -1
  57. package/public/types/node/worker_threads.d.ts +4 -1
  58. package/public/types/node/zlib.d.ts +4 -1
  59. package/public/vendor/monaco/dist/ThirdPartyNotices.txt +382 -217
  60. package/public/vendor/monaco/dist/ade705761eb7e702770d.ttf +0 -0
  61. package/public/vendor/monaco/dist/css.worker.js +2 -1
  62. package/public/vendor/monaco/dist/css.worker.js.LICENSE.txt +6 -0
  63. package/public/vendor/monaco/dist/editor.js +2 -5
  64. package/public/vendor/monaco/dist/editor.js.LICENSE.txt +8 -0
  65. package/public/vendor/monaco/dist/editor.worker.js +1 -1
  66. package/public/vendor/monaco/dist/html.worker.js +2 -1
  67. package/public/vendor/monaco/dist/html.worker.js.LICENSE.txt +6 -0
  68. package/public/vendor/monaco/dist/json.worker.js +2 -1
  69. package/public/vendor/monaco/dist/json.worker.js.LICENSE.txt +6 -0
  70. package/public/vendor/monaco/dist/locale/cs.js +1550 -1445
  71. package/public/vendor/monaco/dist/locale/de.js +1550 -1445
  72. package/public/vendor/monaco/dist/locale/es.js +1550 -1445
  73. package/public/vendor/monaco/dist/locale/fr.js +1550 -1445
  74. package/public/vendor/monaco/dist/locale/it.js +1550 -1445
  75. package/public/vendor/monaco/dist/locale/ja.js +1550 -1445
  76. package/public/vendor/monaco/dist/locale/ko.js +1550 -1445
  77. package/public/vendor/monaco/dist/locale/pl.js +1550 -1445
  78. package/public/vendor/monaco/dist/locale/pt-br.js +1550 -1445
  79. package/public/vendor/monaco/dist/locale/qps-ploc.js +1550 -1445
  80. package/public/vendor/monaco/dist/locale/ru.js +1550 -1445
  81. package/public/vendor/monaco/dist/locale/tr.js +1550 -1445
  82. package/public/vendor/monaco/dist/locale/zh-hans.js +1550 -1445
  83. package/public/vendor/monaco/dist/locale/zh-hant.js +1550 -1445
  84. package/public/vendor/monaco/dist/theme/ace.json +197 -0
  85. package/public/vendor/monaco/dist/theme/active4d.json +4 -0
  86. package/public/vendor/monaco/dist/theme/all-hallows-eve.json +4 -0
  87. package/public/vendor/monaco/dist/theme/amy.json +4 -0
  88. package/public/vendor/monaco/dist/theme/birds-of-paradise.json +4 -0
  89. package/public/vendor/monaco/dist/theme/blackboard.json +4 -0
  90. package/public/vendor/monaco/dist/theme/brilliance-black.json +4 -0
  91. package/public/vendor/monaco/dist/theme/brilliance-dull.json +4 -0
  92. package/public/vendor/monaco/dist/theme/chrome-devtools.json +4 -0
  93. package/public/vendor/monaco/dist/theme/clouds-midnight.json +4 -0
  94. package/public/vendor/monaco/dist/theme/clouds.json +4 -0
  95. package/public/vendor/monaco/dist/theme/cobalt.json +4 -0
  96. package/public/vendor/monaco/dist/theme/cobalt2.json +859 -0
  97. package/public/vendor/monaco/dist/theme/dawn.json +4 -0
  98. package/public/vendor/monaco/dist/theme/dracula.json +208 -0
  99. package/public/vendor/monaco/dist/theme/dreamweaver.json +4 -0
  100. package/public/vendor/monaco/dist/theme/eiffel.json +4 -0
  101. package/public/vendor/monaco/dist/theme/espresso-libre.json +4 -0
  102. package/public/vendor/monaco/dist/theme/github.json +4 -0
  103. package/public/vendor/monaco/dist/theme/idle.json +4 -0
  104. package/public/vendor/monaco/dist/theme/idlefingers.json +4 -0
  105. package/public/vendor/monaco/dist/theme/iplastic.json +4 -0
  106. package/public/vendor/monaco/dist/theme/katzenmilch.json +4 -0
  107. package/public/vendor/monaco/dist/theme/krtheme.json +4 -0
  108. package/public/vendor/monaco/dist/theme/kuroir-theme.json +4 -0
  109. package/public/vendor/monaco/dist/theme/lazy.json +4 -0
  110. package/public/vendor/monaco/dist/theme/magicwb-amiga.json +4 -0
  111. package/public/vendor/monaco/dist/theme/merbivore-soft.json +4 -0
  112. package/public/vendor/monaco/dist/theme/merbivore.json +4 -0
  113. package/public/vendor/monaco/dist/theme/monoindustrial.json +4 -0
  114. package/public/vendor/monaco/dist/theme/monokai-bright.json +4 -0
  115. package/public/vendor/monaco/dist/theme/monokai.json +4 -0
  116. package/public/vendor/monaco/dist/theme/night-owl.json +4 -0
  117. package/public/vendor/monaco/dist/theme/oceanic-next.json +4 -0
  118. package/public/vendor/monaco/dist/theme/pastels-on-dark.json +4 -0
  119. package/public/vendor/monaco/dist/theme/slush-and-poppies.json +4 -0
  120. package/public/vendor/monaco/dist/theme/solarized-dark.json +4 -0
  121. package/public/vendor/monaco/dist/theme/solarized-light.json +4 -0
  122. package/public/vendor/monaco/dist/theme/spacecadet.json +4 -0
  123. package/public/vendor/monaco/dist/theme/sunburst.json +4 -0
  124. package/public/vendor/monaco/dist/theme/textmate-mac-classic.json +4 -0
  125. package/public/vendor/monaco/dist/theme/tomorrow-night-blue.json +4 -0
  126. package/public/vendor/monaco/dist/theme/tomorrow-night-bright.json +4 -0
  127. package/public/vendor/monaco/dist/theme/tomorrow-night-eighties.json +4 -0
  128. package/public/vendor/monaco/dist/theme/tomorrow-night.json +4 -0
  129. package/public/vendor/monaco/dist/theme/tomorrow.json +4 -0
  130. package/public/vendor/monaco/dist/theme/twilight.json +4 -0
  131. package/public/vendor/monaco/dist/theme/upstream-sunburst.json +4 -0
  132. package/public/vendor/monaco/dist/theme/vibrant-ink.json +4 -0
  133. package/public/vendor/monaco/dist/theme/xcode_default.json +4 -0
  134. package/public/vendor/monaco/dist/theme/zenburnesque.json +4 -0
  135. package/public/vendor/monaco/dist/ts.worker.js +2 -16
  136. package/public/vendor/monaco/dist/ts.worker.js.LICENSE.txt +6 -0
  137. package/public/vendor/vendor.js +4 -4
  138. package/public/red/images/grip-horizontal.png +0 -0
  139. package/public/red/images/grip.png +0 -0
  140. package/public/red/tours/images/delete-repair.gif +0 -0
  141. package/public/red/tours/images/detach-repair.gif +0 -0
  142. package/public/red/tours/images/slice.gif +0 -0
  143. package/public/red/tours/images/subflow-labels.png +0 -0
@@ -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/node-red/nr-monaco-build */
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 */
3
3
 
4
4
  // Declare "static" methods in Error
5
5
  interface ErrorConstructor {
@@ -74,14 +74,57 @@ declare var module: NodeModule;
74
74
  declare var exports: any;
75
75
 
76
76
  // Buffer class
77
- type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex";
77
+ type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex";
78
78
 
79
79
  type WithImplicitCoercion<T> = T | { valueOf(): T };
80
80
 
81
+ //#region borrowed
82
+ // from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib
83
+ /**
84
+ * A controller object that allows you to abort one or more DOM requests as and when desired.
85
+ * @since v14.7.0
86
+ */
87
+ interface AbortController {
88
+ /**
89
+ * Returns the AbortSignal object associated with this object.
90
+ * @since v14.7.0
91
+ */
92
+ readonly signal: AbortSignal;
93
+ /**
94
+ * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
95
+ * @since v14.7.0
96
+ */
97
+ abort(): void;
98
+ }
99
+
100
+ /**
101
+ * A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object.
102
+ * @since v14.7.0
103
+ */
104
+ interface AbortSignal {
105
+ /**
106
+ * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
107
+ * @since v14.7.0
108
+ */
109
+ readonly aborted: boolean;
110
+ }
111
+
112
+ declare var AbortController: {
113
+ prototype: AbortController;
114
+ new(): AbortController;
115
+ };
116
+
117
+ declare var AbortSignal: {
118
+ prototype: AbortSignal;
119
+ new(): AbortSignal;
120
+ // TODO: Add abort() static
121
+ };
122
+ //#endregion borrowed
123
+
81
124
  /**
82
125
  * Raw data is stored in instances of the Buffer class.
83
126
  * A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized.
84
- * Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex'
127
+ * Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'base64url'|'binary'(deprecated)|'hex'
85
128
  */
86
129
  declare class Buffer extends Uint8Array {
87
130
  /**
@@ -163,7 +206,7 @@ declare class Buffer extends Uint8Array {
163
206
  static isBuffer(obj: any): obj is Buffer;
164
207
  /**
165
208
  * Returns true if {encoding} is a valid encoding argument.
166
- * Valid string encodings in Node 0.12: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex'
209
+ * Valid string encodings in Node 0.12: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'base64url'|'binary'(deprecated)|'hex'
167
210
  *
168
211
  * @param encoding string to test.
169
212
  */
@@ -258,24 +301,89 @@ declare class Buffer extends Uint8Array {
258
301
  writeBigInt64BE(value: bigint, offset?: number): number;
259
302
  writeBigInt64LE(value: bigint, offset?: number): number;
260
303
  writeBigUInt64BE(value: bigint, offset?: number): number;
304
+ /**
305
+ * @alias Buffer.writeBigUInt64BE
306
+ * @since v14.10.0, v12.19.0
307
+ */
308
+ writeBigUint64BE(value: bigint, offset?: number): number;
261
309
  writeBigUInt64LE(value: bigint, offset?: number): number;
310
+ /**
311
+ * @alias Buffer.writeBigUInt64LE
312
+ * @since v14.10.0, v12.19.0
313
+ */
314
+ writeBigUint64LE(value: bigint, offset?: number): number;
262
315
  writeUIntLE(value: number, offset: number, byteLength: number): number;
316
+ /**
317
+ * @alias Buffer.writeUIntLE
318
+ * @since v14.9.0, v12.19.0
319
+ */
320
+ writeUintLE(value: number, offset: number, byteLength: number): number;
263
321
  writeUIntBE(value: number, offset: number, byteLength: number): number;
322
+ /**
323
+ * @alias Buffer.writeUIntBE
324
+ * @since v14.9.0, v12.19.0
325
+ */
326
+ writeUintBE(value: number, offset: number, byteLength: number): number;
264
327
  writeIntLE(value: number, offset: number, byteLength: number): number;
265
328
  writeIntBE(value: number, offset: number, byteLength: number): number;
266
329
  readBigUInt64BE(offset?: number): bigint;
330
+ /**
331
+ * @alias Buffer.readBigUInt64BE
332
+ * @since v14.10.0, v12.19.0
333
+ */
334
+ readBigUint64BE(offset?: number): bigint;
267
335
  readBigUInt64LE(offset?: number): bigint;
336
+ /**
337
+ * @alias Buffer.readBigUInt64LE
338
+ * @since v14.10.0, v12.19.0
339
+ */
340
+ readBigUint64LE(offset?: number): bigint;
268
341
  readBigInt64BE(offset?: number): bigint;
269
342
  readBigInt64LE(offset?: number): bigint;
270
343
  readUIntLE(offset: number, byteLength: number): number;
344
+ /**
345
+ * @alias Buffer.readUIntLE
346
+ * @since v14.9.0, v12.19.0
347
+ */
348
+ readUintLE(offset: number, byteLength: number): number;
271
349
  readUIntBE(offset: number, byteLength: number): number;
350
+ /**
351
+ * @alias Buffer.readUIntBE
352
+ * @since v14.9.0, v12.19.0
353
+ */
354
+ readUintBE(offset: number, byteLength: number): number;
272
355
  readIntLE(offset: number, byteLength: number): number;
273
356
  readIntBE(offset: number, byteLength: number): number;
274
357
  readUInt8(offset?: number): number;
358
+ /**
359
+ * @alias Buffer.readUInt8
360
+ * @since v14.9.0, v12.19.0
361
+ */
362
+ readUint8(offset?: number): number;
275
363
  readUInt16LE(offset?: number): number;
364
+ /**
365
+ * @alias Buffer.readUInt16LE
366
+ * @since v14.9.0, v12.19.0
367
+ */
368
+ readUint16LE(offset?: number): number;
276
369
  readUInt16BE(offset?: number): number;
370
+ /**
371
+ * @alias Buffer.readUInt16BE
372
+ * @since v14.9.0, v12.19.0
373
+ */
374
+ readUint16BE(offset?: number): number;
277
375
  readUInt32LE(offset?: number): number;
376
+ /**
377
+ * @alias Buffer.readUInt32LE
378
+ * @since v14.9.0, v12.19.0
379
+ */
380
+ readUint32LE(offset?: number): number;
278
381
  readUInt32BE(offset?: number): number;
382
+ /**
383
+ * @alias Buffer.readUInt32BE
384
+ * @since v14.9.0, v12.19.0
385
+ */
386
+ readUint32BE(offset?: number): number;
279
387
  readInt8(offset?: number): number;
280
388
  readInt16LE(offset?: number): number;
281
389
  readInt16BE(offset?: number): number;
@@ -290,10 +398,35 @@ declare class Buffer extends Uint8Array {
290
398
  swap32(): Buffer;
291
399
  swap64(): Buffer;
292
400
  writeUInt8(value: number, offset?: number): number;
401
+ /**
402
+ * @alias Buffer.writeUInt8
403
+ * @since v14.9.0, v12.19.0
404
+ */
405
+ writeUint8(value: number, offset?: number): number;
293
406
  writeUInt16LE(value: number, offset?: number): number;
407
+ /**
408
+ * @alias Buffer.writeUInt16LE
409
+ * @since v14.9.0, v12.19.0
410
+ */
411
+ writeUint16LE(value: number, offset?: number): number;
294
412
  writeUInt16BE(value: number, offset?: number): number;
413
+ /**
414
+ * @alias Buffer.writeUInt16BE
415
+ * @since v14.9.0, v12.19.0
416
+ */
417
+ writeUint16BE(value: number, offset?: number): number;
295
418
  writeUInt32LE(value: number, offset?: number): number;
419
+ /**
420
+ * @alias Buffer.writeUInt32LE
421
+ * @since v14.9.0, v12.19.0
422
+ */
423
+ writeUint32LE(value: number, offset?: number): number;
296
424
  writeUInt32BE(value: number, offset?: number): number;
425
+ /**
426
+ * @alias Buffer.writeUInt32BE
427
+ * @since v14.9.0, v12.19.0
428
+ */
429
+ writeUint32BE(value: number, offset?: number): number;
297
430
  writeInt8(value: number, offset?: number): number;
298
431
  writeInt16LE(value: number, offset?: number): number;
299
432
  writeInt16BE(value: number, offset?: number): number;
@@ -460,9 +593,9 @@ declare namespace NodeJS {
460
593
  writable: boolean;
461
594
  write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
462
595
  write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
463
- end(cb?: () => void): void;
464
- end(data: string | Uint8Array, cb?: () => void): void;
465
- end(str: string, encoding?: BufferEncoding, cb?: () => void): void;
596
+ end(cb?: () => void): this;
597
+ end(data: string | Uint8Array, cb?: () => void): this;
598
+ end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
466
599
  }
467
600
 
468
601
  interface ReadWriteStream extends ReadableStream, WritableStream { }
@@ -1,10 +1,10 @@
1
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 */
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 */
3
3
 
4
4
  declare module 'http' {
5
5
  import * as stream from 'stream';
6
6
  import { URL } from 'url';
7
- import { Socket, Server as NetServer } from 'net';
7
+ import { Socket, Server as NetServer, LookupFunction } from 'net';
8
8
 
9
9
  // incoming headers will never contain number
10
10
  interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
@@ -102,6 +102,7 @@ declare module 'http' {
102
102
  setHost?: boolean | undefined;
103
103
  // https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278
104
104
  createConnection?: ((options: ClientRequestArgs, oncreate: (err: Error, socket: Socket) => void) => Socket) | undefined;
105
+ lookup?: LookupFunction | undefined;
105
106
  }
106
107
 
107
108
  interface ServerOptions {
@@ -239,7 +240,7 @@ declare module 'http' {
239
240
  constructor();
240
241
 
241
242
  setTimeout(msecs: number, callback?: () => void): this;
242
- setHeader(name: string, value: number | string | ReadonlyArray<string>): void;
243
+ setHeader(name: string, value: number | string | ReadonlyArray<string>): this;
243
244
  getHeader(name: string): number | string | string[] | undefined;
244
245
  getHeaders(): OutgoingHttpHeaders;
245
246
  getHeaderNames(): string[];
@@ -281,6 +282,8 @@ declare module 'http' {
281
282
  aborted: boolean;
282
283
  host: string;
283
284
  protocol: string;
285
+ reusedSocket: boolean;
286
+ maxHeadersCount: number;
284
287
 
285
288
  constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void);
286
289
 
@@ -408,7 +411,7 @@ declare module 'http' {
408
411
  * Only valid for response obtained from http.ClientRequest.
409
412
  */
410
413
  statusMessage?: string | undefined;
411
- destroy(error?: Error): void;
414
+ destroy(error?: Error): this;
412
415
  }
413
416
 
414
417
  interface AgentOptions {
@@ -487,3 +490,6 @@ declare module 'http' {
487
490
  */
488
491
  const maxHeaderSize: number;
489
492
  }
493
+ declare module 'node:http' {
494
+ export * from 'http';
495
+ }
@@ -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/node-red/nr-monaco-build */
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 */
3
3
 
4
4
  declare module 'http2' {
5
5
  import EventEmitter = require('events');
@@ -597,7 +597,7 @@ declare module 'http2' {
597
597
  readonly socket: net.Socket | tls.TLSSocket;
598
598
  readonly stream: ServerHttp2Stream;
599
599
  readonly trailers: IncomingHttpHeaders;
600
- readonly url: string;
600
+ url: string;
601
601
 
602
602
  setTimeout(msecs: number, callback?: () => void): void;
603
603
  read(size?: number): Buffer | string | null;
@@ -663,9 +663,9 @@ declare module 'http2' {
663
663
  statusCode: number;
664
664
  statusMessage: '';
665
665
  addTrailers(trailers: OutgoingHttpHeaders): void;
666
- end(callback?: () => void): void;
667
- end(data: string | Uint8Array, callback?: () => void): void;
668
- end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void): void;
666
+ end(callback?: () => void): this;
667
+ end(data: string | Uint8Array, callback?: () => void): this;
668
+ end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void): this;
669
669
  getHeader(name: string): string;
670
670
  getHeaderNames(): string[];
671
671
  getHeaders(): OutgoingHttpHeaders;
@@ -959,3 +959,6 @@ declare module 'http2' {
959
959
  listener?: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void
960
960
  ): ClientHttp2Session;
961
961
  }
962
+ declare module 'node:http2' {
963
+ export * from 'http2';
964
+ }
@@ -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/node-red/nr-monaco-build */
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 */
3
3
 
4
4
  declare module 'https' {
5
5
  import { Duplex } from 'stream';
@@ -140,3 +140,6 @@ declare module 'https' {
140
140
  function get(url: string | URL, options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest;
141
141
  let globalAgent: Agent;
142
142
  }
143
+ declare module 'node:https' {
144
+ export * from 'https';
145
+ }
@@ -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/node-red/nr-monaco-build */
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 */
3
3
 
4
4
  declare module 'module' {
5
5
  import { URL } from 'url';
@@ -53,3 +53,7 @@ declare module 'module' {
53
53
  }
54
54
  export = Module;
55
55
  }
56
+ declare module 'node:module' {
57
+ import module = require('module');
58
+ export = module;
59
+ }
@@ -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/node-red/nr-monaco-build */
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 */
3
3
 
4
4
  declare module 'net' {
5
5
  import * as stream from 'stream';
@@ -95,9 +95,9 @@ declare module 'net' {
95
95
  readonly remotePort?: number | undefined;
96
96
 
97
97
  // Extended base methods
98
- end(cb?: () => void): void;
99
- end(buffer: Uint8Array | string, cb?: () => void): void;
100
- end(str: Uint8Array | string, encoding?: BufferEncoding, cb?: () => void): void;
98
+ end(cb?: () => void): this;
99
+ end(buffer: Uint8Array | string, cb?: () => void): this;
100
+ end(str: Uint8Array | string, encoding?: BufferEncoding, cb?: () => void): this;
101
101
 
102
102
  /**
103
103
  * events.EventEmitter
@@ -294,3 +294,6 @@ declare module 'net' {
294
294
  function isIPv4(input: string): boolean;
295
295
  function isIPv6(input: string): boolean;
296
296
  }
297
+ declare module 'node:net' {
298
+ export * from 'net';
299
+ }
@@ -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/node-red/nr-monaco-build */
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 */
3
3
 
4
4
  declare module 'os' {
5
5
  interface CpuInfo {
@@ -240,3 +240,6 @@ declare module 'os' {
240
240
  */
241
241
  function setPriority(pid: number, priority: number): void;
242
242
  }
243
+ declare module 'node:os' {
244
+ export * from 'os';
245
+ }
@@ -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/node-red/nr-monaco-build */
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 */
3
3
 
4
4
  declare module 'path' {
5
5
  namespace path {
@@ -154,3 +154,7 @@ declare module 'path' {
154
154
  const path: path.PlatformPath;
155
155
  export = path;
156
156
  }
157
+ declare module 'node:path' {
158
+ import path = require('path');
159
+ export = path;
160
+ }
@@ -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/node-red/nr-monaco-build */
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 */
3
3
 
4
4
  declare module 'perf_hooks' {
5
5
  import { AsyncResource } from 'async_hooks';
@@ -272,3 +272,6 @@ declare module 'perf_hooks' {
272
272
 
273
273
  function monitorEventLoopDelay(options?: EventLoopMonitorOptions): EventLoopDelayMonitor;
274
274
  }
275
+ declare module 'node:perf_hooks' {
276
+ export * from 'perf_hooks';
277
+ }
@@ -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/node-red/nr-monaco-build */
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 */
3
3
 
4
4
  declare module 'process' {
5
5
  import * as tty from 'tty';
@@ -123,7 +123,7 @@ declare module 'process' {
123
123
  /**
124
124
  * If true, a diagnostic report is generated when the process
125
125
  * receives the signal specified by process.report.signal.
126
- * @defaul false
126
+ * @default false
127
127
  */
128
128
  reportOnSignal: boolean;
129
129
 
@@ -410,3 +410,7 @@ declare module 'process' {
410
410
 
411
411
  export = process;
412
412
  }
413
+ declare module 'node:process' {
414
+ import process = require('process');
415
+ export = process;
416
+ }
@@ -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/node-red/nr-monaco-build */
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 */
3
3
 
4
4
  declare module 'querystring' {
5
5
  interface StringifyOptions {
@@ -29,3 +29,6 @@ declare module 'querystring' {
29
29
  function escape(str: string): string;
30
30
  function unescape(str: string): string;
31
31
  }
32
+ declare module 'node:querystring' {
33
+ export * from 'querystring';
34
+ }
@@ -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/node-red/nr-monaco-build */
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 */
3
3
 
4
4
  declare module 'readline' {
5
5
  import EventEmitter = require('events');
@@ -48,6 +48,7 @@ declare module 'readline' {
48
48
  resume(): this;
49
49
  close(): void;
50
50
  write(data: string | Buffer, key?: Key): void;
51
+ write(data: undefined | null | string | Buffer, key: Key): void;
51
52
 
52
53
  /**
53
54
  * Returns the real position of the cursor in relation to the input
@@ -171,3 +172,6 @@ declare module 'readline' {
171
172
  */
172
173
  function moveCursor(stream: NodeJS.WritableStream, dx: number, dy: number, callback?: () => void): boolean;
173
174
  }
175
+ declare module 'node:readline' {
176
+ export * from 'readline';
177
+ }
@@ -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/node-red/nr-monaco-build */
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 */
3
3
 
4
4
  declare module 'stream' {
5
5
  import EventEmitter = require('events');
@@ -48,7 +48,7 @@ declare module 'stream' {
48
48
  wrap(oldStream: NodeJS.ReadableStream): this;
49
49
  push(chunk: any, encoding?: BufferEncoding): boolean;
50
50
  _destroy(error: Error | null, callback: (error?: Error | null) => void): void;
51
- destroy(error?: Error): void;
51
+ destroy(error?: Error): this;
52
52
 
53
53
  /**
54
54
  * Event emitter
@@ -157,12 +157,12 @@ declare module 'stream' {
157
157
  write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean;
158
158
  write(chunk: any, encoding: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean;
159
159
  setDefaultEncoding(encoding: BufferEncoding): this;
160
- end(cb?: () => void): void;
161
- end(chunk: any, cb?: () => void): void;
162
- end(chunk: any, encoding: BufferEncoding, cb?: () => void): void;
160
+ end(cb?: () => void): this;
161
+ end(chunk: any, cb?: () => void): this;
162
+ end(chunk: any, encoding: BufferEncoding, cb?: () => void): this;
163
163
  cork(): void;
164
164
  uncork(): void;
165
- destroy(error?: Error): void;
165
+ destroy(error?: Error): this;
166
166
 
167
167
  /**
168
168
  * Event emitter
@@ -263,9 +263,9 @@ declare module 'stream' {
263
263
  write(chunk: any, encoding?: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean;
264
264
  write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean;
265
265
  setDefaultEncoding(encoding: BufferEncoding): this;
266
- end(cb?: () => void): void;
267
- end(chunk: any, cb?: () => void): void;
268
- end(chunk: any, encoding?: BufferEncoding, cb?: () => void): void;
266
+ end(cb?: () => void): this;
267
+ end(chunk: any, cb?: () => void): this;
268
+ end(chunk: any, encoding?: BufferEncoding, cb?: () => void): this;
269
269
  cork(): void;
270
270
  uncork(): void;
271
271
  }
@@ -356,3 +356,7 @@ declare module 'stream' {
356
356
 
357
357
  export = internal;
358
358
  }
359
+ declare module 'node:stream' {
360
+ import stream = require('stream');
361
+ export = stream;
362
+ }
@@ -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/node-red/nr-monaco-build */
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 */
3
3
 
4
4
  declare module 'string_decoder' {
5
5
  class StringDecoder {
@@ -8,3 +8,6 @@ declare module 'string_decoder' {
8
8
  end(buffer?: Buffer): string;
9
9
  }
10
10
  }
11
+ declare module 'node:string_decoder' {
12
+ export * from 'string_decoder';
13
+ }
@@ -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/node-red/nr-monaco-build */
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 */
3
3
 
4
4
  declare module 'timers' {
5
5
  function setTimeout(callback: (...args: any[]) => void, ms?: number, ...args: any[]): NodeJS.Timeout;
@@ -17,3 +17,6 @@ declare module 'timers' {
17
17
  }
18
18
  function clearImmediate(immediateId: NodeJS.Immediate): void;
19
19
  }
20
+ declare module 'node:timers' {
21
+ export * from 'timers';
22
+ }
@@ -1,8 +1,9 @@
1
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 */
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 */
3
3
 
4
4
  declare module 'tls' {
5
5
  import * as net from 'net';
6
+ import * as stream from 'stream';
6
7
 
7
8
  const CLIENT_RENEG_LIMIT: number;
8
9
  const CLIENT_RENEG_WINDOW: number;
@@ -444,7 +445,7 @@ declare module 'tls' {
444
445
  host?: string | undefined;
445
446
  port?: number | undefined;
446
447
  path?: string | undefined; // Creates unix socket connection to path. If this option is specified, `host` and `port` are ignored.
447
- socket?: net.Socket | undefined; // Establish secure connection on a given socket rather than creating a new socket
448
+ socket?: stream.Duplex | undefined; // Establish secure connection on a given socket rather than creating a new socket
448
449
  checkServerIdentity?: typeof checkServerIdentity | undefined;
449
450
  servername?: string | undefined; // SNI TLS Extension
450
451
  session?: Buffer | undefined;
@@ -781,3 +782,6 @@ declare module 'tls' {
781
782
  */
782
783
  const rootCertificates: ReadonlyArray<string>;
783
784
  }
785
+ declare module 'node:tls' {
786
+ export * from 'tls';
787
+ }
@@ -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/node-red/nr-monaco-build */
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 */
3
3
 
4
4
  declare module 'trace_events' {
5
5
  /**
@@ -62,3 +62,6 @@ declare module 'trace_events' {
62
62
  */
63
63
  function getEnabledCategories(): string | undefined;
64
64
  }
65
+ declare module 'node:trace_events' {
66
+ export * from 'trace_events';
67
+ }
@@ -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/node-red/nr-monaco-build */
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 */
3
3
 
4
4
  declare module 'tty' {
5
5
  import * as net from 'net';
@@ -67,3 +67,6 @@ declare module 'tty' {
67
67
  isTTY: boolean;
68
68
  }
69
69
  }
70
+ declare module 'node:tty' {
71
+ export * from 'tty';
72
+ }
@@ -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/node-red/nr-monaco-build */
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 */
3
3
 
4
4
  declare module 'url' {
5
5
  import { ParsedUrlQuery, ParsedUrlQueryInput } from 'querystring';
@@ -105,7 +105,7 @@ declare module 'url' {
105
105
  append(name: string, value: string): void;
106
106
  delete(name: string): void;
107
107
  entries(): IterableIterator<[string, string]>;
108
- forEach(callback: (value: string, name: string, searchParams: this) => void): void;
108
+ forEach(callback: (value: string, name: string, searchParams: URLSearchParams) => void, thisArg?: any): void;
109
109
  get(name: string): string | null;
110
110
  getAll(name: string): string[];
111
111
  has(name: string): boolean;
@@ -116,4 +116,37 @@ declare module 'url' {
116
116
  values(): IterableIterator<string>;
117
117
  [Symbol.iterator](): IterableIterator<[string, string]>;
118
118
  }
119
+
120
+ import { URL as _URL, URLSearchParams as _URLSearchParams } from 'url';
121
+ global {
122
+ interface URLSearchParams extends _URLSearchParams {}
123
+ interface URL extends _URL {}
124
+ interface Global {
125
+ URL: typeof _URL;
126
+ URLSearchParams: typeof _URLSearchParams;
127
+ }
128
+ /**
129
+ * `URL` class is a global reference for `require('url').URL`
130
+ * https://nodejs.org/api/url.html#the-whatwg-url-api
131
+ * @since v10.0.0
132
+ */
133
+ var URL:
134
+ // For compatibility with "dom" and "webworker" URL declarations
135
+ typeof globalThis extends { onmessage: any, URL: infer URL }
136
+ ? URL
137
+ : typeof _URL;
138
+ /**
139
+ * `URLSearchParams` class is a global reference for `require('url').URLSearchParams`.
140
+ * https://nodejs.org/api/url.html#class-urlsearchparams
141
+ * @since v10.0.0
142
+ */
143
+ var URLSearchParams:
144
+ // For compatibility with "dom" and "webworker" URLSearchParams declarations
145
+ typeof globalThis extends { onmessage: any, URLSearchParams: infer URLSearchParams }
146
+ ? URLSearchParams
147
+ : typeof _URLSearchParams;
148
+ }
149
+ }
150
+ declare module 'node:url' {
151
+ export * from 'url';
119
152
  }