@zimic/fetch 0.5.2 → 0.6.0-canary.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/dist/index.d.ts +5 -0
- package/package.json +4 -4
- package/src/client/types/requests.ts +5 -0
package/dist/index.d.ts
CHANGED
|
@@ -52,7 +52,10 @@ type FetchRequestInit<Schema extends HttpSchema, Method extends HttpSchemaMethod
|
|
|
52
52
|
method: Method;
|
|
53
53
|
/** The base URL to prefix the path of the request. */
|
|
54
54
|
baseURL?: string;
|
|
55
|
+
/** The redirect mode of the request. */
|
|
55
56
|
redirect?: Redirect;
|
|
57
|
+
/** The duplex mode of the request. */
|
|
58
|
+
duplex?: 'half';
|
|
56
59
|
} & (Path extends Path ? FetchRequestInitPerPath<Default<Schema[Path][Method]>> : never);
|
|
57
60
|
declare namespace FetchRequestInit {
|
|
58
61
|
/** The default options for each request sent by a fetch instance. */
|
|
@@ -64,6 +67,8 @@ declare namespace FetchRequestInit {
|
|
|
64
67
|
headers?: HttpHeadersSchema.Loose;
|
|
65
68
|
/** The search parameters of the request. */
|
|
66
69
|
searchParams?: HttpSearchParamsSchema.Loose;
|
|
70
|
+
/** The duplex mode of the request. */
|
|
71
|
+
duplex?: 'half';
|
|
67
72
|
}
|
|
68
73
|
/** A loosely typed version of {@link FetchRequestInit `FetchRequestInit`}. */
|
|
69
74
|
type Loose = Partial<Defaults>;
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"api",
|
|
14
14
|
"static"
|
|
15
15
|
],
|
|
16
|
-
"version": "0.
|
|
16
|
+
"version": "0.6.0-canary.0",
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
19
19
|
"url": "https://github.com/zimicjs/zimic.git",
|
|
@@ -71,14 +71,14 @@
|
|
|
71
71
|
"typescript": "^5.8.3",
|
|
72
72
|
"vitest": "^3.2.4",
|
|
73
73
|
"@zimic/eslint-config-node": "0.0.0",
|
|
74
|
-
"@zimic/interceptor": "0.20.2-canary.2",
|
|
75
74
|
"@zimic/lint-staged-config": "0.0.0",
|
|
76
75
|
"@zimic/tsconfig": "0.0.0",
|
|
77
|
-
"@zimic/utils": "0.0.0"
|
|
76
|
+
"@zimic/utils": "0.0.0",
|
|
77
|
+
"@zimic/interceptor": "0.21.0-canary.0"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
80
|
"typescript": ">=5.0.0",
|
|
81
|
-
"@zimic/http": "^0.6.0 || 0.6.1
|
|
81
|
+
"@zimic/http": "^0.6.0 || 0.6.1"
|
|
82
82
|
},
|
|
83
83
|
"peerDependenciesMeta": {
|
|
84
84
|
"typescript": {
|
|
@@ -80,7 +80,10 @@ export type FetchRequestInit<
|
|
|
80
80
|
method: Method;
|
|
81
81
|
/** The base URL to prefix the path of the request. */
|
|
82
82
|
baseURL?: string;
|
|
83
|
+
/** The redirect mode of the request. */
|
|
83
84
|
redirect?: Redirect;
|
|
85
|
+
/** The duplex mode of the request. */
|
|
86
|
+
duplex?: 'half';
|
|
84
87
|
} & (Path extends Path ? FetchRequestInitPerPath<Default<Schema[Path][Method]>> : never);
|
|
85
88
|
|
|
86
89
|
export namespace FetchRequestInit {
|
|
@@ -93,6 +96,8 @@ export namespace FetchRequestInit {
|
|
|
93
96
|
headers?: HttpHeadersSchema.Loose;
|
|
94
97
|
/** The search parameters of the request. */
|
|
95
98
|
searchParams?: HttpSearchParamsSchema.Loose;
|
|
99
|
+
/** The duplex mode of the request. */
|
|
100
|
+
duplex?: 'half';
|
|
96
101
|
}
|
|
97
102
|
|
|
98
103
|
/** A loosely typed version of {@link FetchRequestInit `FetchRequestInit`}. */
|