@ventlio/tanstack-query 0.2.83 → 0.2.84
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 +1 -1
- package/dist/request/make-request.js +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -313,7 +313,7 @@ const successTransformer = (data) => {
|
|
|
313
313
|
};
|
|
314
314
|
};
|
|
315
315
|
|
|
316
|
-
async function makeRequest({ body, method = HttpMethod.GET, path, isFormData, headers = {}, baseURL, timeout, appFileConfig, onUploadProgress, }) {
|
|
316
|
+
async function makeRequest({ body = {}, method = HttpMethod.GET, path, isFormData, headers = {}, baseURL, timeout, appFileConfig, onUploadProgress, }) {
|
|
317
317
|
// check if file is included in mobile app environment and extract all file input to avoid
|
|
318
318
|
// it being formatted to object using axios formData builder
|
|
319
319
|
const isApp = appFileConfig?.isApp;
|
|
@@ -3,7 +3,7 @@ import { axiosInstance } from './axios-instance.js';
|
|
|
3
3
|
import { ContentType, HttpMethod } from './request.enum.js';
|
|
4
4
|
import { errorTransformer, successTransformer } from './transformer.js';
|
|
5
5
|
|
|
6
|
-
async function makeRequest({ body, method = HttpMethod.GET, path, isFormData, headers = {}, baseURL, timeout, appFileConfig, onUploadProgress, }) {
|
|
6
|
+
async function makeRequest({ body = {}, method = HttpMethod.GET, path, isFormData, headers = {}, baseURL, timeout, appFileConfig, onUploadProgress, }) {
|
|
7
7
|
// check if file is included in mobile app environment and extract all file input to avoid
|
|
8
8
|
// it being formatted to object using axios formData builder
|
|
9
9
|
const isApp = appFileConfig?.isApp;
|