@node-red/editor-client 3.0.2 → 3.1.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 (127) hide show
  1. package/locales/de/editor.json +2 -0
  2. package/locales/de/infotips.json +0 -0
  3. package/locales/de/jsonata.json +0 -0
  4. package/locales/en-US/editor.json +37 -6
  5. package/locales/en-US/infotips.json +0 -0
  6. package/locales/en-US/jsonata.json +0 -0
  7. package/locales/fr/editor.json +1238 -0
  8. package/locales/fr/infotips.json +23 -0
  9. package/locales/fr/jsonata.json +274 -0
  10. package/locales/ja/editor.json +48 -9
  11. package/locales/ko/editor.json +233 -31
  12. package/locales/ko/infotips.json +0 -0
  13. package/locales/ko/jsonata.json +0 -0
  14. package/locales/pt-BR/editor.json +1208 -0
  15. package/locales/pt-BR/infotips.json +23 -0
  16. package/locales/pt-BR/jsonata.json +274 -0
  17. package/locales/ru/editor.json +2 -0
  18. package/locales/ru/infotips.json +0 -0
  19. package/locales/ru/jsonata.json +0 -0
  20. package/locales/zh-CN/editor.json +1175 -1049
  21. package/locales/zh-TW/editor.json +3 -0
  22. package/package.json +1 -1
  23. package/public/red/about +140 -0
  24. package/public/red/red.js +2699 -1397
  25. package/public/red/red.min.js +4 -3
  26. package/public/red/style.min.css +1 -1
  27. package/public/red/tours/3.0/images/context-menu.png +0 -0
  28. package/public/red/tours/3.0/welcome.js +155 -0
  29. package/public/red/tours/images/context-menu.png +0 -0
  30. package/public/red/tours/images/global-env-vars.png +0 -0
  31. package/public/red/tours/images/hiding-flows.png +0 -0
  32. package/public/red/tours/images/locking-flows.png +0 -0
  33. package/public/red/tours/images/mermaid.png +0 -0
  34. package/public/red/tours/images/node-help.png +0 -0
  35. package/public/red/tours/images/tab-changes.png +0 -0
  36. package/public/red/tours/welcome.js +111 -94
  37. package/public/types/node/assert/strict.d.ts +11 -0
  38. package/public/types/node/assert.d.ts +898 -64
  39. package/public/types/node/async_hooks.d.ts +362 -94
  40. package/public/types/node/buffer.d.ts +2158 -14
  41. package/public/types/node/child_process.d.ts +1109 -257
  42. package/public/types/node/cluster.d.ts +349 -200
  43. package/public/types/node/console.d.ts +313 -43
  44. package/public/types/node/crypto.d.ts +3329 -656
  45. package/public/types/node/dgram.d.ts +459 -58
  46. package/public/types/node/diagnostics_channel.d.ts +155 -0
  47. package/public/types/node/dns/promises.d.ts +371 -0
  48. package/public/types/node/dns.d.ts +532 -265
  49. package/public/types/node/domain.d.ts +159 -16
  50. package/public/types/node/events.d.ts +589 -30
  51. package/public/types/node/fs/promises.d.ts +1097 -0
  52. package/public/types/node/fs.d.ts +2484 -958
  53. package/public/types/node/globals.d.ts +43 -503
  54. package/public/types/node/http.d.ts +1156 -145
  55. package/public/types/node/http2.d.ts +1610 -470
  56. package/public/types/node/https.d.ts +462 -72
  57. package/public/types/node/module.d.ts +72 -13
  58. package/public/types/node/net.d.ts +663 -131
  59. package/public/types/node/os.d.ts +238 -25
  60. package/public/types/node/path.d.ts +57 -23
  61. package/public/types/node/perf_hooks.d.ts +424 -112
  62. package/public/types/node/process.d.ts +1261 -193
  63. package/public/types/node/querystring.d.ts +107 -7
  64. package/public/types/node/readline.d.ts +443 -74
  65. package/public/types/node/stream/consumers.d.ts +15 -0
  66. package/public/types/node/stream/promises.d.ts +45 -0
  67. package/public/types/node/stream/web.d.ts +395 -0
  68. package/public/types/node/stream.d.ts +1081 -177
  69. package/public/types/node/string_decoder.d.ts +57 -0
  70. package/public/types/node/test.d.ts +193 -0
  71. package/public/types/node/timers/promises.d.ts +96 -0
  72. package/public/types/node/timers.d.ts +87 -12
  73. package/public/types/node/tls.d.ts +457 -222
  74. package/public/types/node/trace_events.d.ts +107 -10
  75. package/public/types/node/tty.d.ts +158 -23
  76. package/public/types/node/url.d.ts +734 -28
  77. package/public/types/node/util.d.ts +1542 -164
  78. package/public/types/node/v8.d.ts +261 -73
  79. package/public/types/node/vm.d.ts +384 -32
  80. package/public/types/node/wasi.d.ts +92 -23
  81. package/public/types/node/worker_threads.d.ts +531 -123
  82. package/public/types/node/zlib.d.ts +216 -63
  83. package/public/types/node-red/func.d.ts +3 -0
  84. package/public/vendor/jquery/css/base/images/ui-icons_444444_256x240.png +0 -0
  85. package/public/vendor/jquery/css/base/images/ui-icons_555555_256x240.png +0 -0
  86. package/public/vendor/jquery/css/base/images/ui-icons_777620_256x240.png +0 -0
  87. package/public/vendor/jquery/css/base/images/ui-icons_777777_256x240.png +0 -0
  88. package/public/vendor/jquery/css/base/images/ui-icons_cc0000_256x240.png +0 -0
  89. package/public/vendor/jquery/css/base/images/ui-icons_ffffff_256x240.png +0 -0
  90. package/public/vendor/jquery/css/base/jquery-ui.min.css +4 -4
  91. package/public/vendor/mermaid/mermaid.min.js +1284 -0
  92. package/public/vendor/monaco/dist/{ade705761eb7e702770d.ttf → 7064e66c3890a12c47b4.ttf} +0 -0
  93. package/public/vendor/monaco/dist/css.worker.js +1 -1
  94. package/public/vendor/monaco/dist/css.worker.js.LICENSE.txt +1 -1
  95. package/public/vendor/monaco/dist/editor.js +1 -1
  96. package/public/vendor/monaco/dist/editor.js.LICENSE.txt +5 -1
  97. package/public/vendor/monaco/dist/editor.worker.js +1 -1
  98. package/public/vendor/monaco/dist/html.worker.js +1 -1
  99. package/public/vendor/monaco/dist/html.worker.js.LICENSE.txt +1 -1
  100. package/public/vendor/monaco/dist/json.worker.js +1 -1
  101. package/public/vendor/monaco/dist/json.worker.js.LICENSE.txt +1 -1
  102. package/public/vendor/monaco/dist/locale/cs.js +319 -71
  103. package/public/vendor/monaco/dist/locale/de.js +323 -75
  104. package/public/vendor/monaco/dist/locale/es.js +318 -70
  105. package/public/vendor/monaco/dist/locale/fr.js +327 -79
  106. package/public/vendor/monaco/dist/locale/it.js +325 -77
  107. package/public/vendor/monaco/dist/locale/ja.js +337 -89
  108. package/public/vendor/monaco/dist/locale/ko.js +324 -76
  109. package/public/vendor/monaco/dist/locale/pl.js +322 -74
  110. package/public/vendor/monaco/dist/locale/pt-br.js +321 -73
  111. package/public/vendor/monaco/dist/locale/qps-ploc.js +1580 -1332
  112. package/public/vendor/monaco/dist/locale/ru.js +324 -76
  113. package/public/vendor/monaco/dist/locale/tr.js +326 -78
  114. package/public/vendor/monaco/dist/locale/zh-hans.js +328 -80
  115. package/public/vendor/monaco/dist/locale/zh-hant.js +321 -73
  116. package/public/vendor/monaco/dist/theme/forge.json +236 -0
  117. package/public/vendor/monaco/dist/theme/github-dark.json +348 -0
  118. package/public/vendor/monaco/dist/theme/github-light.json +348 -0
  119. package/public/vendor/monaco/dist/theme/nord.json +93 -0
  120. package/public/vendor/monaco/dist/ts.worker.js +1 -1
  121. package/public/vendor/monaco/dist/ts.worker.js.LICENSE.txt +14 -6
  122. package/public/vendor/vendor.js +9 -15
  123. /package/public/red/tours/{images → 3.0/images}/continuous-search.png +0 -0
  124. /package/public/red/tours/{images → 3.0/images}/debug-path-tooltip.png +0 -0
  125. /package/public/red/tours/{images → 3.0/images}/junction-quick-add.png +0 -0
  126. /package/public/red/tours/{images → 3.0/images}/junction-slice.gif +0 -0
  127. /package/public/red/tours/{images → 3.0/images}/split-wire-with-links.gif +0 -0
