undici-types 6.3.0 → 6.4.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/dispatcher.d.ts +7 -1
- package/handlers.d.ts +10 -4
- package/package.json +1 -1
- package/readable.d.ts +2 -3
package/dispatcher.d.ts
CHANGED
|
@@ -131,6 +131,8 @@ declare namespace Dispatcher {
|
|
|
131
131
|
opaque?: unknown;
|
|
132
132
|
/** Default: 0 */
|
|
133
133
|
maxRedirections?: number;
|
|
134
|
+
/** Default: false */
|
|
135
|
+
redirectionLimitReached?: boolean;
|
|
134
136
|
/** Default: `null` */
|
|
135
137
|
responseHeader?: 'raw' | null;
|
|
136
138
|
}
|
|
@@ -141,6 +143,8 @@ declare namespace Dispatcher {
|
|
|
141
143
|
signal?: AbortSignal | EventEmitter | null;
|
|
142
144
|
/** Default: 0 */
|
|
143
145
|
maxRedirections?: number;
|
|
146
|
+
/** Default: false */
|
|
147
|
+
redirectionLimitReached?: boolean;
|
|
144
148
|
/** Default: `null` */
|
|
145
149
|
onInfo?: (info: { statusCode: number, headers: Record<string, string | string[]> }) => void;
|
|
146
150
|
/** Default: `null` */
|
|
@@ -164,6 +168,8 @@ declare namespace Dispatcher {
|
|
|
164
168
|
signal?: AbortSignal | EventEmitter | null;
|
|
165
169
|
/** Default: 0 */
|
|
166
170
|
maxRedirections?: number;
|
|
171
|
+
/** Default: false */
|
|
172
|
+
redirectionLimitReached?: boolean;
|
|
167
173
|
/** Default: `null` */
|
|
168
174
|
responseHeader?: 'raw' | null;
|
|
169
175
|
}
|
|
@@ -229,7 +235,7 @@ declare namespace Dispatcher {
|
|
|
229
235
|
* @link https://fetch.spec.whatwg.org/#body-mixin
|
|
230
236
|
*/
|
|
231
237
|
interface BodyMixin {
|
|
232
|
-
readonly body?: never;
|
|
238
|
+
readonly body?: never;
|
|
233
239
|
readonly bodyUsed: boolean;
|
|
234
240
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
235
241
|
blob(): Promise<Blob>;
|
package/handlers.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import Dispatcher from "./dispatcher";
|
|
2
2
|
|
|
3
|
-
export declare class RedirectHandler implements Dispatcher.DispatchHandlers{
|
|
4
|
-
constructor
|
|
3
|
+
export declare class RedirectHandler implements Dispatcher.DispatchHandlers {
|
|
4
|
+
constructor(
|
|
5
|
+
dispatch: Dispatcher,
|
|
6
|
+
maxRedirections: number,
|
|
7
|
+
opts: Dispatcher.DispatchOptions,
|
|
8
|
+
handler: Dispatcher.DispatchHandlers,
|
|
9
|
+
redirectionLimitReached: boolean
|
|
10
|
+
);
|
|
5
11
|
}
|
|
6
12
|
|
|
7
|
-
export declare class DecoratorHandler implements Dispatcher.DispatchHandlers{
|
|
8
|
-
constructor
|
|
13
|
+
export declare class DecoratorHandler implements Dispatcher.DispatchHandlers {
|
|
14
|
+
constructor(handler: Dispatcher.DispatchHandlers);
|
|
9
15
|
}
|
package/package.json
CHANGED
package/readable.d.ts
CHANGED
|
@@ -44,9 +44,8 @@ declare class BodyReadable extends Readable {
|
|
|
44
44
|
*/
|
|
45
45
|
readonly bodyUsed: boolean
|
|
46
46
|
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* If body is null, it should return null as the body
|
|
47
|
+
/**
|
|
48
|
+
* If body is null, it should return null as the body
|
|
50
49
|
*
|
|
51
50
|
* If body is not null, should return the body as a ReadableStream
|
|
52
51
|
*
|