@readyfor/api-client-base 0.215.0-pr977.c06f33c → 0.215.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/{chunk-Q3TOTGEF.mjs → chunk-XDHAVIKP.mjs} +1 -6
- package/dist/fetcher.js +1 -6
- package/dist/fetcher.mjs +1 -1
- package/dist/index.js +1 -6
- package/dist/index.mjs +1 -1
- package/package.json +8 -7
|
@@ -10,12 +10,7 @@ import {
|
|
|
10
10
|
var defaultRequestInit = {
|
|
11
11
|
credentials: "include"
|
|
12
12
|
};
|
|
13
|
-
var createJsonFetcher = (schema, customRequestInit = {}) => (input, requestInit = {}) => createTextFetcher(customRequestInit)(input, requestInit).
|
|
14
|
-
if (e instanceof HTTPError && typeof e.body === "string" && e.body.length > 0) {
|
|
15
|
-
throw new HTTPError(e.status, JSON.parse(e.body));
|
|
16
|
-
}
|
|
17
|
-
throw e;
|
|
18
|
-
}).then((text) => {
|
|
13
|
+
var createJsonFetcher = (schema, customRequestInit = {}) => (input, requestInit = {}) => createTextFetcher(customRequestInit)(input, requestInit).then((text) => {
|
|
19
14
|
const parsedResponse = JSON.parse(text);
|
|
20
15
|
const result = schema.safeParse(parsedResponse);
|
|
21
16
|
const config = store.getState();
|
package/dist/fetcher.js
CHANGED
|
@@ -101,12 +101,7 @@ var store = createStore(defaultConfig);
|
|
|
101
101
|
var defaultRequestInit = {
|
|
102
102
|
credentials: "include"
|
|
103
103
|
};
|
|
104
|
-
var createJsonFetcher = (schema, customRequestInit = {}) => (input, requestInit = {}) => createTextFetcher(customRequestInit)(input, requestInit).
|
|
105
|
-
if (e instanceof HTTPError && typeof e.body === "string" && e.body.length > 0) {
|
|
106
|
-
throw new HTTPError(e.status, JSON.parse(e.body));
|
|
107
|
-
}
|
|
108
|
-
throw e;
|
|
109
|
-
}).then((text) => {
|
|
104
|
+
var createJsonFetcher = (schema, customRequestInit = {}) => (input, requestInit = {}) => createTextFetcher(customRequestInit)(input, requestInit).then((text) => {
|
|
110
105
|
const parsedResponse = JSON.parse(text);
|
|
111
106
|
const result = schema.safeParse(parsedResponse);
|
|
112
107
|
const config = store.getState();
|
package/dist/fetcher.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -138,12 +138,7 @@ var getErrorStatus = (response) => {
|
|
|
138
138
|
var defaultRequestInit = {
|
|
139
139
|
credentials: "include"
|
|
140
140
|
};
|
|
141
|
-
var createJsonFetcher = (schema, customRequestInit = {}) => (input, requestInit = {}) => createTextFetcher(customRequestInit)(input, requestInit).
|
|
142
|
-
if (e instanceof HTTPError && typeof e.body === "string" && e.body.length > 0) {
|
|
143
|
-
throw new HTTPError(e.status, JSON.parse(e.body));
|
|
144
|
-
}
|
|
145
|
-
throw e;
|
|
146
|
-
}).then((text) => {
|
|
141
|
+
var createJsonFetcher = (schema, customRequestInit = {}) => (input, requestInit = {}) => createTextFetcher(customRequestInit)(input, requestInit).then((text) => {
|
|
147
142
|
const parsedResponse = JSON.parse(text);
|
|
148
143
|
const result = schema.safeParse(parsedResponse);
|
|
149
144
|
const config = store.getState();
|
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.215.0
|
|
3
|
+
"version": "0.215.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -20,14 +20,17 @@
|
|
|
20
20
|
"require": "./dist/react/index.js"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "tsup"
|
|
25
|
+
},
|
|
23
26
|
"dependencies": {
|
|
24
27
|
"qs": "6.14.0",
|
|
25
28
|
"zod": "^3.24.1"
|
|
26
29
|
},
|
|
27
30
|
"devDependencies": {
|
|
28
31
|
"@types/qs": "6.9.18",
|
|
29
|
-
"@types/react": "
|
|
30
|
-
"@types/use-sync-external-store": "
|
|
32
|
+
"@types/react": "19.1.0",
|
|
33
|
+
"@types/use-sync-external-store": "1.5.0",
|
|
31
34
|
"react": "catalog:react19",
|
|
32
35
|
"swr": "catalog:",
|
|
33
36
|
"use-sync-external-store": "catalog:use-sync-external-store"
|
|
@@ -60,7 +63,5 @@
|
|
|
60
63
|
"src"
|
|
61
64
|
]
|
|
62
65
|
},
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
}
|
|
66
|
+
"gitHead": "eac4b80bc979d2e6880307792f250d10bcb09057"
|
|
67
|
+
}
|