@ventlio/tanstack-query 0.2.52 → 0.2.53
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
|
@@ -121,9 +121,7 @@ const buildFormData = (body) => {
|
|
|
121
121
|
formData.append(key, item);
|
|
122
122
|
}
|
|
123
123
|
else if (item instanceof Object) {
|
|
124
|
-
formData.append(key,
|
|
125
|
-
type: 'application/json',
|
|
126
|
-
}));
|
|
124
|
+
formData.append(key, JSON.stringify(item));
|
|
127
125
|
}
|
|
128
126
|
else {
|
|
129
127
|
formData.append(key, item);
|
|
@@ -135,9 +133,7 @@ const buildFormData = (body) => {
|
|
|
135
133
|
formData.append(key, value);
|
|
136
134
|
}
|
|
137
135
|
else {
|
|
138
|
-
formData.append(key,
|
|
139
|
-
type: 'application/json',
|
|
140
|
-
}));
|
|
136
|
+
formData.append(key, JSON.stringify(value));
|
|
141
137
|
}
|
|
142
138
|
};
|
|
143
139
|
const handlePrimitiveValue = (key, value) => {
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -8,9 +8,7 @@ const buildFormData = (body) => {
|
|
|
8
8
|
formData.append(key, item);
|
|
9
9
|
}
|
|
10
10
|
else if (item instanceof Object) {
|
|
11
|
-
formData.append(key,
|
|
12
|
-
type: 'application/json',
|
|
13
|
-
}));
|
|
11
|
+
formData.append(key, JSON.stringify(item));
|
|
14
12
|
}
|
|
15
13
|
else {
|
|
16
14
|
formData.append(key, item);
|
|
@@ -22,9 +20,7 @@ const buildFormData = (body) => {
|
|
|
22
20
|
formData.append(key, value);
|
|
23
21
|
}
|
|
24
22
|
else {
|
|
25
|
-
formData.append(key,
|
|
26
|
-
type: 'application/json',
|
|
27
|
-
}));
|
|
23
|
+
formData.append(key, JSON.stringify(value));
|
|
28
24
|
}
|
|
29
25
|
};
|
|
30
26
|
const handlePrimitiveValue = (key, value) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildFormData.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"buildFormData.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -6,12 +6,7 @@ export const buildFormData = (body: Record<string, any>) => {
|
|
|
6
6
|
if (item instanceof File) {
|
|
7
7
|
formData.append(key, item);
|
|
8
8
|
} else if (item instanceof Object) {
|
|
9
|
-
formData.append(
|
|
10
|
-
key,
|
|
11
|
-
new Blob([JSON.stringify(item)], {
|
|
12
|
-
type: 'application/json',
|
|
13
|
-
})
|
|
14
|
-
);
|
|
9
|
+
formData.append(key, JSON.stringify(item));
|
|
15
10
|
} else {
|
|
16
11
|
formData.append(key, item);
|
|
17
12
|
}
|
|
@@ -22,12 +17,7 @@ export const buildFormData = (body: Record<string, any>) => {
|
|
|
22
17
|
if (value instanceof File) {
|
|
23
18
|
formData.append(key, value);
|
|
24
19
|
} else {
|
|
25
|
-
formData.append(
|
|
26
|
-
key,
|
|
27
|
-
new Blob([JSON.stringify(value)], {
|
|
28
|
-
type: 'application/json',
|
|
29
|
-
})
|
|
30
|
-
);
|
|
20
|
+
formData.append(key, JSON.stringify(value));
|
|
31
21
|
}
|
|
32
22
|
};
|
|
33
23
|
|