@@ -1,28 +1,171 @@
1
1
 
2
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
+ /**
5
+ * **This module is pending deprecation.** Once a replacement API has been
6
+ * finalized, this module will be fully deprecated. Most developers should
7
+ * **not** have cause to use this module. Users who absolutely must have
8
+ * the functionality that domains provide may rely on it for the time being
9
+ * but should expect to have to migrate to a different solution
10
+ * in the future.
11
+ *
12
+ * Domains provide a way to handle multiple different IO operations as a
13
+ * single group. If any of the event emitters or callbacks registered to a
14
+ * domain emit an `'error'` event, or throw an error, then the domain object
15
+ * will be notified, rather than losing the context of the error in the`process.on('uncaughtException')` handler, or causing the program to
16
+ * exit immediately with an error code.
17
+ * @deprecated Since v1.4.2 - Deprecated
18
+ * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/domain.js)
19
+ */
4
20
  declare module 'domain' {
5
- import EventEmitter = require('events');
6
-
7
- global {
8
- namespace NodeJS {
9
- interface Domain extends EventEmitter {
10
- run<T>(fn: (...args: any[]) => T, ...args: any[]): T;
11
- add(emitter: EventEmitter | Timer): void;
12
- remove(emitter: EventEmitter | Timer): void;
13
- bind<T extends Function>(cb: T): T;
14
- intercept<T extends Function>(cb: T): T;
15
- }
16
- }
17
- }
18
-
19
- interface Domain extends NodeJS.Domain {}
21
+ import EventEmitter = require('node:events');
22
+ /**
23
+ * The `Domain` class encapsulates the functionality of routing errors and
24
+ * uncaught exceptions to the active `Domain` object.
25
+ *
26
+ * To handle the errors that it catches, listen to its `'error'` event.
27
+ */
20
28
  class Domain extends EventEmitter {
29
+ /**
30
+ * An array of timers and event emitters that have been explicitly added
31
+ * to the domain.
32
+ */
21
33
  members: Array<EventEmitter | NodeJS.Timer>;
34
+ /**
35
+ * The `enter()` method is plumbing used by the `run()`, `bind()`, and`intercept()` methods to set the active domain. It sets `domain.active` and`process.domain` to the domain, and implicitly
36
+ * pushes the domain onto the domain
37
+ * stack managed by the domain module (see {@link exit} for details on the
38
+ * domain stack). The call to `enter()` delimits the beginning of a chain of
39
+ * asynchronous calls and I/O operations bound to a domain.
40
+ *
41
+ * Calling `enter()` changes only the active domain, and does not alter the domain
42
+ * itself. `enter()` and `exit()` can be called an arbitrary number of times on a
43
+ * single domain.
44
+ */
22
45
  enter(): void;
46
+ /**
47
+ * The `exit()` method exits the current domain, popping it off the domain stack.
48
+ * Any time execution is going to switch to the context of a different chain of
49
+ * asynchronous calls, it's important to ensure that the current domain is exited.
50
+ * The call to `exit()` delimits either the end of or an interruption to the chain
51
+ * of asynchronous calls and I/O operations bound to a domain.
52
+ *
53
+ * If there are multiple, nested domains bound to the current execution context,`exit()` will exit any domains nested within this domain.
54
+ *
55
+ * Calling `exit()` changes only the active domain, and does not alter the domain
56
+ * itself. `enter()` and `exit()` can be called an arbitrary number of times on a
57
+ * single domain.
58
+ */
23
59
  exit(): void;
60
+ /**
61
+ * Run the supplied function in the context of the domain, implicitly
62
+ * binding all event emitters, timers, and lowlevel requests that are
63
+ * created in that context. Optionally, arguments can be passed to
64
+ * the function.
65
+ *
66
+ * This is the most basic way to use a domain.
67
+ *
68
+ * ```js
69
+ * const domain = require('domain');
70
+ * const fs = require('fs');
71
+ * const d = domain.create();
72
+ * d.on('error', (er) => {
73
+ * console.error('Caught error!', er);
74
+ * });
75
+ * d.run(() => {
76
+ * process.nextTick(() => {
77
+ * setTimeout(() => { // Simulating some various async stuff
78
+ * fs.open('non-existent file', 'r', (er, fd) => {
79
+ * if (er) throw er;
80
+ * // proceed...
81
+ * });
82
+ * }, 100);
83
+ * });
84
+ * });
85
+ * ```
86
+ *
87
+ * In this example, the `d.on('error')` handler will be triggered, rather
88
+ * than crashing the program.
89
+ */
90
+ run<T>(fn: (...args: any[]) => T, ...args: any[]): T;
91
+ /**
92
+ * Explicitly adds an emitter to the domain. If any event handlers called by
93
+ * the emitter throw an error, or if the emitter emits an `'error'` event, it
94
+ * will be routed to the domain's `'error'` event, just like with implicit
95
+ * binding.
96
+ *
97
+ * This also works with timers that are returned from `setInterval()` and `setTimeout()`. If their callback function throws, it will be caught by
98
+ * the domain `'error'` handler.
99
+ *
100
+ * If the Timer or `EventEmitter` was already bound to a domain, it is removed
101
+ * from that one, and bound to this one instead.
102
+ * @param emitter emitter or timer to be added to the domain
103
+ */
104
+ add(emitter: EventEmitter | NodeJS.Timer): void;
105
+ /**
106
+ * The opposite of {@link add}. Removes domain handling from the
107
+ * specified emitter.
108
+ * @param emitter emitter or timer to be removed from the domain
109
+ */
110
+ remove(emitter: EventEmitter | NodeJS.Timer): void;
111
+ /**
112
+ * The returned function will be a wrapper around the supplied callback
113
+ * function. When the returned function is called, any errors that are
114
+ * thrown will be routed to the domain's `'error'` event.
115
+ *
116
+ * ```js
117
+ * const d = domain.create();
118
+ *
119
+ * function readSomeFile(filename, cb) {
120
+ * fs.readFile(filename, 'utf8', d.bind((er, data) => {
121
+ * // If this throws, it will also be passed to the domain.
122
+ * return cb(er, data ? JSON.parse(data) : null);
123
+ * }));
124
+ * }
125
+ *
126
+ * d.on('error', (er) => {
127
+ * // An error occurred somewhere. If we throw it now, it will crash the program
128
+ * // with the normal line number and stack message.
129
+ * });
130
+ * ```
131
+ * @param callback The callback function
132
+ * @return The bound function
133
+ */
134
+ bind<T extends Function>(callback: T): T;
135
+ /**
136
+ * This method is almost identical to {@link bind}. However, in
137
+ * addition to catching thrown errors, it will also intercept `Error` objects sent as the first argument to the function.
138
+ *
139
+ * In this way, the common `if (err) return callback(err);` pattern can be replaced
140
+ * with a single error handler in a single place.
141
+ *
142
+ * ```js
143
+ * const d = domain.create();
144
+ *
145
+ * function readSomeFile(filename, cb) {
146
+ * fs.readFile(filename, 'utf8', d.intercept((data) => {
147
+ * // Note, the first argument is never passed to the
148
+ * // callback since it is assumed to be the 'Error' argument
149
+ * // and thus intercepted by the domain.
150
+ *
151
+ * // If this throws, it will also be passed to the domain
152
+ * // so the error-handling logic can be moved to the 'error'
153
+ * // event on the domain instead of being repeated throughout
154
+ * // the program.
155
+ * return cb(null, JSON.parse(data));
156
+ * }));
157
+ * }
158
+ *
159
+ * d.on('error', (er) => {
160
+ * // An error occurred somewhere. If we throw it now, it will crash the program
161
+ * // with the normal line number and stack message.
162
+ * });
163
+ * ```
164
+ * @param callback The callback function
165
+ * @return The intercepted function
166
+ */
167
+ intercept<T extends Function>(callback: T): T;
24
168
  }
25
-
26
169
  function create(): Domain;
27
170
  }
28
171
  declare module 'node:domain' {