@seam-rpc/client 4.3.12 → 4.3.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -8
  2. 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();
@@ -110,10 +107,7 @@ export async function callApi(routerName, funcName, input) {
110
107
  });
111
108
  }
112
109
  }
113
- return {
114
- ok: true,
115
- data: jsonPart.result,
116
- };
110
+ return jsonPart.result;
117
111
  }
118
112
  else {
119
113
  return { ok: false, error: null };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seam-rpc/client",
3
- "version": "4.3.12",
3
+ "version": "4.3.14",
4
4
  "main": "./dist/index.js",
5
5
  "type": "module",
6
6
  "files": [