undici-types 8.4.0 → 8.5.0
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/client.d.ts +5 -0
- package/fetch.d.ts +1 -0
- package/package.json +1 -1
package/client.d.ts
CHANGED
|
@@ -116,6 +116,11 @@ export declare namespace Client {
|
|
|
116
116
|
bytesRead?: number
|
|
117
117
|
}
|
|
118
118
|
export interface WebSocketOptions {
|
|
119
|
+
/**
|
|
120
|
+
* Maximum number of fragments in a message. Set to 0 to disable the limit.
|
|
121
|
+
* @default 131072
|
|
122
|
+
*/
|
|
123
|
+
maxFragments?: number;
|
|
119
124
|
/**
|
|
120
125
|
* Maximum allowed payload size in bytes for WebSocket messages.
|
|
121
126
|
* Applied to uncompressed messages, compressed frame payloads, and decompressed (permessage-deflate) messages.
|
package/fetch.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ export class BodyMixin {
|
|
|
57
57
|
readonly formData: () => Promise<FormData>
|
|
58
58
|
readonly json: () => Promise<unknown>
|
|
59
59
|
readonly text: () => Promise<string>
|
|
60
|
+
readonly textStream: () => ReadableStream<string>
|
|
60
61
|
}
|
|
61
62
|
|
|
62
63
|
export interface SpecIterator<T, TReturn = any, TNext = undefined> {
|