@nocobase/plugin-multi-app-manager 2.1.0-alpha.1 → 2.1.0-alpha.11

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 (146) hide show
  1. package/LICENSE +201 -661
  2. package/README.md +79 -10
  3. package/dist/client/Migrate.d.ts +10 -0
  4. package/dist/client/e9551d3b66931c0a.js +10 -0
  5. package/dist/client/index.js +1 -1
  6. package/dist/externalVersion.js +7 -7
  7. package/dist/locale/en-US.json +3 -2
  8. package/dist/locale/zh-CN.json +3 -2
  9. package/dist/node_modules/p-queue/dist/index.d.ts +101 -0
  10. package/dist/node_modules/p-queue/dist/index.js +1 -0
  11. package/dist/node_modules/p-queue/dist/lower-bound.d.ts +1 -0
  12. package/dist/node_modules/p-queue/dist/lower-bound.js +21 -0
  13. package/dist/node_modules/p-queue/dist/options.d.ts +64 -0
  14. package/dist/node_modules/p-queue/dist/options.js +2 -0
  15. package/dist/node_modules/p-queue/dist/priority-queue.d.ts +12 -0
  16. package/dist/node_modules/p-queue/dist/priority-queue.js +32 -0
  17. package/dist/node_modules/p-queue/dist/queue.d.ts +7 -0
  18. package/dist/node_modules/p-queue/dist/queue.js +2 -0
  19. package/dist/node_modules/p-queue/license +9 -0
  20. package/dist/node_modules/p-queue/node_modules/eventemitter3/index.d.ts +134 -0
  21. package/dist/node_modules/p-queue/node_modules/eventemitter3/index.js +336 -0
  22. package/dist/node_modules/p-queue/node_modules/eventemitter3/package.json +56 -0
  23. package/dist/node_modules/p-queue/node_modules/eventemitter3/umd/eventemitter3.js +340 -0
  24. package/dist/node_modules/p-queue/node_modules/eventemitter3/umd/eventemitter3.min.js +1 -0
  25. package/dist/node_modules/p-queue/package.json +1 -0
  26. package/dist/server/adapters/legacy-adapter.d.ts +43 -0
  27. package/dist/server/adapters/legacy-adapter.js +207 -0
  28. package/dist/server/server.d.ts +4 -6
  29. package/dist/server/server.js +38 -191
  30. package/package.json +3 -3
  31. package/dist/client/db3a142b120d6553.js +0 -10
  32. package/dist/node_modules/mariadb/LICENSE +0 -502
  33. package/dist/node_modules/mariadb/callback.js +0 -41
  34. package/dist/node_modules/mariadb/lib/cmd/batch-bulk.js +0 -278
  35. package/dist/node_modules/mariadb/lib/cmd/batch-rewrite.js +0 -372
  36. package/dist/node_modules/mariadb/lib/cmd/change-user.js +0 -149
  37. package/dist/node_modules/mariadb/lib/cmd/class/ok-packet.js +0 -17
  38. package/dist/node_modules/mariadb/lib/cmd/column-definition.js +0 -102
  39. package/dist/node_modules/mariadb/lib/cmd/command.js +0 -168
  40. package/dist/node_modules/mariadb/lib/cmd/common-binary-cmd.js +0 -327
  41. package/dist/node_modules/mariadb/lib/cmd/common-text-cmd.js +0 -427
  42. package/dist/node_modules/mariadb/lib/cmd/handshake/auth/caching-sha2-password-auth.js +0 -168
  43. package/dist/node_modules/mariadb/lib/cmd/handshake/auth/clear-password-auth.js +0 -23
  44. package/dist/node_modules/mariadb/lib/cmd/handshake/auth/ed25519-password-auth.js +0 -761
  45. package/dist/node_modules/mariadb/lib/cmd/handshake/auth/native-password-auth.js +0 -55
  46. package/dist/node_modules/mariadb/lib/cmd/handshake/auth/pam-password-auth.js +0 -58
  47. package/dist/node_modules/mariadb/lib/cmd/handshake/auth/plugin-auth.js +0 -19
  48. package/dist/node_modules/mariadb/lib/cmd/handshake/auth/sha256-password-auth.js +0 -142
  49. package/dist/node_modules/mariadb/lib/cmd/handshake/client-capabilities.js +0 -74
  50. package/dist/node_modules/mariadb/lib/cmd/handshake/client-handshake-response.js +0 -126
  51. package/dist/node_modules/mariadb/lib/cmd/handshake/handshake.js +0 -292
  52. package/dist/node_modules/mariadb/lib/cmd/handshake/initial-handshake.js +0 -74
  53. package/dist/node_modules/mariadb/lib/cmd/handshake/ssl-request.js +0 -29
  54. package/dist/node_modules/mariadb/lib/cmd/ping.js +0 -52
  55. package/dist/node_modules/mariadb/lib/cmd/query.js +0 -255
  56. package/dist/node_modules/mariadb/lib/cmd/quit.js +0 -28
  57. package/dist/node_modules/mariadb/lib/cmd/reset.js +0 -54
  58. package/dist/node_modules/mariadb/lib/cmd/resultset.js +0 -607
  59. package/dist/node_modules/mariadb/lib/cmd/stream.js +0 -45
  60. package/dist/node_modules/mariadb/lib/config/connection-options.js +0 -258
  61. package/dist/node_modules/mariadb/lib/config/pool-cluster-options.js +0 -19
  62. package/dist/node_modules/mariadb/lib/config/pool-options.js +0 -47
  63. package/dist/node_modules/mariadb/lib/connection-callback.js +0 -160
  64. package/dist/node_modules/mariadb/lib/connection.js +0 -1460
  65. package/dist/node_modules/mariadb/lib/const/capabilities.js +0 -64
  66. package/dist/node_modules/mariadb/lib/const/collations.js +0 -473
  67. package/dist/node_modules/mariadb/lib/const/connection_status.js +0 -13
  68. package/dist/node_modules/mariadb/lib/const/error-code.js +0 -1282
  69. package/dist/node_modules/mariadb/lib/const/field-detail.js +0 -35
  70. package/dist/node_modules/mariadb/lib/const/field-type.js +0 -71
  71. package/dist/node_modules/mariadb/lib/const/server-status.js +0 -30
  72. package/dist/node_modules/mariadb/lib/const/state-change.js +0 -12
  73. package/dist/node_modules/mariadb/lib/filtered-pool-cluster.js +0 -81
  74. package/dist/node_modules/mariadb/lib/io/bulk-packet.js +0 -590
  75. package/dist/node_modules/mariadb/lib/io/compression-input-stream.js +0 -141
  76. package/dist/node_modules/mariadb/lib/io/compression-output-stream.js +0 -171
  77. package/dist/node_modules/mariadb/lib/io/packet-input-stream.js +0 -193
  78. package/dist/node_modules/mariadb/lib/io/packet-node-encoded.js +0 -36
  79. package/dist/node_modules/mariadb/lib/io/packet-node-iconv.js +0 -37
  80. package/dist/node_modules/mariadb/lib/io/packet-output-stream.js +0 -502
  81. package/dist/node_modules/mariadb/lib/io/packet.js +0 -515
  82. package/dist/node_modules/mariadb/lib/io/rewrite-packet.js +0 -481
  83. package/dist/node_modules/mariadb/lib/misc/connection-information.js +0 -96
  84. package/dist/node_modules/mariadb/lib/misc/errors.js +0 -123
  85. package/dist/node_modules/mariadb/lib/misc/parse.js +0 -1033
  86. package/dist/node_modules/mariadb/lib/misc/utils.js +0 -298
  87. package/dist/node_modules/mariadb/lib/pool-base.js +0 -611
  88. package/dist/node_modules/mariadb/lib/pool-callback.js +0 -202
  89. package/dist/node_modules/mariadb/lib/pool-cluster-callback.js +0 -66
  90. package/dist/node_modules/mariadb/lib/pool-cluster.js +0 -407
  91. package/dist/node_modules/mariadb/lib/pool-promise.js +0 -108
  92. package/dist/node_modules/mariadb/node_modules/@types/node/assert/strict.d.ts +0 -8
  93. package/dist/node_modules/mariadb/node_modules/@types/node/assert.d.ts +0 -912
  94. package/dist/node_modules/mariadb/node_modules/@types/node/async_hooks.d.ts +0 -501
  95. package/dist/node_modules/mariadb/node_modules/@types/node/buffer.d.ts +0 -2232
  96. package/dist/node_modules/mariadb/node_modules/@types/node/child_process.d.ts +0 -1366
  97. package/dist/node_modules/mariadb/node_modules/@types/node/cluster.d.ts +0 -414
  98. package/dist/node_modules/mariadb/node_modules/@types/node/console.d.ts +0 -412
  99. package/dist/node_modules/mariadb/node_modules/@types/node/constants.d.ts +0 -18
  100. package/dist/node_modules/mariadb/node_modules/@types/node/crypto.d.ts +0 -3338
  101. package/dist/node_modules/mariadb/node_modules/@types/node/dgram.d.ts +0 -545
  102. package/dist/node_modules/mariadb/node_modules/@types/node/diagnostics_channel.d.ts +0 -152
  103. package/dist/node_modules/mariadb/node_modules/@types/node/dns/promises.d.ts +0 -370
  104. package/dist/node_modules/mariadb/node_modules/@types/node/dns.d.ts +0 -659
  105. package/dist/node_modules/mariadb/node_modules/@types/node/domain.d.ts +0 -169
  106. package/dist/node_modules/mariadb/node_modules/@types/node/events.d.ts +0 -651
  107. package/dist/node_modules/mariadb/node_modules/@types/node/fs/promises.d.ts +0 -1091
  108. package/dist/node_modules/mariadb/node_modules/@types/node/fs.d.ts +0 -3869
  109. package/dist/node_modules/mariadb/node_modules/@types/node/globals.d.ts +0 -294
  110. package/dist/node_modules/mariadb/node_modules/@types/node/globals.global.d.ts +0 -1
  111. package/dist/node_modules/mariadb/node_modules/@types/node/http.d.ts +0 -1396
  112. package/dist/node_modules/mariadb/node_modules/@types/node/http2.d.ts +0 -2101
  113. package/dist/node_modules/mariadb/node_modules/@types/node/https.d.ts +0 -391
  114. package/dist/node_modules/mariadb/node_modules/@types/node/index.d.ts +0 -129
  115. package/dist/node_modules/mariadb/node_modules/@types/node/inspector.d.ts +0 -2744
  116. package/dist/node_modules/mariadb/node_modules/@types/node/module.d.ts +0 -114
  117. package/dist/node_modules/mariadb/node_modules/@types/node/net.d.ts +0 -791
  118. package/dist/node_modules/mariadb/node_modules/@types/node/os.d.ts +0 -455
  119. package/dist/node_modules/mariadb/node_modules/@types/node/package.json +0 -220
  120. package/dist/node_modules/mariadb/node_modules/@types/node/path.d.ts +0 -180
  121. package/dist/node_modules/mariadb/node_modules/@types/node/perf_hooks.d.ts +0 -557
  122. package/dist/node_modules/mariadb/node_modules/@types/node/process.d.ts +0 -1481
  123. package/dist/node_modules/mariadb/node_modules/@types/node/punycode.d.ts +0 -117
  124. package/dist/node_modules/mariadb/node_modules/@types/node/querystring.d.ts +0 -131
  125. package/dist/node_modules/mariadb/node_modules/@types/node/readline.d.ts +0 -650
  126. package/dist/node_modules/mariadb/node_modules/@types/node/repl.d.ts +0 -424
  127. package/dist/node_modules/mariadb/node_modules/@types/node/stream/consumers.d.ts +0 -24
  128. package/dist/node_modules/mariadb/node_modules/@types/node/stream/promises.d.ts +0 -42
  129. package/dist/node_modules/mariadb/node_modules/@types/node/stream/web.d.ts +0 -330
  130. package/dist/node_modules/mariadb/node_modules/@types/node/stream.d.ts +0 -1249
  131. package/dist/node_modules/mariadb/node_modules/@types/node/string_decoder.d.ts +0 -67
  132. package/dist/node_modules/mariadb/node_modules/@types/node/timers/promises.d.ts +0 -68
  133. package/dist/node_modules/mariadb/node_modules/@types/node/timers.d.ts +0 -94
  134. package/dist/node_modules/mariadb/node_modules/@types/node/tls.d.ts +0 -1020
  135. package/dist/node_modules/mariadb/node_modules/@types/node/trace_events.d.ts +0 -161
  136. package/dist/node_modules/mariadb/node_modules/@types/node/tty.d.ts +0 -204
  137. package/dist/node_modules/mariadb/node_modules/@types/node/url.d.ts +0 -891
  138. package/dist/node_modules/mariadb/node_modules/@types/node/util.d.ts +0 -1594
  139. package/dist/node_modules/mariadb/node_modules/@types/node/v8.d.ts +0 -378
  140. package/dist/node_modules/mariadb/node_modules/@types/node/vm.d.ts +0 -507
  141. package/dist/node_modules/mariadb/node_modules/@types/node/wasi.d.ts +0 -158
  142. package/dist/node_modules/mariadb/node_modules/@types/node/worker_threads.d.ts +0 -649
  143. package/dist/node_modules/mariadb/node_modules/@types/node/zlib.d.ts +0 -517
  144. package/dist/node_modules/mariadb/package.json +0 -1
  145. package/dist/node_modules/mariadb/promise.js +0 -34
  146. package/dist/node_modules/mariadb/types/index.d.ts +0 -870
