@ventlio/tanstack-query 0.2.39 → 0.2.40
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/index.mjs
CHANGED
|
@@ -193,7 +193,7 @@ async function makeRequest({ body, method = HttpMethod.GET, path, isFormData, he
|
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
195
|
catch (error) {
|
|
196
|
-
const errorData = error
|
|
196
|
+
const errorData = error?.response?.data;
|
|
197
197
|
return errorTransformer({
|
|
198
198
|
statusCode: error.status,
|
|
199
199
|
message: error.message,
|
|
@@ -38,7 +38,7 @@ async function makeRequest({ body, method = request_enum.HttpMethod.GET, path, i
|
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
catch (error) {
|
|
41
|
-
const errorData = error
|
|
41
|
+
const errorData = error?.response?.data;
|
|
42
42
|
return transformer.errorTransformer({
|
|
43
43
|
statusCode: error.status,
|
|
44
44
|
message: error.message,
|
package/package.json
CHANGED
|
@@ -51,7 +51,7 @@ export async function makeRequest<TResponse>({
|
|
|
51
51
|
status: resp.status,
|
|
52
52
|
});
|
|
53
53
|
} catch (error: any) {
|
|
54
|
-
const errorData = error
|
|
54
|
+
const errorData = error?.response?.data;
|
|
55
55
|
return errorTransformer({
|
|
56
56
|
statusCode: error.status,
|
|
57
57
|
message: error.message,
|