@ventlio/tanstack-query 0.2.63-beta.4 → 0.2.63-beta.5
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
|
@@ -215,7 +215,15 @@ async function makeRequest({ body, method = HttpMethod.GET, path, isFormData, he
|
|
|
215
215
|
headers['Content-Type'] = ContentType.MULTIPART_FORM_DATA;
|
|
216
216
|
// add the app files
|
|
217
217
|
for (const fileKey in appFiles) {
|
|
218
|
-
|
|
218
|
+
const currentFile = appFiles[fileKey];
|
|
219
|
+
if (Array.isArray(currentFile)) {
|
|
220
|
+
for (const innerFile of currentFile) {
|
|
221
|
+
body.append(fileKey, innerFile);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
else {
|
|
225
|
+
body.append(fileKey, currentFile);
|
|
226
|
+
}
|
|
219
227
|
}
|
|
220
228
|
}
|
|
221
229
|
else {
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -19,7 +19,15 @@ async function makeRequest({ body, method = HttpMethod.GET, path, isFormData, he
|
|
|
19
19
|
headers['Content-Type'] = ContentType.MULTIPART_FORM_DATA;
|
|
20
20
|
// add the app files
|
|
21
21
|
for (const fileKey in appFiles) {
|
|
22
|
-
|
|
22
|
+
const currentFile = appFiles[fileKey];
|
|
23
|
+
if (Array.isArray(currentFile)) {
|
|
24
|
+
for (const innerFile of currentFile) {
|
|
25
|
+
body.append(fileKey, innerFile);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
body.append(fileKey, currentFile);
|
|
30
|
+
}
|
|
23
31
|
}
|
|
24
32
|
}
|
|
25
33
|
else {
|
|
@@ -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
|
@@ -31,7 +31,14 @@ export async function makeRequest<TResponse>({
|
|
|
31
31
|
headers['Content-Type'] = ContentType.MULTIPART_FORM_DATA;
|
|
32
32
|
// add the app files
|
|
33
33
|
for (const fileKey in appFiles) {
|
|
34
|
-
|
|
34
|
+
const currentFile = appFiles[fileKey];
|
|
35
|
+
if (Array.isArray(currentFile)) {
|
|
36
|
+
for (const innerFile of currentFile) {
|
|
37
|
+
body.append(fileKey, innerFile);
|
|
38
|
+
}
|
|
39
|
+
} else {
|
|
40
|
+
body.append(fileKey, currentFile);
|
|
41
|
+
}
|
|
35
42
|
}
|
|
36
43
|
} else {
|
|
37
44
|
delete headers['Content-Type'];
|