@emeryld/rrroutes-client 2.2.18 → 2.3.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/README.md +62 -44
- package/dist/index.cjs +77 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +77 -29
- package/dist/index.mjs.map +1 -1
- package/dist/routesV3.client.fetch.d.ts +7 -3
- package/dist/routesV3.client.types.d.ts +1 -1
- package/package.json +2 -2
|
@@ -3,12 +3,16 @@ export declare class HttpError extends Error {
|
|
|
3
3
|
status: number;
|
|
4
4
|
statusText: string;
|
|
5
5
|
url: string;
|
|
6
|
-
body:
|
|
6
|
+
body: {
|
|
7
|
+
message: string;
|
|
8
|
+
};
|
|
7
9
|
headers: Record<string, string>;
|
|
8
|
-
constructor(
|
|
10
|
+
constructor({ res, url, body: { message }, }: {
|
|
9
11
|
res: Response;
|
|
10
12
|
url: string;
|
|
11
|
-
body:
|
|
13
|
+
body: {
|
|
14
|
+
message: string;
|
|
15
|
+
};
|
|
12
16
|
});
|
|
13
17
|
}
|
|
14
18
|
/**
|
|
@@ -20,7 +20,7 @@ export type Fetcher = <T>(req: FetchInput) => Promise<FetcherOutput<T>> | Fetche
|
|
|
20
20
|
export type FetcherOutput<T> = {
|
|
21
21
|
data: T;
|
|
22
22
|
status: number;
|
|
23
|
-
headers: Record<string,
|
|
23
|
+
headers: Record<string, string>;
|
|
24
24
|
};
|
|
25
25
|
/** Debug verbosity levels supported by the client. */
|
|
26
26
|
export type RouteClientDebugMode = 'minimal' | 'complete';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emeryld/rrroutes-client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dist"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@emeryld/rrroutes-contract": "^2.
|
|
22
|
+
"@emeryld/rrroutes-contract": "^2.4.0",
|
|
23
23
|
"zod": "^4.1.13"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|