@node-red/editor-client 3.1.8 → 4.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/locales/de/editor.json +2 -0
- package/locales/en-US/editor.json +10 -1
- package/locales/fr/editor.json +8 -1
- package/locales/ja/editor.json +10 -3
- package/package.json +1 -1
- package/public/red/about +52 -0
- package/public/red/red.js +1433 -263
- package/public/red/red.min.js +3 -3
- package/public/red/style.min.css +2 -2
- package/public/red/tours/3.1/welcome.js +231 -0
- package/public/red/tours/images/nr4-auto-complete.png +0 -0
- package/public/red/tours/images/nr4-config-select.png +0 -0
- package/public/red/tours/images/nr4-multiplayer.png +0 -0
- package/public/red/tours/images/nr4-plugins.png +0 -0
- package/public/red/tours/images/nr4-sf-config.png +0 -0
- package/public/red/tours/images/nr4-timestamp-formatting.png +0 -0
- package/public/red/tours/welcome.js +105 -161
- package/public/types/node/assert/strict.d.ts +1 -1
- package/public/types/node/assert.d.ts +8 -9
- package/public/types/node/async_hooks.d.ts +9 -5
- package/public/types/node/buffer.d.ts +43 -18
- package/public/types/node/child_process.d.ts +8 -5
- package/public/types/node/cluster.d.ts +15 -19
- package/public/types/node/console.d.ts +2 -2
- package/public/types/node/crypto.d.ts +165 -70
- package/public/types/node/dgram.d.ts +4 -4
- package/public/types/node/diagnostics_channel.d.ts +8 -7
- package/public/types/node/dns/promises.d.ts +11 -9
- package/public/types/node/dns.d.ts +18 -13
- package/public/types/node/dom-events.d.ts +129 -0
- package/public/types/node/domain.d.ts +2 -2
- package/public/types/node/events.d.ts +49 -12
- package/public/types/node/fs/promises.d.ts +68 -24
- package/public/types/node/fs.d.ts +132 -59
- package/public/types/node/globals.d.ts +31 -17
- package/public/types/node/http.d.ts +138 -27
- package/public/types/node/http2.d.ts +38 -5
- package/public/types/node/https.d.ts +12 -3
- package/public/types/node/module.d.ts +1 -2
- package/public/types/node/net.d.ts +69 -28
- package/public/types/node/os.d.ts +16 -5
- package/public/types/node/path.d.ts +5 -5
- package/public/types/node/perf_hooks.d.ts +48 -9
- package/public/types/node/process.d.ts +18 -17
- package/public/types/node/querystring.d.ts +2 -2
- package/public/types/node/readline/promises.d.ts +146 -0
- package/public/types/node/readline.d.ts +141 -31
- package/public/types/node/stream/consumers.d.ts +2 -2
- package/public/types/node/stream/promises.d.ts +1 -1
- package/public/types/node/stream/web.d.ts +4 -66
- package/public/types/node/stream.d.ts +96 -118
- package/public/types/node/string_decoder.d.ts +2 -2
- package/public/types/node/test.d.ts +200 -16
- package/public/types/node/timers/promises.d.ts +1 -26
- package/public/types/node/timers.d.ts +2 -2
- package/public/types/node/tls.d.ts +21 -12
- package/public/types/node/trace_events.d.ts +12 -2
- package/public/types/node/ts4.8/assert/strict.d.ts +11 -0
- package/public/types/node/ts4.8/assert.d.ts +964 -0
- package/public/types/node/ts4.8/async_hooks.d.ts +504 -0
- package/public/types/node/ts4.8/buffer.d.ts +2262 -0
- package/public/types/node/ts4.8/child_process.d.ts +1372 -0
- package/public/types/node/ts4.8/cluster.d.ts +413 -0
- package/public/types/node/ts4.8/console.d.ts +415 -0
- package/public/types/node/ts4.8/crypto.d.ts +3967 -0
- package/public/types/node/ts4.8/dgram.d.ts +548 -0
- package/public/types/node/ts4.8/diagnostics_channel.d.ts +156 -0
- package/public/types/node/ts4.8/dns/promises.d.ts +373 -0
- package/public/types/node/ts4.8/dns.d.ts +662 -0
- package/public/types/node/ts4.8/dom-events.d.ts +129 -0
- package/public/types/node/ts4.8/domain.d.ts +173 -0
- package/public/types/node/ts4.8/events.d.ts +681 -0
- package/public/types/node/ts4.8/fs/promises.d.ts +1141 -0
- package/public/types/node/ts4.8/fs.d.ts +3875 -0
- package/public/types/node/ts4.8/globals.d.ts +297 -0
- package/public/types/node/ts4.8/http.d.ts +1617 -0
- package/public/types/node/ts4.8/http2.d.ts +2137 -0
- package/public/types/node/ts4.8/https.d.ts +544 -0
- package/public/types/node/ts4.8/module.d.ts +117 -0
- package/public/types/node/ts4.8/net.d.ts +872 -0
- package/public/types/node/ts4.8/os.d.ts +469 -0
- package/public/types/node/ts4.8/path.d.ts +194 -0
- package/public/types/node/ts4.8/perf_hooks.d.ts +628 -0
- package/public/types/node/ts4.8/process.d.ts +1485 -0
- package/public/types/node/ts4.8/querystring.d.ts +134 -0
- package/public/types/node/ts4.8/readline/promises.d.ts +146 -0
- package/public/types/node/ts4.8/readline.d.ts +656 -0
- package/public/types/node/ts4.8/stream/consumers.d.ts +15 -0
- package/public/types/node/ts4.8/stream/promises.d.ts +45 -0
- package/public/types/node/ts4.8/stream/web.d.ts +333 -0
- package/public/types/node/ts4.8/stream.d.ts +1343 -0
- package/public/types/node/ts4.8/string_decoder.d.ts +70 -0
- package/public/types/node/ts4.8/test.d.ts +377 -0
- package/public/types/node/ts4.8/timers/promises.d.ts +71 -0
- package/public/types/node/ts4.8/timers.d.ts +97 -0
- package/public/types/node/ts4.8/tls.d.ts +1031 -0
- package/public/types/node/ts4.8/trace_events.d.ts +174 -0
- package/public/types/node/ts4.8/tty.d.ts +209 -0
- package/public/types/node/ts4.8/url.d.ts +900 -0
- package/public/types/node/ts4.8/util.d.ts +1853 -0
- package/public/types/node/ts4.8/v8.d.ts +399 -0
- package/public/types/node/ts4.8/vm.d.ts +512 -0
- package/public/types/node/ts4.8/wasi.d.ts +161 -0
- package/public/types/node/ts4.8/worker_threads.d.ts +692 -0
- package/public/types/node/ts4.8/zlib.d.ts +520 -0
- package/public/types/node/tty.d.ts +5 -3
- package/public/types/node/url.d.ts +81 -39
- package/public/types/node/util.d.ts +269 -13
- package/public/types/node/v8.d.ts +22 -4
- package/public/types/node/vm.d.ts +7 -5
- package/public/types/node/wasi.d.ts +2 -2
- package/public/types/node/worker_threads.d.ts +51 -11
- package/public/types/node/zlib.d.ts +2 -2
- package/public/types/node-red/func.d.ts +26 -17
- package/public/vendor/ace/worker-jsonata.js +1 -1
- package/public/vendor/monaco/dist/{fa2cc0ab9f0bec2b3365.ttf → 0c718f5b7d2bce997c5f.ttf} +0 -0
- package/public/vendor/monaco/dist/css.worker.js +1 -1
- package/public/vendor/monaco/dist/css.worker.js.LICENSE.txt +1 -1
- package/public/vendor/monaco/dist/editor.js +1 -29
- package/public/vendor/monaco/dist/editor.js.LICENSE.txt +2 -2
- package/public/vendor/monaco/dist/editor.worker.js +1 -1
- package/public/vendor/monaco/dist/html.worker.js +1 -1
- package/public/vendor/monaco/dist/html.worker.js.LICENSE.txt +1 -1
- package/public/vendor/monaco/dist/json.worker.js +1 -1
- package/public/vendor/monaco/dist/json.worker.js.LICENSE.txt +1 -1
- package/public/vendor/monaco/dist/locale/cs.js +324 -106
- package/public/vendor/monaco/dist/locale/de.js +336 -118
- package/public/vendor/monaco/dist/locale/es.js +329 -111
- package/public/vendor/monaco/dist/locale/fr.js +334 -116
- package/public/vendor/monaco/dist/locale/it.js +327 -109
- package/public/vendor/monaco/dist/locale/ja.js +329 -111
- package/public/vendor/monaco/dist/locale/ko.js +330 -112
- package/public/vendor/monaco/dist/locale/pl.js +329 -111
- package/public/vendor/monaco/dist/locale/pt-br.js +329 -111
- package/public/vendor/monaco/dist/locale/qps-ploc.js +330 -112
- package/public/vendor/monaco/dist/locale/ru.js +331 -113
- package/public/vendor/monaco/dist/locale/tr.js +329 -111
- package/public/vendor/monaco/dist/locale/zh-hans.js +331 -113
- package/public/vendor/monaco/dist/locale/zh-hant.js +331 -113
- package/public/vendor/monaco/dist/ts.worker.js +2 -2
- package/public/vendor/vendor.js +1 -1
- package/public/vendor/monaco/dist/7064e66c3890a12c47b4.ttf +0 -0
- /package/public/red/tours/{images → 3.1/images}/context-menu.png +0 -0
- /package/public/red/tours/{images → 3.1/images}/global-env-vars.png +0 -0
- /package/public/red/tours/{images → 3.1/images}/hiding-flows.png +0 -0
- /package/public/red/tours/{images → 3.1/images}/locking-flows.png +0 -0
- /package/public/red/tours/{images → 3.1/images}/mermaid.png +0 -0
- /package/public/red/tours/{images → 3.1/images}/node-help.png +0 -0
- /package/public/red/tours/{images → 3.1/images}/tab-changes.png +0 -0
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/
|
|
2
|
+
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
|
|
3
3
|
|
|
4
4
|
declare module 'stream/web' {
|
|
5
5
|
// stub module, pending copy&paste from .d.ts or manual impl
|
|
6
6
|
// copy from lib.dom.d.ts
|
|
7
|
-
|
|
8
7
|
interface ReadableWritablePair<R = any, W = any> {
|
|
9
8
|
readable: ReadableStream<R>;
|
|
10
9
|
/**
|
|
@@ -18,7 +17,6 @@ declare module 'stream/web' {
|
|
|
18
17
|
*/
|
|
19
18
|
writable: WritableStream<W>;
|
|
20
19
|
}
|
|
21
|
-
|
|
22
20
|
interface StreamPipeOptions {
|
|
23
21
|
preventAbort?: boolean;
|
|
24
22
|
preventCancel?: boolean;
|
|
@@ -66,70 +64,53 @@ declare module 'stream/web' {
|
|
|
66
64
|
preventClose?: boolean;
|
|
67
65
|
signal?: AbortSignal;
|
|
68
66
|
}
|
|
69
|
-
|
|
70
67
|
interface ReadableStreamGenericReader {
|
|
71
68
|
readonly closed: Promise<undefined>;
|
|
72
69
|
cancel(reason?: any): Promise<void>;
|
|
73
70
|
}
|
|
74
|
-
|
|
75
71
|
interface ReadableStreamDefaultReadValueResult<T> {
|
|
76
72
|
done: false;
|
|
77
73
|
value: T;
|
|
78
74
|
}
|
|
79
|
-
|
|
80
75
|
interface ReadableStreamDefaultReadDoneResult {
|
|
81
76
|
done: true;
|
|
82
77
|
value?: undefined;
|
|
83
78
|
}
|
|
84
79
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
|
|
85
|
-
type ReadableStreamDefaultReadResult<T> =
|
|
86
|
-
| ReadableStreamDefaultReadValueResult<T>
|
|
87
|
-
| ReadableStreamDefaultReadDoneResult;
|
|
88
|
-
|
|
80
|
+
type ReadableStreamDefaultReadResult<T> = ReadableStreamDefaultReadValueResult<T> | ReadableStreamDefaultReadDoneResult;
|
|
89
81
|
interface ReadableByteStreamControllerCallback {
|
|
90
82
|
(controller: ReadableByteStreamController): void | PromiseLike<void>;
|
|
91
83
|
}
|
|
92
|
-
|
|
93
84
|
interface UnderlyingSinkAbortCallback {
|
|
94
85
|
(reason?: any): void | PromiseLike<void>;
|
|
95
86
|
}
|
|
96
|
-
|
|
97
87
|
interface UnderlyingSinkCloseCallback {
|
|
98
88
|
(): void | PromiseLike<void>;
|
|
99
89
|
}
|
|
100
|
-
|
|
101
90
|
interface UnderlyingSinkStartCallback {
|
|
102
91
|
(controller: WritableStreamDefaultController): any;
|
|
103
92
|
}
|
|
104
|
-
|
|
105
93
|
interface UnderlyingSinkWriteCallback<W> {
|
|
106
94
|
(chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
|
|
107
95
|
}
|
|
108
|
-
|
|
109
96
|
interface UnderlyingSourceCancelCallback {
|
|
110
97
|
(reason?: any): void | PromiseLike<void>;
|
|
111
98
|
}
|
|
112
|
-
|
|
113
99
|
interface UnderlyingSourcePullCallback<R> {
|
|
114
100
|
(controller: ReadableStreamController<R>): void | PromiseLike<void>;
|
|
115
101
|
}
|
|
116
|
-
|
|
117
102
|
interface UnderlyingSourceStartCallback<R> {
|
|
118
103
|
(controller: ReadableStreamController<R>): any;
|
|
119
104
|
}
|
|
120
|
-
|
|
121
105
|
interface TransformerFlushCallback<O> {
|
|
122
106
|
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
|
|
123
107
|
}
|
|
124
|
-
|
|
125
108
|
interface TransformerStartCallback<O> {
|
|
126
109
|
(controller: TransformStreamDefaultController<O>): any;
|
|
127
110
|
}
|
|
128
|
-
|
|
129
111
|
interface TransformerTransformCallback<I, O> {
|
|
130
112
|
(chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
|
|
131
113
|
}
|
|
132
|
-
|
|
133
114
|
interface UnderlyingByteSource {
|
|
134
115
|
autoAllocateChunkSize?: number;
|
|
135
116
|
cancel?: ReadableStreamErrorCallback;
|
|
@@ -137,14 +118,12 @@ declare module 'stream/web' {
|
|
|
137
118
|
start?: ReadableByteStreamControllerCallback;
|
|
138
119
|
type: 'bytes';
|
|
139
120
|
}
|
|
140
|
-
|
|
141
121
|
interface UnderlyingSource<R = any> {
|
|
142
122
|
cancel?: UnderlyingSourceCancelCallback;
|
|
143
123
|
pull?: UnderlyingSourcePullCallback<R>;
|
|
144
124
|
start?: UnderlyingSourceStartCallback<R>;
|
|
145
125
|
type?: undefined;
|
|
146
126
|
}
|
|
147
|
-
|
|
148
127
|
interface UnderlyingSink<W = any> {
|
|
149
128
|
abort?: UnderlyingSinkAbortCallback;
|
|
150
129
|
close?: UnderlyingSinkCloseCallback;
|
|
@@ -152,11 +131,9 @@ declare module 'stream/web' {
|
|
|
152
131
|
type?: undefined;
|
|
153
132
|
write?: UnderlyingSinkWriteCallback<W>;
|
|
154
133
|
}
|
|
155
|
-
|
|
156
134
|
interface ReadableStreamErrorCallback {
|
|
157
135
|
(reason: any): void | PromiseLike<void>;
|
|
158
136
|
}
|
|
159
|
-
|
|
160
137
|
/** This Streams API interface represents a readable stream of byte data. */
|
|
161
138
|
interface ReadableStream<R = any> {
|
|
162
139
|
readonly locked: boolean;
|
|
@@ -168,29 +145,21 @@ declare module 'stream/web' {
|
|
|
168
145
|
values(options?: { preventCancel?: boolean }): AsyncIterableIterator<R>;
|
|
169
146
|
[Symbol.asyncIterator](): AsyncIterableIterator<R>;
|
|
170
147
|
}
|
|
171
|
-
|
|
172
148
|
const ReadableStream: {
|
|
173
149
|
prototype: ReadableStream;
|
|
174
|
-
new (
|
|
175
|
-
underlyingSource: UnderlyingByteSource,
|
|
176
|
-
strategy?: QueuingStrategy<Uint8Array>,
|
|
177
|
-
): ReadableStream<Uint8Array>;
|
|
150
|
+
new (underlyingSource: UnderlyingByteSource, strategy?: QueuingStrategy<Uint8Array>): ReadableStream<Uint8Array>;
|
|
178
151
|
new <R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
179
152
|
};
|
|
180
|
-
|
|
181
153
|
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
|
|
182
154
|
read(): Promise<ReadableStreamDefaultReadResult<R>>;
|
|
183
155
|
releaseLock(): void;
|
|
184
156
|
}
|
|
185
|
-
|
|
186
157
|
const ReadableStreamDefaultReader: {
|
|
187
158
|
prototype: ReadableStreamDefaultReader;
|
|
188
159
|
new <R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
|
|
189
160
|
};
|
|
190
|
-
|
|
191
161
|
const ReadableStreamBYOBReader: any;
|
|
192
162
|
const ReadableStreamBYOBRequest: any;
|
|
193
|
-
|
|
194
163
|
interface ReadableByteStreamController {
|
|
195
164
|
readonly byobRequest: undefined;
|
|
196
165
|
readonly desiredSize: number | null;
|
|
@@ -198,24 +167,20 @@ declare module 'stream/web' {
|
|
|
198
167
|
enqueue(chunk: ArrayBufferView): void;
|
|
199
168
|
error(error?: any): void;
|
|
200
169
|
}
|
|
201
|
-
|
|
202
170
|
const ReadableByteStreamController: {
|
|
203
171
|
prototype: ReadableByteStreamController;
|
|
204
172
|
new (): ReadableByteStreamController;
|
|
205
173
|
};
|
|
206
|
-
|
|
207
174
|
interface ReadableStreamDefaultController<R = any> {
|
|
208
175
|
readonly desiredSize: number | null;
|
|
209
176
|
close(): void;
|
|
210
177
|
enqueue(chunk?: R): void;
|
|
211
178
|
error(e?: any): void;
|
|
212
179
|
}
|
|
213
|
-
|
|
214
180
|
const ReadableStreamDefaultController: {
|
|
215
181
|
prototype: ReadableStreamDefaultController;
|
|
216
182
|
new (): ReadableStreamDefaultController;
|
|
217
183
|
};
|
|
218
|
-
|
|
219
184
|
interface Transformer<I = any, O = any> {
|
|
220
185
|
flush?: TransformerFlushCallback<O>;
|
|
221
186
|
readableType?: undefined;
|
|
@@ -223,33 +188,24 @@ declare module 'stream/web' {
|
|
|
223
188
|
transform?: TransformerTransformCallback<I, O>;
|
|
224
189
|
writableType?: undefined;
|
|
225
190
|
}
|
|
226
|
-
|
|
227
191
|
interface TransformStream<I = any, O = any> {
|
|
228
192
|
readonly readable: ReadableStream<O>;
|
|
229
193
|
readonly writable: WritableStream<I>;
|
|
230
194
|
}
|
|
231
|
-
|
|
232
195
|
const TransformStream: {
|
|
233
196
|
prototype: TransformStream;
|
|
234
|
-
new <I = any, O = any>(
|
|
235
|
-
transformer?: Transformer<I, O>,
|
|
236
|
-
writableStrategy?: QueuingStrategy<I>,
|
|
237
|
-
readableStrategy?: QueuingStrategy<O>,
|
|
238
|
-
): TransformStream<I, O>;
|
|
197
|
+
new <I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
|
|
239
198
|
};
|
|
240
|
-
|
|
241
199
|
interface TransformStreamDefaultController<O = any> {
|
|
242
200
|
readonly desiredSize: number | null;
|
|
243
201
|
enqueue(chunk?: O): void;
|
|
244
202
|
error(reason?: any): void;
|
|
245
203
|
terminate(): void;
|
|
246
204
|
}
|
|
247
|
-
|
|
248
205
|
const TransformStreamDefaultController: {
|
|
249
206
|
prototype: TransformStreamDefaultController;
|
|
250
207
|
new (): TransformStreamDefaultController;
|
|
251
208
|
};
|
|
252
|
-
|
|
253
209
|
/**
|
|
254
210
|
* This Streams API interface provides a standard abstraction for writing
|
|
255
211
|
* streaming data to a destination, known as a sink. This object comes with
|
|
@@ -261,12 +217,10 @@ declare module 'stream/web' {
|
|
|
261
217
|
close(): Promise<void>;
|
|
262
218
|
getWriter(): WritableStreamDefaultWriter<W>;
|
|
263
219
|
}
|
|
264
|
-
|
|
265
220
|
const WritableStream: {
|
|
266
221
|
prototype: WritableStream;
|
|
267
222
|
new <W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
|
|
268
223
|
};
|
|
269
|
-
|
|
270
224
|
/**
|
|
271
225
|
* This Streams API interface is the object returned by
|
|
272
226
|
* WritableStream.getWriter() and once created locks the < writer to the
|
|
@@ -282,12 +236,10 @@ declare module 'stream/web' {
|
|
|
282
236
|
releaseLock(): void;
|
|
283
237
|
write(chunk?: W): Promise<void>;
|
|
284
238
|
}
|
|
285
|
-
|
|
286
239
|
const WritableStreamDefaultWriter: {
|
|
287
240
|
prototype: WritableStreamDefaultWriter;
|
|
288
241
|
new <W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
|
|
289
242
|
};
|
|
290
|
-
|
|
291
243
|
/**
|
|
292
244
|
* This Streams API interface represents a controller allowing control of a
|
|
293
245
|
* WritableStream's state. When constructing a WritableStream, the
|
|
@@ -297,21 +249,17 @@ declare module 'stream/web' {
|
|
|
297
249
|
interface WritableStreamDefaultController {
|
|
298
250
|
error(e?: any): void;
|
|
299
251
|
}
|
|
300
|
-
|
|
301
252
|
const WritableStreamDefaultController: {
|
|
302
253
|
prototype: WritableStreamDefaultController;
|
|
303
254
|
new (): WritableStreamDefaultController;
|
|
304
255
|
};
|
|
305
|
-
|
|
306
256
|
interface QueuingStrategy<T = any> {
|
|
307
257
|
highWaterMark?: number;
|
|
308
258
|
size?: QueuingStrategySize<T>;
|
|
309
259
|
}
|
|
310
|
-
|
|
311
260
|
interface QueuingStrategySize<T = any> {
|
|
312
261
|
(chunk?: T): number;
|
|
313
262
|
}
|
|
314
|
-
|
|
315
263
|
interface QueuingStrategyInit {
|
|
316
264
|
/**
|
|
317
265
|
* Creates a new ByteLengthQueuingStrategy with the provided high water
|
|
@@ -324,7 +272,6 @@ declare module 'stream/web' {
|
|
|
324
272
|
*/
|
|
325
273
|
highWaterMark: number;
|
|
326
274
|
}
|
|
327
|
-
|
|
328
275
|
/**
|
|
329
276
|
* This Streams API interface provides a built-in byte length queuing
|
|
330
277
|
* strategy that can be used when constructing streams.
|
|
@@ -333,12 +280,10 @@ declare module 'stream/web' {
|
|
|
333
280
|
readonly highWaterMark: number;
|
|
334
281
|
readonly size: QueuingStrategySize<ArrayBufferView>;
|
|
335
282
|
}
|
|
336
|
-
|
|
337
283
|
const ByteLengthQueuingStrategy: {
|
|
338
284
|
prototype: ByteLengthQueuingStrategy;
|
|
339
285
|
new (init: QueuingStrategyInit): ByteLengthQueuingStrategy;
|
|
340
286
|
};
|
|
341
|
-
|
|
342
287
|
/**
|
|
343
288
|
* This Streams API interface provides a built-in byte length queuing
|
|
344
289
|
* strategy that can be used when constructing streams.
|
|
@@ -347,12 +292,10 @@ declare module 'stream/web' {
|
|
|
347
292
|
readonly highWaterMark: number;
|
|
348
293
|
readonly size: QueuingStrategySize;
|
|
349
294
|
}
|
|
350
|
-
|
|
351
295
|
const CountQueuingStrategy: {
|
|
352
296
|
prototype: CountQueuingStrategy;
|
|
353
297
|
new (init: QueuingStrategyInit): CountQueuingStrategy;
|
|
354
298
|
};
|
|
355
|
-
|
|
356
299
|
interface TextEncoderStream {
|
|
357
300
|
/** Returns "utf-8". */
|
|
358
301
|
readonly encoding: 'utf-8';
|
|
@@ -360,19 +303,15 @@ declare module 'stream/web' {
|
|
|
360
303
|
readonly writable: WritableStream<string>;
|
|
361
304
|
readonly [Symbol.toStringTag]: string;
|
|
362
305
|
}
|
|
363
|
-
|
|
364
306
|
const TextEncoderStream: {
|
|
365
307
|
prototype: TextEncoderStream;
|
|
366
308
|
new (): TextEncoderStream;
|
|
367
309
|
};
|
|
368
|
-
|
|
369
310
|
interface TextDecoderOptions {
|
|
370
311
|
fatal?: boolean;
|
|
371
312
|
ignoreBOM?: boolean;
|
|
372
313
|
}
|
|
373
|
-
|
|
374
314
|
type BufferSource = ArrayBufferView | ArrayBuffer;
|
|
375
|
-
|
|
376
315
|
interface TextDecoderStream {
|
|
377
316
|
/** Returns encoding's name, lower cased. */
|
|
378
317
|
readonly encoding: string;
|
|
@@ -384,7 +323,6 @@ declare module 'stream/web' {
|
|
|
384
323
|
readonly writable: WritableStream<BufferSource>;
|
|
385
324
|
readonly [Symbol.toStringTag]: string;
|
|
386
325
|
}
|
|
387
|
-
|
|
388
326
|
const TextDecoderStream: {
|
|
389
327
|
prototype: TextDecoderStream;
|
|
390
328
|
new (label?: string, options?: TextDecoderOptions): TextDecoderStream;
|
|
@@ -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/
|
|
2
|
+
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* A stream is an abstract interface for working with streaming data in Node.js.
|
|
@@ -17,13 +17,14 @@
|
|
|
17
17
|
*
|
|
18
18
|
* The `stream` module is useful for creating new types of stream instances. It is
|
|
19
19
|
* usually not necessary to use the `stream` module to consume streams.
|
|
20
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
20
|
+
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/stream.js)
|
|
21
21
|
*/
|
|
22
22
|
declare module 'stream' {
|
|
23
23
|
import { EventEmitter, Abortable } from 'node:events';
|
|
24
|
-
import { Blob as NodeBlob } from
|
|
24
|
+
import { Blob as NodeBlob } from "node:buffer";
|
|
25
25
|
import * as streamPromises from 'node:stream/promises';
|
|
26
26
|
import * as streamConsumers from 'node:stream/consumers';
|
|
27
|
+
import * as streamWeb from 'node:stream/web';
|
|
27
28
|
class internal extends EventEmitter {
|
|
28
29
|
pipe<T extends NodeJS.WritableStream>(
|
|
29
30
|
destination: T,
|
|
@@ -56,11 +57,23 @@ declare module 'stream' {
|
|
|
56
57
|
* A utility method for creating Readable Streams out of iterators.
|
|
57
58
|
*/
|
|
58
59
|
static from(iterable: Iterable<any> | AsyncIterable<any>, options?: ReadableOptions): Readable;
|
|
60
|
+
/**
|
|
61
|
+
* A utility method for creating a `Readable` from a web `ReadableStream`.
|
|
62
|
+
* @since v17.0.0
|
|
63
|
+
* @experimental
|
|
64
|
+
*/
|
|
65
|
+
static fromWeb(readableStream: streamWeb.ReadableStream, options?: Pick<ReadableOptions, 'encoding' | 'highWaterMark' | 'objectMode' | 'signal'>): Readable;
|
|
59
66
|
/**
|
|
60
67
|
* Returns whether the stream has been read from or cancelled.
|
|
61
68
|
* @since v16.8.0
|
|
62
69
|
*/
|
|
63
70
|
static isDisturbed(stream: Readable | NodeJS.ReadableStream): boolean;
|
|
71
|
+
/**
|
|
72
|
+
* A utility method for creating a web `ReadableStream` from a `Readable`.
|
|
73
|
+
* @since v17.0.0
|
|
74
|
+
* @experimental
|
|
75
|
+
*/
|
|
76
|
+
static toWeb(streamReadable: Readable): streamWeb.ReadableStream;
|
|
64
77
|
/**
|
|
65
78
|
* Returns whether the stream was destroyed or errored before emitting `'end'`.
|
|
66
79
|
* @since v16.8.0
|
|
@@ -75,7 +88,7 @@ declare module 'stream' {
|
|
|
75
88
|
readable: boolean;
|
|
76
89
|
/**
|
|
77
90
|
* Returns whether `'data'` has been emitted.
|
|
78
|
-
* @since v16.7.0
|
|
91
|
+
* @since v16.7.0, v14.18.0
|
|
79
92
|
* @experimental
|
|
80
93
|
*/
|
|
81
94
|
readonly readableDidRead: boolean;
|
|
@@ -117,13 +130,23 @@ declare module 'stream' {
|
|
|
117
130
|
* @since v8.0.0
|
|
118
131
|
*/
|
|
119
132
|
destroyed: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Is true after 'close' has been emitted.
|
|
135
|
+
* @since v18.0.0
|
|
136
|
+
*/
|
|
137
|
+
readonly closed: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Returns error if the stream has been destroyed with an error.
|
|
140
|
+
* @since v18.0.0
|
|
141
|
+
*/
|
|
142
|
+
readonly errored: Error | null;
|
|
120
143
|
constructor(opts?: ReadableOptions);
|
|
121
144
|
_construct?(callback: (error?: Error | null) => void): void;
|
|
122
145
|
_read(size: number): void;
|
|
123
146
|
/**
|
|
124
|
-
* The `readable.read()` method
|
|
125
|
-
* returns it. If no data available to be read, `null` is returned. By default,
|
|
126
|
-
* the data
|
|
147
|
+
* The `readable.read()` method reads data out of the internal buffer and
|
|
148
|
+
* returns it. If no data is available to be read, `null` is returned. By default,
|
|
149
|
+
* the data is returned as a `Buffer` object unless an encoding has been
|
|
127
150
|
* specified using the `readable.setEncoding()` method or the stream is operating
|
|
128
151
|
* in object mode.
|
|
129
152
|
*
|
|
@@ -338,7 +361,7 @@ declare module 'stream' {
|
|
|
338
361
|
* let chunk;
|
|
339
362
|
* while (null !== (chunk = stream.read())) {
|
|
340
363
|
* const str = decoder.write(chunk);
|
|
341
|
-
* if (str.
|
|
364
|
+
* if (str.includes('\n\n')) {
|
|
342
365
|
* // Found the header boundary.
|
|
343
366
|
* const split = str.split(/\n\n/);
|
|
344
367
|
* header += split.shift();
|
|
@@ -351,10 +374,10 @@ declare module 'stream' {
|
|
|
351
374
|
* stream.unshift(buf);
|
|
352
375
|
* // Now the body of the message can be read from the stream.
|
|
353
376
|
* callback(null, header, stream);
|
|
354
|
-
*
|
|
355
|
-
* // Still reading the header.
|
|
356
|
-
* header += str;
|
|
377
|
+
* return;
|
|
357
378
|
* }
|
|
379
|
+
* // Still reading the header.
|
|
380
|
+
* header += str;
|
|
358
381
|
* }
|
|
359
382
|
* }
|
|
360
383
|
* }
|
|
@@ -500,6 +523,18 @@ declare module 'stream' {
|
|
|
500
523
|
* @since v0.9.4
|
|
501
524
|
*/
|
|
502
525
|
class Writable extends Stream implements NodeJS.WritableStream {
|
|
526
|
+
/**
|
|
527
|
+
* A utility method for creating a `Writable` from a web `WritableStream`.
|
|
528
|
+
* @since v17.0.0
|
|
529
|
+
* @experimental
|
|
530
|
+
*/
|
|
531
|
+
static fromWeb(writableStream: streamWeb.WritableStream, options?: Pick<WritableOptions, 'decodeStrings' | 'highWaterMark' | 'objectMode' | 'signal'>): Writable;
|
|
532
|
+
/**
|
|
533
|
+
* A utility method for creating a web `WritableStream` from a `Writable`.
|
|
534
|
+
* @since v17.0.0
|
|
535
|
+
* @experimental
|
|
536
|
+
*/
|
|
537
|
+
static toWeb(streamWritable: Writable): streamWeb.WritableStream;
|
|
503
538
|
/**
|
|
504
539
|
* Is `true` if it is safe to call `writable.write()`, which means
|
|
505
540
|
* the stream has not been destroyed, errored or ended.
|
|
@@ -545,6 +580,21 @@ declare module 'stream' {
|
|
|
545
580
|
* @since v8.0.0
|
|
546
581
|
*/
|
|
547
582
|
destroyed: boolean;
|
|
583
|
+
/**
|
|
584
|
+
* Is true after 'close' has been emitted.
|
|
585
|
+
* @since v18.0.0
|
|
586
|
+
*/
|
|
587
|
+
readonly closed: boolean;
|
|
588
|
+
/**
|
|
589
|
+
* Returns error if the stream has been destroyed with an error.
|
|
590
|
+
* @since v18.0.0
|
|
591
|
+
*/
|
|
592
|
+
readonly errored: Error | null;
|
|
593
|
+
/**
|
|
594
|
+
* Is `true` if the stream's buffer has been full and stream will emit 'drain'.
|
|
595
|
+
* @since v15.2.0, v14.17.0
|
|
596
|
+
*/
|
|
597
|
+
readonly writableNeedDrain: boolean;
|
|
548
598
|
constructor(opts?: WritableOptions);
|
|
549
599
|
_write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
|
|
550
600
|
_writev?(
|
|
@@ -571,7 +621,7 @@ declare module 'stream' {
|
|
|
571
621
|
* While a stream is not draining, calls to `write()` will buffer `chunk`, and
|
|
572
622
|
* return false. Once all currently buffered chunks are drained (accepted for
|
|
573
623
|
* delivery by the operating system), the `'drain'` event will be emitted.
|
|
574
|
-
*
|
|
624
|
+
* Once `write()` returns false, do not write more chunks
|
|
575
625
|
* until the `'drain'` event is emitted. While calling `write()` on a stream that
|
|
576
626
|
* is not draining is allowed, Node.js will buffer all written chunks until
|
|
577
627
|
* maximum memory usage occurs, at which point it will abort unconditionally.
|
|
@@ -665,8 +715,8 @@ declare module 'stream' {
|
|
|
665
715
|
* The `writable.uncork()` method flushes all data buffered since {@link cork} was called.
|
|
666
716
|
*
|
|
667
717
|
* When using `writable.cork()` and `writable.uncork()` to manage the buffering
|
|
668
|
-
* of writes to a stream,
|
|
669
|
-
*
|
|
718
|
+
* of writes to a stream, defer calls to `writable.uncork()` using`process.nextTick()`. Doing so allows batching of all`writable.write()` calls that occur within a given Node.js event
|
|
719
|
+
* loop phase.
|
|
670
720
|
*
|
|
671
721
|
* ```js
|
|
672
722
|
* stream.cork();
|
|
@@ -811,6 +861,9 @@ declare module 'stream' {
|
|
|
811
861
|
readonly writableLength: number;
|
|
812
862
|
readonly writableObjectMode: boolean;
|
|
813
863
|
readonly writableCorked: number;
|
|
864
|
+
readonly writableNeedDrain: boolean;
|
|
865
|
+
readonly closed: boolean;
|
|
866
|
+
readonly errored: Error | null;
|
|
814
867
|
/**
|
|
815
868
|
* If `false` then the stream will automatically end the writable side when the
|
|
816
869
|
* readable side ends. Set initially by the `allowHalfOpen` constructor option,
|
|
@@ -862,105 +915,6 @@ declare module 'stream' {
|
|
|
862
915
|
end(chunk: any, encoding?: BufferEncoding, cb?: () => void): this;
|
|
863
916
|
cork(): void;
|
|
864
917
|
uncork(): void;
|
|
865
|
-
/**
|
|
866
|
-
* Event emitter
|
|
867
|
-
* The defined events on documents including:
|
|
868
|
-
* 1. close
|
|
869
|
-
* 2. data
|
|
870
|
-
* 3. drain
|
|
871
|
-
* 4. end
|
|
872
|
-
* 5. error
|
|
873
|
-
* 6. finish
|
|
874
|
-
* 7. pause
|
|
875
|
-
* 8. pipe
|
|
876
|
-
* 9. readable
|
|
877
|
-
* 10. resume
|
|
878
|
-
* 11. unpipe
|
|
879
|
-
*/
|
|
880
|
-
addListener(event: 'close', listener: () => void): this;
|
|
881
|
-
addListener(event: 'data', listener: (chunk: any) => void): this;
|
|
882
|
-
addListener(event: 'drain', listener: () => void): this;
|
|
883
|
-
addListener(event: 'end', listener: () => void): this;
|
|
884
|
-
addListener(event: 'error', listener: (err: Error) => void): this;
|
|
885
|
-
addListener(event: 'finish', listener: () => void): this;
|
|
886
|
-
addListener(event: 'pause', listener: () => void): this;
|
|
887
|
-
addListener(event: 'pipe', listener: (src: Readable) => void): this;
|
|
888
|
-
addListener(event: 'readable', listener: () => void): this;
|
|
889
|
-
addListener(event: 'resume', listener: () => void): this;
|
|
890
|
-
addListener(event: 'unpipe', listener: (src: Readable) => void): this;
|
|
891
|
-
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
892
|
-
emit(event: 'close'): boolean;
|
|
893
|
-
emit(event: 'data', chunk: any): boolean;
|
|
894
|
-
emit(event: 'drain'): boolean;
|
|
895
|
-
emit(event: 'end'): boolean;
|
|
896
|
-
emit(event: 'error', err: Error): boolean;
|
|
897
|
-
emit(event: 'finish'): boolean;
|
|
898
|
-
emit(event: 'pause'): boolean;
|
|
899
|
-
emit(event: 'pipe', src: Readable): boolean;
|
|
900
|
-
emit(event: 'readable'): boolean;
|
|
901
|
-
emit(event: 'resume'): boolean;
|
|
902
|
-
emit(event: 'unpipe', src: Readable): boolean;
|
|
903
|
-
emit(event: string | symbol, ...args: any[]): boolean;
|
|
904
|
-
on(event: 'close', listener: () => void): this;
|
|
905
|
-
on(event: 'data', listener: (chunk: any) => void): this;
|
|
906
|
-
on(event: 'drain', listener: () => void): this;
|
|
907
|
-
on(event: 'end', listener: () => void): this;
|
|
908
|
-
on(event: 'error', listener: (err: Error) => void): this;
|
|
909
|
-
on(event: 'finish', listener: () => void): this;
|
|
910
|
-
on(event: 'pause', listener: () => void): this;
|
|
911
|
-
on(event: 'pipe', listener: (src: Readable) => void): this;
|
|
912
|
-
on(event: 'readable', listener: () => void): this;
|
|
913
|
-
on(event: 'resume', listener: () => void): this;
|
|
914
|
-
on(event: 'unpipe', listener: (src: Readable) => void): this;
|
|
915
|
-
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
916
|
-
once(event: 'close', listener: () => void): this;
|
|
917
|
-
once(event: 'data', listener: (chunk: any) => void): this;
|
|
918
|
-
once(event: 'drain', listener: () => void): this;
|
|
919
|
-
once(event: 'end', listener: () => void): this;
|
|
920
|
-
once(event: 'error', listener: (err: Error) => void): this;
|
|
921
|
-
once(event: 'finish', listener: () => void): this;
|
|
922
|
-
once(event: 'pause', listener: () => void): this;
|
|
923
|
-
once(event: 'pipe', listener: (src: Readable) => void): this;
|
|
924
|
-
once(event: 'readable', listener: () => void): this;
|
|
925
|
-
once(event: 'resume', listener: () => void): this;
|
|
926
|
-
once(event: 'unpipe', listener: (src: Readable) => void): this;
|
|
927
|
-
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
928
|
-
prependListener(event: 'close', listener: () => void): this;
|
|
929
|
-
prependListener(event: 'data', listener: (chunk: any) => void): this;
|
|
930
|
-
prependListener(event: 'drain', listener: () => void): this;
|
|
931
|
-
prependListener(event: 'end', listener: () => void): this;
|
|
932
|
-
prependListener(event: 'error', listener: (err: Error) => void): this;
|
|
933
|
-
prependListener(event: 'finish', listener: () => void): this;
|
|
934
|
-
prependListener(event: 'pause', listener: () => void): this;
|
|
935
|
-
prependListener(event: 'pipe', listener: (src: Readable) => void): this;
|
|
936
|
-
prependListener(event: 'readable', listener: () => void): this;
|
|
937
|
-
prependListener(event: 'resume', listener: () => void): this;
|
|
938
|
-
prependListener(event: 'unpipe', listener: (src: Readable) => void): this;
|
|
939
|
-
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
940
|
-
prependOnceListener(event: 'close', listener: () => void): this;
|
|
941
|
-
prependOnceListener(event: 'data', listener: (chunk: any) => void): this;
|
|
942
|
-
prependOnceListener(event: 'drain', listener: () => void): this;
|
|
943
|
-
prependOnceListener(event: 'end', listener: () => void): this;
|
|
944
|
-
prependOnceListener(event: 'error', listener: (err: Error) => void): this;
|
|
945
|
-
prependOnceListener(event: 'finish', listener: () => void): this;
|
|
946
|
-
prependOnceListener(event: 'pause', listener: () => void): this;
|
|
947
|
-
prependOnceListener(event: 'pipe', listener: (src: Readable) => void): this;
|
|
948
|
-
prependOnceListener(event: 'readable', listener: () => void): this;
|
|
949
|
-
prependOnceListener(event: 'resume', listener: () => void): this;
|
|
950
|
-
prependOnceListener(event: 'unpipe', listener: (src: Readable) => void): this;
|
|
951
|
-
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
952
|
-
removeListener(event: 'close', listener: () => void): this;
|
|
953
|
-
removeListener(event: 'data', listener: (chunk: any) => void): this;
|
|
954
|
-
removeListener(event: 'drain', listener: () => void): this;
|
|
955
|
-
removeListener(event: 'end', listener: () => void): this;
|
|
956
|
-
removeListener(event: 'error', listener: (err: Error) => void): this;
|
|
957
|
-
removeListener(event: 'finish', listener: () => void): this;
|
|
958
|
-
removeListener(event: 'pause', listener: () => void): this;
|
|
959
|
-
removeListener(event: 'pipe', listener: (src: Readable) => void): this;
|
|
960
|
-
removeListener(event: 'readable', listener: () => void): this;
|
|
961
|
-
removeListener(event: 'resume', listener: () => void): this;
|
|
962
|
-
removeListener(event: 'unpipe', listener: (src: Readable) => void): this;
|
|
963
|
-
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
964
918
|
}
|
|
965
919
|
type TransformCallback = (error?: Error | null, data?: any) => void;
|
|
966
920
|
interface TransformOptions extends DuplexOptions {
|
|
@@ -1209,7 +1163,7 @@ declare module 'stream' {
|
|
|
1209
1163
|
* async function run() {
|
|
1210
1164
|
* await pipeline(
|
|
1211
1165
|
* fs.createReadStream('lowercase.txt'),
|
|
1212
|
-
* async function* (source, signal) {
|
|
1166
|
+
* async function* (source, { signal }) {
|
|
1213
1167
|
* source.setEncoding('utf8'); // Work with strings rather than `Buffer`s.
|
|
1214
1168
|
* for await (const chunk of source) {
|
|
1215
1169
|
* yield await processChunk(chunk, { signal });
|
|
@@ -1233,7 +1187,7 @@ declare module 'stream' {
|
|
|
1233
1187
|
*
|
|
1234
1188
|
* async function run() {
|
|
1235
1189
|
* await pipeline(
|
|
1236
|
-
* async function
|
|
1190
|
+
* async function* ({ signal }) {
|
|
1237
1191
|
* await someLongRunningfn({ signal });
|
|
1238
1192
|
* yield 'asd';
|
|
1239
1193
|
* },
|
|
@@ -1252,7 +1206,31 @@ declare module 'stream' {
|
|
|
1252
1206
|
*
|
|
1253
1207
|
* `stream.pipeline()` leaves dangling event listeners on the streams
|
|
1254
1208
|
* after the `callback` has been invoked. In the case of reuse of streams after
|
|
1255
|
-
* failure, this can cause event listener leaks and swallowed errors.
|
|
1209
|
+
* failure, this can cause event listener leaks and swallowed errors. If the last
|
|
1210
|
+
* stream is readable, dangling event listeners will be removed so that the last
|
|
1211
|
+
* stream can be consumed later.
|
|
1212
|
+
*
|
|
1213
|
+
* `stream.pipeline()` closes all the streams when an error is raised.
|
|
1214
|
+
* The `IncomingRequest` usage with `pipeline` could lead to an unexpected behavior
|
|
1215
|
+
* once it would destroy the socket without sending the expected response.
|
|
1216
|
+
* See the example below:
|
|
1217
|
+
*
|
|
1218
|
+
* ```js
|
|
1219
|
+
* const fs = require('fs');
|
|
1220
|
+
* const http = require('http');
|
|
1221
|
+
* const { pipeline } = require('stream');
|
|
1222
|
+
*
|
|
1223
|
+
* const server = http.createServer((req, res) => {
|
|
1224
|
+
* const fileStream = fs.createReadStream('./fileNotExist.txt');
|
|
1225
|
+
* pipeline(fileStream, res, (err) => {
|
|
1226
|
+
* if (err) {
|
|
1227
|
+
* console.log(err); // No such file
|
|
1228
|
+
* // this message can't be sent once `pipeline` already destroyed the socket
|
|
1229
|
+
* return res.end('error!!!');
|
|
1230
|
+
* }
|
|
1231
|
+
* });
|
|
1232
|
+
* });
|
|
1233
|
+
* ```
|
|
1256
1234
|
* @since v10.0.0
|
|
1257
1235
|
* @param callback Called when the pipeline is fully done.
|
|
1258
1236
|
*/
|
|
@@ -1344,13 +1322,13 @@ declare module 'stream' {
|
|
|
1344
1322
|
|
|
1345
1323
|
/**
|
|
1346
1324
|
* Returns whether the stream has encountered an error.
|
|
1347
|
-
* @since
|
|
1325
|
+
* @since v17.3.0
|
|
1348
1326
|
*/
|
|
1349
1327
|
function isErrored(stream: Readable | Writable | NodeJS.ReadableStream | NodeJS.WritableStream): boolean;
|
|
1350
1328
|
|
|
1351
1329
|
/**
|
|
1352
1330
|
* Returns whether the stream is readable.
|
|
1353
|
-
* @since
|
|
1331
|
+
* @since v17.4.0
|
|
1354
1332
|
*/
|
|
1355
1333
|
function isReadable(stream: Readable | NodeJS.ReadableStream): boolean;
|
|
1356
1334
|
|
|
@@ -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/
|
|
2
|
+
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The `string_decoder` module provides an API for decoding `Buffer` objects into
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
* decoder.write(Buffer.from([0x82]));
|
|
40
40
|
* console.log(decoder.end(Buffer.from([0xAC])));
|
|
41
41
|
* ```
|
|
42
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
42
|
+
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/string_decoder.js)
|
|
43
43
|
*/
|
|
44
44
|
declare module 'string_decoder' {
|
|
45
45
|
class StringDecoder {
|