@ventlio/tanstack-query 0.2.82 → 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 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ventlio/tanstack-query",
3
- "version": "0.2.82",
3
+ "version": "0.2.84",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "contributors": [
@@ -6,7 +6,7 @@ import type { IMakeRequest } from './request.interface';
6
6
  import { errorTransformer, successTransformer } from './transformer';
7
7
 
8
8
  export async function makeRequest<TResponse>({
9
- body,
9
+ body = {},
10
10
  method = HttpMethod.GET,
11
11
  path,
12
12
  isFormData,