@seam-rpc/client 4.3.13 → 4.3.15
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.js +1 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -77,10 +77,7 @@ export async function callApi(routerName, funcName, input) {
|
|
|
77
77
|
const contentType = res.headers.get("content-type") || "";
|
|
78
78
|
if (contentType.startsWith("application/json")) {
|
|
79
79
|
const data = await res.json();
|
|
80
|
-
return
|
|
81
|
-
ok: true,
|
|
82
|
-
data: data.result,
|
|
83
|
-
};
|
|
80
|
+
return data.result;
|
|
84
81
|
}
|
|
85
82
|
else if (contentType.startsWith("multipart/form-data")) {
|
|
86
83
|
const formData = await res.formData();
|