@@ -1,330 +0,0 @@
1
- declare module 'stream/web' {
2
- // stub module, pending copy&paste from .d.ts or manual impl
3
- // copy from lib.dom.d.ts
4
- interface ReadableWritablePair<R = any, W = any> {
5
- readable: ReadableStream<R>;
6
- /**
7
- * Provides a convenient, chainable way of piping this readable stream
8
- * through a transform stream (or any other { writable, readable }
9
- * pair). It simply pipes the stream into the writable side of the
10
- * supplied pair, and returns the readable side for further use.
11
- *
12
- * Piping a stream will lock it for the duration of the pipe, preventing
13
- * any other consumer from acquiring a reader.
14
- */
15
- writable: WritableStream<W>;
16
- }
17
- interface StreamPipeOptions {
18
- preventAbort?: boolean;
19
- preventCancel?: boolean;
20
- /**
21
- * Pipes this readable stream to a given writable stream destination.
22
- * The way in which the piping process behaves under various error
23
- * conditions can be customized with a number of passed options. It
24
- * returns a promise that fulfills when the piping process completes
25
- * successfully, or rejects if any errors were encountered.
26
- *
27
- * Piping a stream will lock it for the duration of the pipe, preventing
28
- * any other consumer from acquiring a reader.
29
- *
30
- * Errors and closures of the source and destination streams propagate
31
- * as follows:
32
- *
33
- * An error in this source readable stream will abort destination,
34
- * unless preventAbort is truthy. The returned promise will be rejected
35
- * with the source's error, or with any error that occurs during
36
- * aborting the destination.
37
- *
38
- * An error in destination will cancel this source readable stream,
39
- * unless preventCancel is truthy. The returned promise will be rejected
40
- * with the destination's error, or with any error that occurs during
41
- * canceling the source.
42
- *
43
- * When this source readable stream closes, destination will be closed,
44
- * unless preventClose is truthy. The returned promise will be fulfilled
45
- * once this process completes, unless an error is encountered while
46
- * closing the destination, in which case it will be rejected with that
47
- * error.
48
- *
49
- * If destination starts out closed or closing, this source readable
50
- * stream will be canceled, unless preventCancel is true. The returned
51
- * promise will be rejected with an error indicating piping to a closed
52
- * stream failed, or with any error that occurs during canceling the
53
- * source.
54
- *
55
- * The signal option can be set to an AbortSignal to allow aborting an
56
- * ongoing pipe operation via the corresponding AbortController. In this
57
- * case, this source readable stream will be canceled, and destination
58
- * aborted, unless the respective options preventCancel or preventAbort
59
- * are set.
60
- */
61
- preventClose?: boolean;
62
- signal?: AbortSignal;
63
- }
64
- interface ReadableStreamGenericReader {
65
- readonly closed: Promise<undefined>;
66
- cancel(reason?: any): Promise<void>;
67
- }
68
- interface ReadableStreamDefaultReadValueResult<T> {
69
- done: false;
70
- value: T;
71
- }
72
- interface ReadableStreamDefaultReadDoneResult {
73
- done: true;
74
- value?: undefined;
75
- }
76
- type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
77
- type ReadableStreamDefaultReadResult<T> = ReadableStreamDefaultReadValueResult<T> | ReadableStreamDefaultReadDoneResult;
78
- interface ReadableByteStreamControllerCallback {
79
- (controller: ReadableByteStreamController): void | PromiseLike<void>;
80
- }
81
- interface UnderlyingSinkAbortCallback {
82
- (reason?: any): void | PromiseLike<void>;
83
- }
84
- interface UnderlyingSinkCloseCallback {
85
- (): void | PromiseLike<void>;
86
- }
87
- interface UnderlyingSinkStartCallback {
88
- (controller: WritableStreamDefaultController): any;
89
- }
90
- interface UnderlyingSinkWriteCallback<W> {
91
- (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
92
- }
93
- interface UnderlyingSourceCancelCallback {
94
- (reason?: any): void | PromiseLike<void>;
95
- }
96
- interface UnderlyingSourcePullCallback<R> {
97
- (controller: ReadableStreamController<R>): void | PromiseLike<void>;
98
- }
99
- interface UnderlyingSourceStartCallback<R> {
100
- (controller: ReadableStreamController<R>): any;
101
- }
102
- interface TransformerFlushCallback<O> {
103
- (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
104
- }
105
- interface TransformerStartCallback<O> {
106
- (controller: TransformStreamDefaultController<O>): any;
107
- }
108
- interface TransformerTransformCallback<I, O> {
109
- (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
110
- }
111
- interface UnderlyingByteSource {
112
- autoAllocateChunkSize?: number;
113
- cancel?: ReadableStreamErrorCallback;
114
- pull?: ReadableByteStreamControllerCallback;
115
- start?: ReadableByteStreamControllerCallback;
116
- type: 'bytes';
117
- }
118
- interface UnderlyingSource<R = any> {
119
- cancel?: UnderlyingSourceCancelCallback;
120
- pull?: UnderlyingSourcePullCallback<R>;
121
- start?: UnderlyingSourceStartCallback<R>;
122
- type?: undefined;
123
- }
124
- interface UnderlyingSink<W = any> {
125
- abort?: UnderlyingSinkAbortCallback;
126
- close?: UnderlyingSinkCloseCallback;
127
- start?: UnderlyingSinkStartCallback;
128
- type?: undefined;
129
- write?: UnderlyingSinkWriteCallback<W>;
130
- }
131
- interface ReadableStreamErrorCallback {
132
- (reason: any): void | PromiseLike<void>;
133
- }
134
- /** This Streams API interface represents a readable stream of byte data. */
135
- interface ReadableStream<R = any> {
136
- readonly locked: boolean;
137
- cancel(reason?: any): Promise<void>;
138
- getReader(): ReadableStreamDefaultReader<R>;
139
- pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
140
- pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
141
- tee(): [ReadableStream<R>, ReadableStream<R>];
142
- values(options?: { preventCancel?: boolean }): AsyncIterableIterator<R>;
143
- [Symbol.asyncIterator](): AsyncIterableIterator<R>;
144
- }
145
- const ReadableStream: {
146
- prototype: ReadableStream;
147
- new (underlyingSource: UnderlyingByteSource, strategy?: QueuingStrategy<Uint8Array>): ReadableStream<Uint8Array>;
148
- new <R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
149
- };
150
- interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
151
- read(): Promise<ReadableStreamDefaultReadResult<R>>;
152
- releaseLock(): void;
153
- }
154
- const ReadableStreamDefaultReader: {
155
- prototype: ReadableStreamDefaultReader;
156
- new <R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
157
- };
158
- const ReadableStreamBYOBReader: any;
159
- const ReadableStreamBYOBRequest: any;
160
- interface ReadableByteStreamController {
161
- readonly byobRequest: undefined;
162
- readonly desiredSize: number | null;
163
- close(): void;
164
- enqueue(chunk: ArrayBufferView): void;
165
- error(error?: any): void;
166
- }
167
- const ReadableByteStreamController: {
168
- prototype: ReadableByteStreamController;
169
- new (): ReadableByteStreamController;
170
- };
171
- interface ReadableStreamDefaultController<R = any> {
172
- readonly desiredSize: number | null;
173
- close(): void;
174
- enqueue(chunk?: R): void;
175
- error(e?: any): void;
176
- }
177
- const ReadableStreamDefaultController: {
178
- prototype: ReadableStreamDefaultController;
179
- new (): ReadableStreamDefaultController;
180
- };
181
- interface Transformer<I = any, O = any> {
182
- flush?: TransformerFlushCallback<O>;
183
- readableType?: undefined;
184
- start?: TransformerStartCallback<O>;
185
- transform?: TransformerTransformCallback<I, O>;
186
- writableType?: undefined;
187
- }
188
- interface TransformStream<I = any, O = any> {
189
- readonly readable: ReadableStream<O>;
190
- readonly writable: WritableStream<I>;
191
- }
192
- const TransformStream: {
193
- prototype: TransformStream;
194
- new <I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
195
- };
196
- interface TransformStreamDefaultController<O = any> {
197
- readonly desiredSize: number | null;
198
- enqueue(chunk?: O): void;
199
- error(reason?: any): void;
200
- terminate(): void;
201
- }
202
- const TransformStreamDefaultController: {
203
- prototype: TransformStreamDefaultController;
204
- new (): TransformStreamDefaultController;
205
- };
206
- /**
207
- * This Streams API interface provides a standard abstraction for writing
208
- * streaming data to a destination, known as a sink. This object comes with
209
- * built-in back pressure and queuing.
210
- */
211
- interface WritableStream<W = any> {
212
- readonly locked: boolean;
213
- abort(reason?: any): Promise<void>;
214
- close(): Promise<void>;
215
- getWriter(): WritableStreamDefaultWriter<W>;
216
- }
217
- const WritableStream: {
218
- prototype: WritableStream;
219
- new <W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
220
- };
221
- /**
222
- * This Streams API interface is the object returned by
223
- * WritableStream.getWriter() and once created locks the < writer to the
224
- * WritableStream ensuring that no other streams can write to the underlying
225
- * sink.
226
- */
227
- interface WritableStreamDefaultWriter<W = any> {
228
- readonly closed: Promise<undefined>;
229
- readonly desiredSize: number | null;
230
- readonly ready: Promise<undefined>;
231
- abort(reason?: any): Promise<void>;
232
- close(): Promise<void>;
233
- releaseLock(): void;
234
- write(chunk?: W): Promise<void>;
235
- }
236
- const WritableStreamDefaultWriter: {
237
- prototype: WritableStreamDefaultWriter;
238
- new <W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
239
- };
240
- /**
241
- * This Streams API interface represents a controller allowing control of a
242
- * WritableStream's state. When constructing a WritableStream, the
243
- * underlying sink is given a corresponding WritableStreamDefaultController
244
- * instance to manipulate.
245
- */
246
- interface WritableStreamDefaultController {
247
- error(e?: any): void;
248
- }
249
- const WritableStreamDefaultController: {
250
- prototype: WritableStreamDefaultController;
251
- new (): WritableStreamDefaultController;
252
- };
253
- interface QueuingStrategy<T = any> {
254
- highWaterMark?: number;
255
- size?: QueuingStrategySize<T>;
256
- }
257
- interface QueuingStrategySize<T = any> {
258
- (chunk?: T): number;
259
- }
260
- interface QueuingStrategyInit {
261
- /**
262
- * Creates a new ByteLengthQueuingStrategy with the provided high water
263
- * mark.
264
- *
265
- * Note that the provided high water mark will not be validated ahead of
266
- * time. Instead, if it is negative, NaN, or not a number, the resulting
267
- * ByteLengthQueuingStrategy will cause the corresponding stream
268
- * constructor to throw.
269
- */
270
- highWaterMark: number;
271
- }
272
- /**
273
- * This Streams API interface provides a built-in byte length queuing
274
- * strategy that can be used when constructing streams.
275
- */
276
- interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
277
- readonly highWaterMark: number;
278
- readonly size: QueuingStrategySize<ArrayBufferView>;
279
- }
280
- const ByteLengthQueuingStrategy: {
281
- prototype: ByteLengthQueuingStrategy;
282
- new (init: QueuingStrategyInit): ByteLengthQueuingStrategy;
283
- };
284
- /**
285
- * This Streams API interface provides a built-in byte length queuing
286
- * strategy that can be used when constructing streams.
287
- */
288
- interface CountQueuingStrategy extends QueuingStrategy {
289
- readonly highWaterMark: number;
290
- readonly size: QueuingStrategySize;
291
- }
292
- const CountQueuingStrategy: {
293
- prototype: CountQueuingStrategy;
294
- new (init: QueuingStrategyInit): CountQueuingStrategy;
295
- };
296
- interface TextEncoderStream {
297
- /** Returns "utf-8". */
298
- readonly encoding: 'utf-8';
299
- readonly readable: ReadableStream<Uint8Array>;
300
- readonly writable: WritableStream<string>;
301
- readonly [Symbol.toStringTag]: string;
302
- }
303
- const TextEncoderStream: {
304
- prototype: TextEncoderStream;
305
- new (): TextEncoderStream;
306
- };
307
- interface TextDecoderOptions {
308
- fatal?: boolean;
309
- ignoreBOM?: boolean;
310
- }
311
- type BufferSource = ArrayBufferView | ArrayBuffer;
312
- interface TextDecoderStream {
313
- /** Returns encoding's name, lower cased. */
314
- readonly encoding: string;
315
- /** Returns `true` if error mode is "fatal", and `false` otherwise. */
316
- readonly fatal: boolean;
317
- /** Returns `true` if ignore BOM flag is set, and `false` otherwise. */
318
- readonly ignoreBOM: boolean;
319
- readonly readable: ReadableStream<string>;
320
- readonly writable: WritableStream<BufferSource>;
321
- readonly [Symbol.toStringTag]: string;
322
- }
323
- const TextDecoderStream: {
324
- prototype: TextDecoderStream;
325
- new (label?: string, options?: TextDecoderOptions): TextDecoderStream;
326
- };
327
- }
328
- declare module 'node:stream/web' {
329
- export * from 'stream/web';
330
- }