@ethlete/query 0.1.0-next.13 → 0.1.0-next.14
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.
|
@@ -243,12 +243,12 @@ const buildBody = (body) => {
|
|
|
243
243
|
if (typeof body === 'string') {
|
|
244
244
|
return body;
|
|
245
245
|
}
|
|
246
|
-
if (typeof body === 'object') {
|
|
247
|
-
return JSON.stringify(body);
|
|
248
|
-
}
|
|
249
246
|
if (body instanceof FormData) {
|
|
250
247
|
return body;
|
|
251
248
|
}
|
|
249
|
+
if (typeof body === 'object') {
|
|
250
|
+
return JSON.stringify(body);
|
|
251
|
+
}
|
|
252
252
|
throw invalidBodyError(body);
|
|
253
253
|
};
|
|
254
254
|
const transformMethod = (method) => {
|