@whatwg-node/node-fetch 0.5.5 → 0.5.6-alpha-20240208112645-d74f1cddd4e8d2c0d50352ebc6a2a41c2c2fce11
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/cjs/Request.js +1 -0
- package/esm/Request.js +1 -0
- package/package.json +1 -1
- package/typings/Request.d.cts +2 -0
- package/typings/Request.d.ts +2 -0
package/cjs/Request.js
CHANGED
@@ -47,6 +47,7 @@ class PonyfillRequest extends Body_js_1.PonyfillBody {
|
|
47
47
|
this.referrerPolicy = requestInit?.referrerPolicy || 'no-referrer';
|
48
48
|
this._signal = requestInit?.signal;
|
49
49
|
this.headersSerializer = requestInit?.headersSerializer;
|
50
|
+
this.duplex = requestInit?.duplex || 'half';
|
50
51
|
this.url = url || '';
|
51
52
|
this.destination = 'document';
|
52
53
|
this.priority = 'auto';
|
package/esm/Request.js
CHANGED
@@ -44,6 +44,7 @@ export class PonyfillRequest extends PonyfillBody {
|
|
44
44
|
this.referrerPolicy = requestInit?.referrerPolicy || 'no-referrer';
|
45
45
|
this._signal = requestInit?.signal;
|
46
46
|
this.headersSerializer = requestInit?.headersSerializer;
|
47
|
+
this.duplex = requestInit?.duplex || 'half';
|
47
48
|
this.url = url || '';
|
48
49
|
this.destination = 'document';
|
49
50
|
this.priority = 'auto';
|
package/package.json
CHANGED
package/typings/Request.d.cts
CHANGED
@@ -4,6 +4,7 @@ import { BodyPonyfillInit, PonyfillBody, PonyfillBodyOptions } from './Body.cjs'
|
|
4
4
|
import { PonyfillHeadersInit } from './Headers.cjs';
|
5
5
|
export type RequestPonyfillInit = PonyfillBodyOptions & Omit<RequestInit, 'body' | 'headers'> & {
|
6
6
|
body?: BodyPonyfillInit | null;
|
7
|
+
duplex?: 'half' | 'full';
|
7
8
|
headers?: PonyfillHeadersInit;
|
8
9
|
headersSerializer?: HeadersSerializer;
|
9
10
|
agent?: Agent;
|
@@ -26,6 +27,7 @@ export declare class PonyfillRequest<TJSON = any> extends PonyfillBody<TJSON> im
|
|
26
27
|
referrerPolicy: ReferrerPolicy;
|
27
28
|
url: string;
|
28
29
|
agent?: Agent;
|
30
|
+
duplex: 'half' | 'full';
|
29
31
|
private _signal;
|
30
32
|
get signal(): AbortSignal;
|
31
33
|
clone(): PonyfillRequest<TJSON>;
|
package/typings/Request.d.ts
CHANGED
@@ -4,6 +4,7 @@ import { BodyPonyfillInit, PonyfillBody, PonyfillBodyOptions } from './Body.js';
|
|
4
4
|
import { PonyfillHeadersInit } from './Headers.js';
|
5
5
|
export type RequestPonyfillInit = PonyfillBodyOptions & Omit<RequestInit, 'body' | 'headers'> & {
|
6
6
|
body?: BodyPonyfillInit | null;
|
7
|
+
duplex?: 'half' | 'full';
|
7
8
|
headers?: PonyfillHeadersInit;
|
8
9
|
headersSerializer?: HeadersSerializer;
|
9
10
|
agent?: Agent;
|
@@ -26,6 +27,7 @@ export declare class PonyfillRequest<TJSON = any> extends PonyfillBody<TJSON> im
|
|
26
27
|
referrerPolicy: ReferrerPolicy;
|
27
28
|
url: string;
|
28
29
|
agent?: Agent;
|
30
|
+
duplex: 'half' | 'full';
|
29
31
|
private _signal;
|
30
32
|
get signal(): AbortSignal;
|
31
33
|
clone(): PonyfillRequest<TJSON>;
|