@seam-rpc/client 5.1.0 → 5.1.2
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 +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ export class SeamClient {
|
|
|
17
17
|
get(_subTarget, procName) {
|
|
18
18
|
return async (input) => {
|
|
19
19
|
try {
|
|
20
|
-
return callApi(client, String(routerName), String(procName), input);
|
|
20
|
+
return await callApi(client, String(routerName), String(procName), input);
|
|
21
21
|
}
|
|
22
22
|
catch (err) {
|
|
23
23
|
if (!client.options.onError || !(err instanceof SeamClientError))
|
|
@@ -25,6 +25,7 @@ export class SeamClient {
|
|
|
25
25
|
for (const handler of client.options?.onError) {
|
|
26
26
|
handler(err);
|
|
27
27
|
}
|
|
28
|
+
return { ok: false, error: new ApiError("") };
|
|
28
29
|
}
|
|
29
30
|
};
|
|
30
31
|
},
|