@ventlio/tanstack-query 0.2.19 → 0.2.20
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
|
@@ -166,8 +166,9 @@ async function makeRequest({ body, method = HttpMethod.GET, path, isFormData, he
|
|
|
166
166
|
return errorTransformer({ ...jsonResp, statusCode: responseCode });
|
|
167
167
|
}
|
|
168
168
|
return successTransformer({
|
|
169
|
-
data: jsonResp,
|
|
170
169
|
statusCode: responseCode,
|
|
170
|
+
...jsonResp,
|
|
171
|
+
status: resp.status,
|
|
171
172
|
});
|
|
172
173
|
}
|
|
173
174
|
catch (error) {
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -29,8 +29,9 @@ async function makeRequest({ body, method = request_enum.HttpMethod.GET, path, i
|
|
|
29
29
|
return transformer.errorTransformer({ ...jsonResp, statusCode: responseCode });
|
|
30
30
|
}
|
|
31
31
|
return transformer.successTransformer({
|
|
32
|
-
data: jsonResp,
|
|
33
32
|
statusCode: responseCode,
|
|
33
|
+
...jsonResp,
|
|
34
|
+
status: resp.status,
|
|
34
35
|
});
|
|
35
36
|
}
|
|
36
37
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-request.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"make-request.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -45,8 +45,9 @@ export async function makeRequest<TResponse>({
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
return successTransformer<TResponse>({
|
|
48
|
-
data: jsonResp,
|
|
49
48
|
statusCode: responseCode,
|
|
49
|
+
...jsonResp,
|
|
50
|
+
status: resp.status,
|
|
50
51
|
});
|
|
51
52
|
} catch (error: any) {
|
|
52
53
|
const errorData = error.response.data;
|