@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.
@@ -3,12 +3,16 @@ export declare class HttpError extends Error {
3
3
  status: number;
4
4
  statusText: string;
5
5
  url: string;
6
- body: unknown;
6
+ body: {
7
+ message: string;
8
+ };
7
9
  headers: Record<string, string>;
8
- constructor(args: {
10
+ constructor({ res, url, body: { message }, }: {
9
11
  res: Response;
10
12
  url: string;
11
- body: unknown;
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, any>;
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.2.18",
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.3.9",
22
+ "@emeryld/rrroutes-contract": "^2.4.0",
23
23
  "zod": "^4.1.13"
24
24
  },
25
25
  "peerDependencies": {