@node-red/editor-client 2.0.4 → 2.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 (77) hide show
  1. package/locales/en-US/editor.json +37 -7
  2. package/locales/ko/editor.json +1 -1
  3. package/package.json +2 -2
  4. package/public/red/about +109 -0
  5. package/public/red/images/node-red-256.svg +1 -0
  6. package/public/red/keymap.json +13 -2
  7. package/public/red/red.js +6122 -3663
  8. package/public/red/red.min.js +1 -1
  9. package/public/red/style.min.css +2 -2
  10. package/public/red/tours/first-flow.js +80 -0
  11. package/public/red/tours/welcome.js +135 -0
  12. package/public/tours/first-flow.js +82 -0
  13. package/public/types/node/assert.d.ts +127 -0
  14. package/public/types/node/async_hooks.d.ts +229 -0
  15. package/public/types/node/buffer.d.ts +25 -1
  16. package/public/types/node/child_process.d.ts +514 -6
  17. package/public/types/node/cluster.d.ts +265 -0
  18. package/public/types/node/console.d.ts +136 -1
  19. package/public/types/node/crypto.d.ts +1189 -1
  20. package/public/types/node/dgram.d.ts +144 -1
  21. package/public/types/node/dns.d.ts +383 -10
  22. package/public/types/node/domain.d.ts +27 -1
  23. package/public/types/node/events.d.ts +81 -1
  24. package/public/types/node/fs.d.ts +2273 -1
  25. package/public/types/node/globals.d.ts +616 -1
  26. package/public/types/node/http.d.ts +489 -1
  27. package/public/types/node/http2.d.ts +961 -0
  28. package/public/types/node/https.d.ts +142 -0
  29. package/public/types/node/module.d.ts +55 -0
  30. package/public/types/node/net.d.ts +296 -1
  31. package/public/types/node/os.d.ts +242 -1
  32. package/public/types/node/path.d.ts +156 -1
  33. package/public/types/node/perf_hooks.d.ts +274 -0
  34. package/public/types/node/process.d.ts +412 -1
  35. package/public/types/node/querystring.d.ts +31 -1
  36. package/public/types/node/readline.d.ts +173 -0
  37. package/public/types/node/stream.d.ts +358 -0
  38. package/public/types/node/string_decoder.d.ts +10 -0
  39. package/public/types/node/timers.d.ts +19 -0
  40. package/public/types/node/tls.d.ts +783 -0
  41. package/public/types/node/trace_events.d.ts +64 -0
  42. package/public/types/node/tty.d.ts +69 -0
  43. package/public/types/node/url.d.ts +119 -1
  44. package/public/types/node/util.d.ts +210 -0
  45. package/public/types/node/v8.d.ts +190 -0
  46. package/public/types/node/vm.d.ts +155 -0
  47. package/public/types/node/wasi.d.ts +89 -0
  48. package/public/types/node/worker_threads.d.ts +241 -0
  49. package/public/types/node/zlib.d.ts +364 -0
  50. package/public/types/node-red/func.d.ts +1 -1
  51. package/public/types/node-red/util.d.ts +1 -1
  52. package/public/vendor/ace/worker-jsonata.js +1 -1
  53. package/public/vendor/monaco/dist/ThirdPartyNotices.txt +192 -192
  54. package/public/vendor/monaco/dist/css.worker.js +1 -1
  55. package/public/vendor/monaco/dist/editor.js +2 -2
  56. package/public/vendor/monaco/dist/editor.worker.js +1 -1
  57. package/public/vendor/monaco/dist/html.worker.js +1 -1
  58. package/public/vendor/monaco/dist/json.worker.js +1 -1
  59. package/public/vendor/monaco/dist/locale/cs.js +44 -10
  60. package/public/vendor/monaco/dist/locale/de.js +46 -12
  61. package/public/vendor/monaco/dist/locale/es.js +46 -12
  62. package/public/vendor/monaco/dist/locale/fr.js +43 -9
  63. package/public/vendor/monaco/dist/locale/it.js +45 -11
  64. package/public/vendor/monaco/dist/locale/ja.js +45 -11
  65. package/public/vendor/monaco/dist/locale/ko.js +44 -10
  66. package/public/vendor/monaco/dist/locale/pl.js +42 -8
  67. package/public/vendor/monaco/dist/locale/pt-br.js +49 -15
  68. package/public/vendor/monaco/dist/locale/qps-ploc.js +1445 -0
  69. package/public/vendor/monaco/dist/locale/ru.js +48 -14
  70. package/public/vendor/monaco/dist/locale/tr.js +49 -15
  71. package/public/vendor/monaco/dist/locale/zh-hans.js +48 -14
  72. package/public/vendor/monaco/dist/locale/zh-hant.js +45 -11
  73. package/public/vendor/monaco/dist/theme/monoindustrial.json +228 -0
  74. package/public/vendor/monaco/dist/theme/solarized-dark.json +1082 -0
  75. package/public/vendor/monaco/dist/ts.worker.js +2 -2
  76. package/public/vendor/vendor.js +4 -4
  77. package/templates/index.mst +5 -1
