@readyfor/api-client-base 0.178.0 → 0.178.1-pr936.a9d6fc1
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/{chunk-C5P5R2CL.mjs → chunk-GD73YYGW.mjs} +2 -1
- package/dist/fetcher.js +2 -1
- package/dist/fetcher.mjs +1 -1
- package/dist/index.js +5 -4
- package/dist/index.mjs +1 -1
- package/package.json +9 -10
|
@@ -68,7 +68,8 @@ 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
|
-
|
|
71
|
+
const body = await res.text();
|
|
72
|
+
throw new HTTPError(code, body);
|
|
72
73
|
});
|
|
73
74
|
|
|
74
75
|
export {
|
package/dist/fetcher.js
CHANGED
|
@@ -159,7 +159,8 @@ 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
|
-
|
|
162
|
+
const body = await res.text();
|
|
163
|
+
throw new HTTPError(code, body);
|
|
163
164
|
});
|
|
164
165
|
// Annotate the CommonJS export names for ESM import in node:
|
|
165
166
|
0 && (module.exports = {
|
package/dist/fetcher.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -28,8 +28,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
30
|
// src/index.ts
|
|
31
|
-
var
|
|
32
|
-
__export(
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
33
|
HTTPError: () => HTTPError,
|
|
34
34
|
__internal__requestUrl: () => __internal__requestUrl,
|
|
35
35
|
createBlobFetcher: () => createBlobFetcher,
|
|
@@ -45,7 +45,7 @@ __export(src_exports, {
|
|
|
45
45
|
setApiClientConfig: () => setApiClientConfig,
|
|
46
46
|
store: () => store
|
|
47
47
|
});
|
|
48
|
-
module.exports = __toCommonJS(
|
|
48
|
+
module.exports = __toCommonJS(index_exports);
|
|
49
49
|
|
|
50
50
|
// src/store.ts
|
|
51
51
|
var createStore = (initialState) => {
|
|
@@ -196,7 +196,8 @@ 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
|
-
|
|
199
|
+
const body = await res.text();
|
|
200
|
+
throw new HTTPError(code, body);
|
|
200
201
|
});
|
|
201
202
|
|
|
202
203
|
// src/requestUrl.ts
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@readyfor/api-client-base",
|
|
3
|
-
"version": "0.178.
|
|
3
|
+
"version": "0.178.1-pr936.a9d6fc1",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -20,24 +20,21 @@
|
|
|
20
20
|
"require": "./dist/react/index.js"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
|
-
"scripts": {
|
|
24
|
-
"build": "tsup"
|
|
25
|
-
},
|
|
26
23
|
"dependencies": {
|
|
27
|
-
"qs": "6.
|
|
24
|
+
"qs": "6.14.0",
|
|
28
25
|
"zod": "^3.24.1"
|
|
29
26
|
},
|
|
30
27
|
"devDependencies": {
|
|
31
|
-
"@types/qs": "6.9.
|
|
28
|
+
"@types/qs": "6.9.18",
|
|
32
29
|
"@types/react": "^18.3.12",
|
|
33
30
|
"@types/use-sync-external-store": "0.0.6",
|
|
34
31
|
"react": "^18.3.1",
|
|
35
|
-
"swr": "2.
|
|
32
|
+
"swr": "^2.3.3",
|
|
36
33
|
"use-sync-external-store": "1.2.2"
|
|
37
34
|
},
|
|
38
35
|
"peerDependencies": {
|
|
39
36
|
"react": "^18.3.1",
|
|
40
|
-
"swr": "^2.
|
|
37
|
+
"swr": "^2.3.3",
|
|
41
38
|
"use-sync-external-store": "1.2.2"
|
|
42
39
|
},
|
|
43
40
|
"peerDependenciesMeta": {
|
|
@@ -63,5 +60,7 @@
|
|
|
63
60
|
"src"
|
|
64
61
|
]
|
|
65
62
|
},
|
|
66
|
-
"
|
|
67
|
-
|
|
63
|
+
"scripts": {
|
|
64
|
+
"build": "tsup"
|
|
65
|
+
}
|
|
66
|
+
}
|