@readyfor/api-client-base 0.178.0-pr941.56b9d0d → 0.178.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.
@@ -68,8 +68,7 @@ var createVoidFetcher = (customRequestInit = {}) => (input, requestInit = {}) =>
68
68
  }).then(async (res) => {
69
69
  if (res.ok) return;
70
70
  const code = Object.values(errorStatusCode).includes(res.status) ? res.status : 999;
71
- const body = await res.text();
72
- throw new HTTPError(code, body);
71
+ throw new HTTPError(code);
73
72
  });
74
73
 
75
74
  export {
package/dist/fetcher.js CHANGED
@@ -159,8 +159,7 @@ var createVoidFetcher = (customRequestInit = {}) => (input, requestInit = {}) =>
159
159
  }).then(async (res) => {
160
160
  if (res.ok) return;
161
161
  const code = Object.values(errorStatusCode).includes(res.status) ? res.status : 999;
162
- const body = await res.text();
163
- throw new HTTPError(code, body);
162
+ throw new HTTPError(code);
164
163
  });
165
164
  // Annotate the CommonJS export names for ESM import in node:
166
165
  0 && (module.exports = {
package/dist/fetcher.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  createJsonFetcher,
4
4
  createTextFetcher,
5
5
  createVoidFetcher
6
- } from "./chunk-GD73YYGW.mjs";
6
+ } from "./chunk-C5P5R2CL.mjs";
7
7
  import "./chunk-PY35XWDS.mjs";
8
8
  import "./chunk-JCZWXJBU.mjs";
9
9
  import "./chunk-472P3XVV.mjs";
package/dist/index.js CHANGED
@@ -196,8 +196,7 @@ var createVoidFetcher = (customRequestInit = {}) => (input, requestInit = {}) =>
196
196
  }).then(async (res) => {
197
197
  if (res.ok) return;
198
198
  const code = Object.values(errorStatusCode).includes(res.status) ? res.status : 999;
199
- const body = await res.text();
200
- throw new HTTPError(code, body);
199
+ throw new HTTPError(code);
201
200
  });
202
201
 
203
202
  // src/requestUrl.ts
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  createJsonFetcher,
4
4
  createTextFetcher,
5
5
  createVoidFetcher
6
- } from "./chunk-GD73YYGW.mjs";
6
+ } from "./chunk-C5P5R2CL.mjs";
7
7
  import {
8
8
  HTTPError,
9
9
  errorStatusCode,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readyfor/api-client-base",
3
- "version": "0.178.0-pr941.56b9d0d",
3
+ "version": "0.178.0",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -20,21 +20,24 @@
20
20
  "require": "./dist/react/index.js"
21
21
  }
22
22
  },
23
+ "scripts": {
24
+ "build": "tsup"
25
+ },
23
26
  "dependencies": {
24
- "qs": "6.14.0",
27
+ "qs": "6.13.1",
25
28
  "zod": "^3.24.1"
26
29
  },
27
30
  "devDependencies": {
28
- "@types/qs": "6.9.18",
31
+ "@types/qs": "6.9.17",
29
32
  "@types/react": "^18.3.12",
30
33
  "@types/use-sync-external-store": "0.0.6",
31
34
  "react": "^18.3.1",
32
- "swr": "^2.3.3",
35
+ "swr": "2.2.5",
33
36
  "use-sync-external-store": "1.2.2"
34
37
  },
35
38
  "peerDependencies": {
36
39
  "react": "^18.3.1",
37
- "swr": "^2.3.3",
40
+ "swr": "^2.2.5",
38
41
  "use-sync-external-store": "1.2.2"
39
42
  },
40
43
  "peerDependenciesMeta": {
@@ -60,7 +63,5 @@
60
63
  "src"
61
64
  ]
62
65
  },
63
- "scripts": {
64
- "build": "tsup"
65
- }
66
- }
66
+ "gitHead": "f14ad1907c3a6102cd5cb48ea4817ca76fae7b73"
67
+ }