@@ -1 +1,412 @@
1
- declare module'node:process'{export=process;}declare module'process'{import*as tty from'node:tty';global{var process:NodeJS.Process;namespace NodeJS{interface ReadStream extends tty.ReadStream{}interface WriteStream extends tty.WriteStream{}interface MemoryUsage{rss:number;heapTotal:number;heapUsed:number;external:number;arrayBuffers:number;}interface CpuUsage{user:number;system:number;}interface ProcessRelease{name:string;sourceUrl?:string;headersUrl?:string;libUrl?:string;lts?:string;}interface ProcessVersions extends Dict<string>{http_parser:string;node:string;v8:string;ares:string;uv:string;zlib:string;modules:string;openssl:string;}type Platform='aix'|'android'|'darwin'|'freebsd'|'linux'|'openbsd'|'sunos'|'win32'|'cygwin'|'netbsd';type Signals="SIGABRT"|"SIGALRM"|"SIGBUS"|"SIGCHLD"|"SIGCONT"|"SIGFPE"|"SIGHUP"|"SIGILL"|"SIGINT"|"SIGIO"|"SIGIOT"|"SIGKILL"|"SIGPIPE"|"SIGPOLL"|"SIGPROF"|"SIGPWR"|"SIGQUIT"|"SIGSEGV"|"SIGSTKFLT"|"SIGSTOP"|"SIGSYS"|"SIGTERM"|"SIGTRAP"|"SIGTSTP"|"SIGTTIN"|"SIGTTOU"|"SIGUNUSED"|"SIGURG"|"SIGUSR1"|"SIGUSR2"|"SIGVTALRM"|"SIGWINCH"|"SIGXCPU"|"SIGXFSZ"|"SIGBREAK"|"SIGLOST"|"SIGINFO";type MultipleResolveType='resolve'|'reject';type BeforeExitListener=(code:number)=>void;type DisconnectListener=()=>void;type ExitListener=(code:number)=>void;type RejectionHandledListener=(promise:Promise<any>)=>void;type UncaughtExceptionListener=(error:Error)=>void;type UnhandledRejectionListener=(reason:{}|null|undefined,promise:Promise<any>)=>void;type WarningListener=(warning:Error)=>void;type MessageListener=(message:any,sendHandle:any)=>void;type SignalsListener=(signal:Signals)=>void;type NewListenerListener=(type:string|symbol,listener:(...args:any[])=>void)=>void;type RemoveListenerListener=(type:string|symbol,listener:(...args:any[])=>void)=>void;type MultipleResolveListener=(type:MultipleResolveType,promise:Promise<any>,value:any)=>void;interface Socket extends ReadWriteStream{isTTY?:true;}interface ProcessEnv extends Dict<string>{}interface HRTime{(time?:[number,number]):[number,number];bigint():bigint;}interface ProcessReport{directory:string;filename:string;getReport(err?:Error):string;reportOnFatalError:boolean;reportOnSignal:boolean;reportOnUncaughtException:boolean;signal:Signals;writeReport(fileName?:string):string;writeReport(error?:Error):string;writeReport(fileName?:string,err?:Error):string;}interface ResourceUsage{fsRead:number;fsWrite:number;involuntaryContextSwitches:number;ipcReceived:number;ipcSent:number;majorPageFault:number;maxRSS:number;minorPageFault:number;sharedMemorySize:number;signalsCount:number;swappedOut:number;systemCPUTime:number;unsharedDataSize:number;unsharedStackSize:number;userCPUTime:number;voluntaryContextSwitches:number;}interface Process extends EventEmitter{stdout:WriteStream&{fd:1;};stderr:WriteStream&{fd:2;};stdin:ReadStream&{fd:0;};openStdin():Socket;argv:string[];argv0:string;execArgv:string[];execPath:string;abort():never;chdir(directory:string):void;cwd():string;debugPort:number;emitWarning(warning:string|Error,name?:string,ctor?:Function):void;env:ProcessEnv;exit(code?:number):never;exitCode?:number;getgid():number;setgid(id:number|string):void;getuid():number;setuid(id:number|string):void;geteuid():number;seteuid(id:number|string):void;getegid():number;setegid(id:number|string):void;getgroups():number[];setgroups(groups:ReadonlyArray<string|number>):void;setUncaughtExceptionCaptureCallback(cb:((err:Error)=>void)|null):void;hasUncaughtExceptionCaptureCallback():boolean;version:string;versions:ProcessVersions;config:{target_defaults:{cflags:any[];default_configuration:string;defines:string[];include_dirs:string[];libraries:string[];};variables:{clang:number;host_arch:string;node_install_npm:boolean;node_install_waf:boolean;node_prefix:string;node_shared_openssl:boolean;node_shared_v8:boolean;node_shared_zlib:boolean;node_use_dtrace:boolean;node_use_etw:boolean;node_use_openssl:boolean;target_arch:string;v8_no_strict_aliasing:number;v8_use_snapshot:boolean;visibility:string;};};kill(pid:number,signal?:string|number):true;pid:number;ppid:number;title:string;arch:string;platform:Platform;mainModule?:Module;memoryUsage():MemoryUsage;cpuUsage(previousValue?:CpuUsage):CpuUsage;nextTick(callback:Function,...args:any[]):void;release:ProcessRelease;features:{inspector:boolean;debug:boolean;uv:boolean;ipv6:boolean;tls_alpn:boolean;tls_sni:boolean;tls_ocsp:boolean;tls:boolean;};umask():number;umask(mask:string|number):number;uptime():number;hrtime:HRTime;domain:Domain;send?(message:any,sendHandle?:any,options?:{swallowErrors?:boolean},callback?:(error:Error|null)=>void):boolean;disconnect():void;connected:boolean;allowedNodeEnvironmentFlags:ReadonlySet<string>;report?:ProcessReport;resourceUsage():ResourceUsage;traceDeprecation:boolean;addListener(event:"beforeExit",listener:BeforeExitListener):this;addListener(event:"disconnect",listener:DisconnectListener):this;addListener(event:"exit",listener:ExitListener):this;addListener(event:"rejectionHandled",listener:RejectionHandledListener):this;addListener(event:"uncaughtException",listener:UncaughtExceptionListener):this;addListener(event:"uncaughtExceptionMonitor",listener:UncaughtExceptionListener):this;addListener(event:"unhandledRejection",listener:UnhandledRejectionListener):this;addListener(event:"warning",listener:WarningListener):this;addListener(event:"message",listener:MessageListener):this;addListener(event:Signals,listener:SignalsListener):this;addListener(event:"newListener",listener:NewListenerListener):this;addListener(event:"removeListener",listener:RemoveListenerListener):this;addListener(event:"multipleResolves",listener:MultipleResolveListener):this;emit(event:"beforeExit",code:number):boolean;emit(event:"disconnect"):boolean;emit(event:"exit",code:number):boolean;emit(event:"rejectionHandled",promise:Promise<any>):boolean;emit(event:"uncaughtException",error:Error):boolean;emit(event:"uncaughtExceptionMonitor",error:Error):boolean;emit(event:"unhandledRejection",reason:any,promise:Promise<any>):boolean;emit(event:"warning",warning:Error):boolean;emit(event:"message",message:any,sendHandle:any):this;emit(event:Signals,signal:Signals):boolean;emit(event:"newListener",eventName:string|symbol,listener:(...args:any[])=>void):this;emit(event:"removeListener",eventName:string,listener:(...args:any[])=>void):this;emit(event:"multipleResolves",listener:MultipleResolveListener):this;on(event:"beforeExit",listener:BeforeExitListener):this;on(event:"disconnect",listener:DisconnectListener):this;on(event:"exit",listener:ExitListener):this;on(event:"rejectionHandled",listener:RejectionHandledListener):this;on(event:"uncaughtException",listener:UncaughtExceptionListener):this;on(event:"uncaughtExceptionMonitor",listener:UncaughtExceptionListener):this;on(event:"unhandledRejection",listener:UnhandledRejectionListener):this;on(event:"warning",listener:WarningListener):this;on(event:"message",listener:MessageListener):this;on(event:Signals,listener:SignalsListener):this;on(event:"newListener",listener:NewListenerListener):this;on(event:"removeListener",listener:RemoveListenerListener):this;on(event:"multipleResolves",listener:MultipleResolveListener):this;on(event:string|symbol,listener:(...args:any[])=>void):this;once(event:"beforeExit",listener:BeforeExitListener):this;once(event:"disconnect",listener:DisconnectListener):this;once(event:"exit",listener:ExitListener):this;once(event:"rejectionHandled",listener:RejectionHandledListener):this;once(event:"uncaughtException",listener:UncaughtExceptionListener):this;once(event:"uncaughtExceptionMonitor",listener:UncaughtExceptionListener):this;once(event:"unhandledRejection",listener:UnhandledRejectionListener):this;once(event:"warning",listener:WarningListener):this;once(event:"message",listener:MessageListener):this;once(event:Signals,listener:SignalsListener):this;once(event:"newListener",listener:NewListenerListener):this;once(event:"removeListener",listener:RemoveListenerListener):this;once(event:"multipleResolves",listener:MultipleResolveListener):this;prependListener(event:"beforeExit",listener:BeforeExitListener):this;prependListener(event:"disconnect",listener:DisconnectListener):this;prependListener(event:"exit",listener:ExitListener):this;prependListener(event:"rejectionHandled",listener:RejectionHandledListener):this;prependListener(event:"uncaughtException",listener:UncaughtExceptionListener):this;prependListener(event:"uncaughtExceptionMonitor",listener:UncaughtExceptionListener):this;prependListener(event:"unhandledRejection",listener:UnhandledRejectionListener):this;prependListener(event:"warning",listener:WarningListener):this;prependListener(event:"message",listener:MessageListener):this;prependListener(event:Signals,listener:SignalsListener):this;prependListener(event:"newListener",listener:NewListenerListener):this;prependListener(event:"removeListener",listener:RemoveListenerListener):this;prependListener(event:"multipleResolves",listener:MultipleResolveListener):this;prependOnceListener(event:"beforeExit",listener:BeforeExitListener):this;prependOnceListener(event:"disconnect",listener:DisconnectListener):this;prependOnceListener(event:"exit",listener:ExitListener):this;prependOnceListener(event:"rejectionHandled",listener:RejectionHandledListener):this;prependOnceListener(event:"uncaughtException",listener:UncaughtExceptionListener):this;prependOnceListener(event:"uncaughtExceptionMonitor",listener:UncaughtExceptionListener):this;prependOnceListener(event:"unhandledRejection",listener:UnhandledRejectionListener):this;prependOnceListener(event:"warning",listener:WarningListener):this;prependOnceListener(event:"message",listener:MessageListener):this;prependOnceListener(event:Signals,listener:SignalsListener):this;prependOnceListener(event:"newListener",listener:NewListenerListener):this;prependOnceListener(event:"removeListener",listener:RemoveListenerListener):this;prependOnceListener(event:"multipleResolves",listener:MultipleResolveListener):this;listeners(event:"beforeExit"):BeforeExitListener[];listeners(event:"disconnect"):DisconnectListener[];listeners(event:"exit"):ExitListener[];listeners(event:"rejectionHandled"):RejectionHandledListener[];listeners(event:"uncaughtException"):UncaughtExceptionListener[];listeners(event:"uncaughtExceptionMonitor"):UncaughtExceptionListener[];listeners(event:"unhandledRejection"):UnhandledRejectionListener[];listeners(event:"warning"):WarningListener[];listeners(event:"message"):MessageListener[];listeners(event:Signals):SignalsListener[];listeners(event:"newListener"):NewListenerListener[];listeners(event:"removeListener"):RemoveListenerListener[];listeners(event:"multipleResolves"):MultipleResolveListener[];}interface Global{process:Process;}}}export=process;}
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 'process' {
5
+ import * as tty from 'tty';
6
+
7
+ global {
8
+ var process: NodeJS.Process;
9
+
10
+ namespace NodeJS {
11
+ // this namespace merge is here because these are specifically used
12
+ // as the type for process.stdin, process.stdout, and process.stderr.
13
+ // they can't live in tty.d.ts because we need to disambiguate the imported name.
14
+ interface ReadStream extends tty.ReadStream {}
15
+ interface WriteStream extends tty.WriteStream {}
16
+
17
+ interface MemoryUsage {
18
+ rss: number;
19
+ heapTotal: number;
20
+ heapUsed: number;
21
+ external: number;
22
+ arrayBuffers: number;
23
+ }
24
+
25
+ interface CpuUsage {
26
+ user: number;
27
+ system: number;
28
+ }
29
+
30
+ interface ProcessRelease {
31
+ name: string;
32
+ sourceUrl?: string | undefined;
33
+ headersUrl?: string | undefined;
34
+ libUrl?: string | undefined;
35
+ lts?: string | undefined;
36
+ }
37
+
38
+ interface ProcessVersions extends Dict<string> {
39
+ http_parser: string;
40
+ node: string;
41
+ v8: string;
42
+ ares: string;
43
+ uv: string;
44
+ zlib: string;
45
+ modules: string;
46
+ openssl: string;
47
+ }
48
+
49
+ type Platform = 'aix'
50
+ | 'android'
51
+ | 'darwin'
52
+ | 'freebsd'
53
+ | 'linux'
54
+ | 'openbsd'
55
+ | 'sunos'
56
+ | 'win32'
57
+ | 'cygwin'
58
+ | 'netbsd';
59
+
60
+ type Signals =
61
+ "SIGABRT" | "SIGALRM" | "SIGBUS" | "SIGCHLD" | "SIGCONT" | "SIGFPE" | "SIGHUP" | "SIGILL" | "SIGINT" | "SIGIO" |
62
+ "SIGIOT" | "SIGKILL" | "SIGPIPE" | "SIGPOLL" | "SIGPROF" | "SIGPWR" | "SIGQUIT" | "SIGSEGV" | "SIGSTKFLT" |
63
+ "SIGSTOP" | "SIGSYS" | "SIGTERM" | "SIGTRAP" | "SIGTSTP" | "SIGTTIN" | "SIGTTOU" | "SIGUNUSED" | "SIGURG" |
64
+ "SIGUSR1" | "SIGUSR2" | "SIGVTALRM" | "SIGWINCH" | "SIGXCPU" | "SIGXFSZ" | "SIGBREAK" | "SIGLOST" | "SIGINFO";
65
+
66
+ type UncaughtExceptionOrigin = 'uncaughtException' | 'unhandledRejection';
67
+ type MultipleResolveType = 'resolve' | 'reject';
68
+
69
+ type BeforeExitListener = (code: number) => void;
70
+ type DisconnectListener = () => void;
71
+ type ExitListener = (code: number) => void;
72
+ type RejectionHandledListener = (promise: Promise<any>) => void;
73
+ type UncaughtExceptionListener = (error: Error, origin: UncaughtExceptionOrigin) => void;
74
+ type UnhandledRejectionListener = (reason: {} | null | undefined, promise: Promise<any>) => void;
75
+ type WarningListener = (warning: Error) => void;
76
+ type MessageListener = (message: any, sendHandle: any) => void;
77
+ type SignalsListener = (signal: Signals) => void;
78
+ type NewListenerListener = (type: string | symbol, listener: (...args: any[]) => void) => void;
79
+ type RemoveListenerListener = (type: string | symbol, listener: (...args: any[]) => void) => void;
80
+ type MultipleResolveListener = (type: MultipleResolveType, promise: Promise<any>, value: any) => void;
81
+
82
+ interface Socket extends ReadWriteStream {
83
+ isTTY?: true | undefined;
84
+ }
85
+
86
+ // Alias for compatibility
87
+ interface ProcessEnv extends Dict<string> {}
88
+
89
+ interface HRTime {
90
+ (time?: [number, number]): [number, number];
91
+ bigint(): bigint;
92
+ }
93
+
94
+ interface ProcessReport {
95
+ /**
96
+ * Directory where the report is written.
97
+ * working directory of the Node.js process.
98
+ * @default '' indicating that reports are written to the current
99
+ */
100
+ directory: string;
101
+
102
+ /**
103
+ * Filename where the report is written.
104
+ * The default value is the empty string.
105
+ * @default '' the output filename will be comprised of a timestamp,
106
+ * PID, and sequence number.
107
+ */
108
+ filename: string;
109
+
110
+ /**
111
+ * Returns a JSON-formatted diagnostic report for the running process.
112
+ * The report's JavaScript stack trace is taken from err, if present.
113
+ */
114
+ getReport(err?: Error): string;
115
+
116
+ /**
117
+ * If true, a diagnostic report is generated on fatal errors,
118
+ * such as out of memory errors or failed C++ assertions.
119
+ * @default false
120
+ */
121
+ reportOnFatalError: boolean;
122
+
123
+ /**
124
+ * If true, a diagnostic report is generated when the process
125
+ * receives the signal specified by process.report.signal.
126
+ * @defaul false
127
+ */
128
+ reportOnSignal: boolean;
129
+
130
+ /**
131
+ * If true, a diagnostic report is generated on uncaught exception.
132
+ * @default false
133
+ */
134
+ reportOnUncaughtException: boolean;
135
+
136
+ /**
137
+ * The signal used to trigger the creation of a diagnostic report.
138
+ * @default 'SIGUSR2'
139
+ */
140
+ signal: Signals;
141
+
142
+ /**
143
+ * Writes a diagnostic report to a file. If filename is not provided, the default filename
144
+ * includes the date, time, PID, and a sequence number.
145
+ * The report's JavaScript stack trace is taken from err, if present.
146
+ *
147
+ * @param fileName Name of the file where the report is written.
148
+ * This should be a relative path, that will be appended to the directory specified in
149
+ * `process.report.directory`, or the current working directory of the Node.js process,
150
+ * if unspecified.
151
+ * @param error A custom error used for reporting the JavaScript stack.
152
+ * @return Filename of the generated report.
153
+ */
154
+ writeReport(fileName?: string): string;
155
+ writeReport(error?: Error): string;
156
+ writeReport(fileName?: string, err?: Error): string;
157
+ }
158
+
159
+ interface ResourceUsage {
160
+ fsRead: number;
161
+ fsWrite: number;
162
+ involuntaryContextSwitches: number;
163
+ ipcReceived: number;
164
+ ipcSent: number;
165
+ majorPageFault: number;
166
+ maxRSS: number;
167
+ minorPageFault: number;
168
+ sharedMemorySize: number;
169
+ signalsCount: number;
170
+ swappedOut: number;
171
+ systemCPUTime: number;
172
+ unsharedDataSize: number;
173
+ unsharedStackSize: number;
174
+ userCPUTime: number;
175
+ voluntaryContextSwitches: number;
176
+ }
177
+
178
+ interface Process extends EventEmitter {
179
+ /**
180
+ * Can also be a tty.WriteStream, not typed due to limitations.
181
+ */
182
+ stdout: WriteStream & {
183
+ fd: 1;
184
+ };
185
+ /**
186
+ * Can also be a tty.WriteStream, not typed due to limitations.
187
+ */
188
+ stderr: WriteStream & {
189
+ fd: 2;
190
+ };
191
+ stdin: ReadStream & {
192
+ fd: 0;
193
+ };
194
+ openStdin(): Socket;
195
+ argv: string[];
196
+ argv0: string;
197
+ execArgv: string[];
198
+ execPath: string;
199
+ abort(): never;
200
+ chdir(directory: string): void;
201
+ cwd(): string;
202
+ debugPort: number;
203
+ emitWarning(warning: string | Error, name?: string, ctor?: Function): void;
204
+ env: ProcessEnv;
205
+ exit(code?: number): never;
206
+ exitCode?: number | undefined;
207
+ getgid(): number;
208
+ setgid(id: number | string): void;
209
+ getuid(): number;
210
+ setuid(id: number | string): void;
211
+ geteuid(): number;
212
+ seteuid(id: number | string): void;
213
+ getegid(): number;
214
+ setegid(id: number | string): void;
215
+ getgroups(): number[];
216
+ setgroups(groups: ReadonlyArray<string | number>): void;
217
+ setUncaughtExceptionCaptureCallback(cb: ((err: Error) => void) | null): void;
218
+ hasUncaughtExceptionCaptureCallback(): boolean;
219
+ version: string;
220
+ versions: ProcessVersions;
221
+ config: {
222
+ target_defaults: {
223
+ cflags: any[];
224
+ default_configuration: string;
225
+ defines: string[];
226
+ include_dirs: string[];
227
+ libraries: string[];
228
+ };
229
+ variables: {
230
+ clang: number;
231
+ host_arch: string;
232
+ node_install_npm: boolean;
233
+ node_install_waf: boolean;
234
+ node_prefix: string;
235
+ node_shared_openssl: boolean;
236
+ node_shared_v8: boolean;
237
+ node_shared_zlib: boolean;
238
+ node_use_dtrace: boolean;
239
+ node_use_etw: boolean;
240
+ node_use_openssl: boolean;
241
+ target_arch: string;
242
+ v8_no_strict_aliasing: number;
243
+ v8_use_snapshot: boolean;
244
+ visibility: string;
245
+ };
246
+ };
247
+ kill(pid: number, signal?: string | number): true;
248
+ pid: number;
249
+ ppid: number;
250
+ title: string;
251
+ arch: string;
252
+ platform: Platform;
253
+ /** @deprecated since v14.0.0 - use `require.main` instead. */
254
+ mainModule?: Module | undefined;
255
+ memoryUsage(): MemoryUsage;
256
+ cpuUsage(previousValue?: CpuUsage): CpuUsage;
257
+ nextTick(callback: Function, ...args: any[]): void;
258
+ release: ProcessRelease;
259
+ features: {
260
+ inspector: boolean;
261
+ debug: boolean;
262
+ uv: boolean;
263
+ ipv6: boolean;
264
+ tls_alpn: boolean;
265
+ tls_sni: boolean;
266
+ tls_ocsp: boolean;
267
+ tls: boolean;
268
+ };
269
+ /**
270
+ * @deprecated since v14.0.0 - Calling process.umask() with no argument causes
271
+ * the process-wide umask to be written twice. This introduces a race condition between threads,
272
+ * and is a potential security vulnerability. There is no safe, cross-platform alternative API.
273
+ */
274
+ umask(): number;
275
+ /**
276
+ * Can only be set if not in worker thread.
277
+ */
278
+ umask(mask: string | number): number;
279
+ uptime(): number;
280
+ hrtime: HRTime;
281
+ domain: Domain;
282
+
283
+ // Worker
284
+ send?(message: any, sendHandle?: any, options?: { swallowErrors?: boolean | undefined}, callback?: (error: Error | null) => void): boolean;
285
+ disconnect(): void;
286
+ connected: boolean;
287
+
288
+ /**
289
+ * The `process.allowedNodeEnvironmentFlags` property is a special,
290
+ * read-only `Set` of flags allowable within the [`NODE_OPTIONS`][]
291
+ * environment variable.
292
+ */
293
+ allowedNodeEnvironmentFlags: ReadonlySet<string>;
294
+
295
+ /**
296
+ * Only available with `--experimental-report`
297
+ */
298
+ report?: ProcessReport | undefined;
299
+
300
+ resourceUsage(): ResourceUsage;
301
+
302
+ traceDeprecation: boolean;
303
+
304
+ /* EventEmitter */
305
+ addListener(event: "beforeExit", listener: BeforeExitListener): this;
306
+ addListener(event: "disconnect", listener: DisconnectListener): this;
307
+ addListener(event: "exit", listener: ExitListener): this;
308
+ addListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
309
+ addListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
310
+ addListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
311
+ addListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
312
+ addListener(event: "warning", listener: WarningListener): this;
313
+ addListener(event: "message", listener: MessageListener): this;
314
+ addListener(event: Signals, listener: SignalsListener): this;
315
+ addListener(event: "newListener", listener: NewListenerListener): this;
316
+ addListener(event: "removeListener", listener: RemoveListenerListener): this;
317
+ addListener(event: "multipleResolves", listener: MultipleResolveListener): this;
318
+
319
+ emit(event: "beforeExit", code: number): boolean;
320
+ emit(event: "disconnect"): boolean;
321
+ emit(event: "exit", code: number): boolean;
322
+ emit(event: "rejectionHandled", promise: Promise<any>): boolean;
323
+ emit(event: "uncaughtException", error: Error): boolean;
324
+ emit(event: "uncaughtExceptionMonitor", error: Error): boolean;
325
+ emit(event: "unhandledRejection", reason: any, promise: Promise<any>): boolean;
326
+ emit(event: "warning", warning: Error): boolean;
327
+ emit(event: "message", message: any, sendHandle: any): this;
328
+ emit(event: Signals, signal: Signals): boolean;
329
+ emit(event: "newListener", eventName: string | symbol, listener: (...args: any[]) => void): this;
330
+ emit(event: "removeListener", eventName: string, listener: (...args: any[]) => void): this;
331
+ emit(event: "multipleResolves", listener: MultipleResolveListener): this;
332
+
333
+ on(event: "beforeExit", listener: BeforeExitListener): this;
334
+ on(event: "disconnect", listener: DisconnectListener): this;
335
+ on(event: "exit", listener: ExitListener): this;
336
+ on(event: "rejectionHandled", listener: RejectionHandledListener): this;
337
+ on(event: "uncaughtException", listener: UncaughtExceptionListener): this;
338
+ on(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
339
+ on(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
340
+ on(event: "warning", listener: WarningListener): this;
341
+ on(event: "message", listener: MessageListener): this;
342
+ on(event: Signals, listener: SignalsListener): this;
343
+ on(event: "newListener", listener: NewListenerListener): this;
344
+ on(event: "removeListener", listener: RemoveListenerListener): this;
345
+ on(event: "multipleResolves", listener: MultipleResolveListener): this;
346
+ on(event: string | symbol, listener: (...args: any[]) => void): this;
347
+
348
+ once(event: "beforeExit", listener: BeforeExitListener): this;
349
+ once(event: "disconnect", listener: DisconnectListener): this;
350
+ once(event: "exit", listener: ExitListener): this;
351
+ once(event: "rejectionHandled", listener: RejectionHandledListener): this;
352
+ once(event: "uncaughtException", listener: UncaughtExceptionListener): this;
353
+ once(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
354
+ once(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
355
+ once(event: "warning", listener: WarningListener): this;
356
+ once(event: "message", listener: MessageListener): this;
357
+ once(event: Signals, listener: SignalsListener): this;
358
+ once(event: "newListener", listener: NewListenerListener): this;
359
+ once(event: "removeListener", listener: RemoveListenerListener): this;
360
+ once(event: "multipleResolves", listener: MultipleResolveListener): this;
361
+
362
+ prependListener(event: "beforeExit", listener: BeforeExitListener): this;
363
+ prependListener(event: "disconnect", listener: DisconnectListener): this;
364
+ prependListener(event: "exit", listener: ExitListener): this;
365
+ prependListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
366
+ prependListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
367
+ prependListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
368
+ prependListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
369
+ prependListener(event: "warning", listener: WarningListener): this;
370
+ prependListener(event: "message", listener: MessageListener): this;
371
+ prependListener(event: Signals, listener: SignalsListener): this;
372
+ prependListener(event: "newListener", listener: NewListenerListener): this;
373
+ prependListener(event: "removeListener", listener: RemoveListenerListener): this;
374
+ prependListener(event: "multipleResolves", listener: MultipleResolveListener): this;
375
+
376
+ prependOnceListener(event: "beforeExit", listener: BeforeExitListener): this;
377
+ prependOnceListener(event: "disconnect", listener: DisconnectListener): this;
378
+ prependOnceListener(event: "exit", listener: ExitListener): this;
379
+ prependOnceListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
380
+ prependOnceListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
381
+ prependOnceListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
382
+ prependOnceListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
383
+ prependOnceListener(event: "warning", listener: WarningListener): this;
384
+ prependOnceListener(event: "message", listener: MessageListener): this;
385
+ prependOnceListener(event: Signals, listener: SignalsListener): this;
386
+ prependOnceListener(event: "newListener", listener: NewListenerListener): this;
387
+ prependOnceListener(event: "removeListener", listener: RemoveListenerListener): this;
388
+ prependOnceListener(event: "multipleResolves", listener: MultipleResolveListener): this;
389
+
390
+ listeners(event: "beforeExit"): BeforeExitListener[];
391
+ listeners(event: "disconnect"): DisconnectListener[];
392
+ listeners(event: "exit"): ExitListener[];
393
+ listeners(event: "rejectionHandled"): RejectionHandledListener[];
394
+ listeners(event: "uncaughtException"): UncaughtExceptionListener[];
395
+ listeners(event: "uncaughtExceptionMonitor"): UncaughtExceptionListener[];
396
+ listeners(event: "unhandledRejection"): UnhandledRejectionListener[];
397
+ listeners(event: "warning"): WarningListener[];
398
+ listeners(event: "message"): MessageListener[];
399
+ listeners(event: Signals): SignalsListener[];
400
+ listeners(event: "newListener"): NewListenerListener[];
401
+ listeners(event: "removeListener"): RemoveListenerListener[];
402
+ listeners(event: "multipleResolves"): MultipleResolveListener[];
403
+ }
404
+
405
+ interface Global {
406
+ process: Process;
407
+ }
408
+ }
409
+ }
410
+
411
+ export = process;
412
+ }
@@ -1 +1,31 @@
1
- declare module'node:querystring'{export*from'querystring';}declare module'querystring'{interface StringifyOptions{encodeURIComponent?:(str:string)=>string;}interface ParseOptions{maxKeys?:number;decodeURIComponent?:(str:string)=>string;}interface ParsedUrlQuery extends NodeJS.Dict<string|string[]>{}interface ParsedUrlQueryInput extends NodeJS.Dict<string|number|boolean|ReadonlyArray<string>|ReadonlyArray<number>|ReadonlyArray<boolean>|null>{}function stringify(obj?:ParsedUrlQueryInput,sep?:string,eq?:string,options?:StringifyOptions):string;function parse(str:string,sep?:string,eq?:string,options?:ParseOptions):ParsedUrlQuery;const encode:typeof stringify;const decode:typeof parse;function escape(str:string):string;function unescape(str:string):string;}
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 'querystring' {
5
+ interface StringifyOptions {
6
+ encodeURIComponent?: ((str: string) => string) | undefined;
7
+ }
8
+
9
+ interface ParseOptions {
10
+ maxKeys?: number | undefined;
11
+ decodeURIComponent?: ((str: string) => string) | undefined;
12
+ }
13
+
14
+ interface ParsedUrlQuery extends NodeJS.Dict<string | string[]> { }
15
+
16
+ interface ParsedUrlQueryInput extends NodeJS.Dict<string | number | boolean | ReadonlyArray<string> | ReadonlyArray<number> | ReadonlyArray<boolean> | null> {
17
+ }
18
+
19
+ function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string;
20
+ function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery;
21
+ /**
22
+ * The querystring.encode() function is an alias for querystring.stringify().
23
+ */
24
+ const encode: typeof stringify;
25
+ /**
26
+ * The querystring.decode() function is an alias for querystring.parse().
27
+ */
28
+ const decode: typeof parse;
29
+ function escape(str: string): string;
30
+ function unescape(str: string): string;
31
+ }
@@ -0,0 +1,173 @@
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 'readline' {
5
+ import EventEmitter = require('events');
6
+
7
+ interface Key {
8
+ sequence?: string | undefined;
9
+ name?: string | undefined;
10
+ ctrl?: boolean | undefined;
11
+ meta?: boolean | undefined;
12
+ shift?: boolean | undefined;
13
+ }
14
+
15
+ class Interface extends EventEmitter {
16
+ readonly terminal: boolean;
17
+
18
+ // Need direct access to line/cursor data, for use in external processes
19
+ // see: https://github.com/nodejs/node/issues/30347
20
+ /** The current input data */
21
+ readonly line: string;
22
+ /** The current cursor position in the input line */
23
+ readonly cursor: number;
24
+
25
+ /**
26
+ * NOTE: According to the documentation:
27
+ *
28
+ * > Instances of the `readline.Interface` class are constructed using the
29
+ * > `readline.createInterface()` method.
30
+ *
31
+ * @see https://nodejs.org/dist/latest-v10.x/docs/api/readline.html#readline_class_interface
32
+ */
33
+ protected constructor(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer | AsyncCompleter, terminal?: boolean);
34
+ /**
35
+ * NOTE: According to the documentation:
36
+ *
37
+ * > Instances of the `readline.Interface` class are constructed using the
38
+ * > `readline.createInterface()` method.
39
+ *
40
+ * @see https://nodejs.org/dist/latest-v10.x/docs/api/readline.html#readline_class_interface
41
+ */
42
+ protected constructor(options: ReadLineOptions);
43
+
44
+ setPrompt(prompt: string): void;
45
+ prompt(preserveCursor?: boolean): void;
46
+ question(query: string, callback: (answer: string) => void): void;
47
+ pause(): this;
48
+ resume(): this;
49
+ close(): void;
50
+ write(data: string | Buffer, key?: Key): void;
51
+
52
+ /**
53
+ * Returns the real position of the cursor in relation to the input
54
+ * prompt + string. Long input (wrapping) strings, as well as multiple
55
+ * line prompts are included in the calculations.
56
+ */
57
+ getCursorPos(): CursorPos;
58
+
59
+ /**
60
+ * events.EventEmitter
61
+ * 1. close
62
+ * 2. line
63
+ * 3. pause
64
+ * 4. resume
65
+ * 5. SIGCONT
66
+ * 6. SIGINT
67
+ * 7. SIGTSTP
68
+ */
69
+
70
+ addListener(event: string, listener: (...args: any[]) => void): this;
71
+ addListener(event: "close", listener: () => void): this;
72
+ addListener(event: "line", listener: (input: string) => void): this;
73
+ addListener(event: "pause", listener: () => void): this;
74
+ addListener(event: "resume", listener: () => void): this;
75
+ addListener(event: "SIGCONT", listener: () => void): this;
76
+ addListener(event: "SIGINT", listener: () => void): this;
77
+ addListener(event: "SIGTSTP", listener: () => void): this;
78
+
79
+ emit(event: string | symbol, ...args: any[]): boolean;
80
+ emit(event: "close"): boolean;
81
+ emit(event: "line", input: string): boolean;
82
+ emit(event: "pause"): boolean;
83
+ emit(event: "resume"): boolean;
84
+ emit(event: "SIGCONT"): boolean;
85
+ emit(event: "SIGINT"): boolean;
86
+ emit(event: "SIGTSTP"): boolean;
87
+
88
+ on(event: string, listener: (...args: any[]) => void): this;
89
+ on(event: "close", listener: () => void): this;
90
+ on(event: "line", listener: (input: string) => void): this;
91
+ on(event: "pause", listener: () => void): this;
92
+ on(event: "resume", listener: () => void): this;
93
+ on(event: "SIGCONT", listener: () => void): this;
94
+ on(event: "SIGINT", listener: () => void): this;
95
+ on(event: "SIGTSTP", listener: () => void): this;
96
+
97
+ once(event: string, listener: (...args: any[]) => void): this;
98
+ once(event: "close", listener: () => void): this;
99
+ once(event: "line", listener: (input: string) => void): this;
100
+ once(event: "pause", listener: () => void): this;
101
+ once(event: "resume", listener: () => void): this;
102
+ once(event: "SIGCONT", listener: () => void): this;
103
+ once(event: "SIGINT", listener: () => void): this;
104
+ once(event: "SIGTSTP", listener: () => void): this;
105
+
106
+ prependListener(event: string, listener: (...args: any[]) => void): this;
107
+ prependListener(event: "close", listener: () => void): this;
108
+ prependListener(event: "line", listener: (input: string) => void): this;
109
+ prependListener(event: "pause", listener: () => void): this;
110
+ prependListener(event: "resume", listener: () => void): this;
111
+ prependListener(event: "SIGCONT", listener: () => void): this;
112
+ prependListener(event: "SIGINT", listener: () => void): this;
113
+ prependListener(event: "SIGTSTP", listener: () => void): this;
114
+
115
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
116
+ prependOnceListener(event: "close", listener: () => void): this;
117
+ prependOnceListener(event: "line", listener: (input: string) => void): this;
118
+ prependOnceListener(event: "pause", listener: () => void): this;
119
+ prependOnceListener(event: "resume", listener: () => void): this;
120
+ prependOnceListener(event: "SIGCONT", listener: () => void): this;
121
+ prependOnceListener(event: "SIGINT", listener: () => void): this;
122
+ prependOnceListener(event: "SIGTSTP", listener: () => void): this;
123
+ [Symbol.asyncIterator](): AsyncIterableIterator<string>;
124
+ }
125
+
126
+ type ReadLine = Interface; // type forwarded for backwards compatibility
127
+
128
+ type Completer = (line: string) => CompleterResult;
129
+ type AsyncCompleter = (line: string, callback: (err?: null | Error, result?: CompleterResult) => void) => any;
130
+
131
+ type CompleterResult = [string[], string];
132
+
133
+ interface ReadLineOptions {
134
+ input: NodeJS.ReadableStream;
135
+ output?: NodeJS.WritableStream | undefined;
136
+ completer?: Completer | AsyncCompleter | undefined;
137
+ terminal?: boolean | undefined;
138
+ historySize?: number | undefined;
139
+ prompt?: string | undefined;
140
+ crlfDelay?: number | undefined;
141
+ removeHistoryDuplicates?: boolean | undefined;
142
+ escapeCodeTimeout?: number | undefined;
143
+ tabSize?: number | undefined;
144
+ }
145
+
146
+ function createInterface(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer | AsyncCompleter, terminal?: boolean): Interface;
147
+ function createInterface(options: ReadLineOptions): Interface;
148
+ function emitKeypressEvents(stream: NodeJS.ReadableStream, readlineInterface?: Interface): void;
149
+
150
+ type Direction = -1 | 0 | 1;
151
+
152
+ interface CursorPos {
153
+ rows: number;
154
+ cols: number;
155
+ }
156
+
157
+ /**
158
+ * Clears the current line of this WriteStream in a direction identified by `dir`.
159
+ */
160
+ function clearLine(stream: NodeJS.WritableStream, dir: Direction, callback?: () => void): boolean;
161
+ /**
162
+ * Clears this `WriteStream` from the current cursor down.
163
+ */
164
+ function clearScreenDown(stream: NodeJS.WritableStream, callback?: () => void): boolean;
165
+ /**
166
+ * Moves this WriteStream's cursor to the specified position.
167
+ */
168
+ function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number, callback?: () => void): boolean;
169
+ /**
170
+ * Moves this WriteStream's cursor relative to its current position.
171
+ */
172
+ function moveCursor(stream: NodeJS.WritableStream, dx: number, dy: number, callback?: () => void): boolean;
173
+ }