MCPcopy
hub / github.com/actualbudget/actual / send

Function send

packages/desktop-client/src/mocks/connection.ts:52–62  ·  view source on GitHub ↗
(
  name: string,
  args: unknown,
  { catchErrors = false } = {},
)

Source from the content-addressed store, hash-verified

50};
51
52export const send = async (
53 name: string,
54 args: unknown,
55 { catchErrors = false } = {},
56) => {
57 if (serverHandler) {
58 return serverHandler({ name, args, catchErrors });
59 } else {
60 throw new Error('`send` called with no mock server installed');
61 }
62};
63
64export const sendCatch = (name: string, args: unknown) => {
65 return send(name, args, { catchErrors: true });

Callers 15

listenForSyncEventFunction · 0.90
_authorizeFunction · 0.90
appFocusedFunction · 0.90
uploadFileFunction · 0.90
usersSlice.tsFile · 0.90
deleteCategoryFunction · 0.90
useMoveCategoryMutationFunction · 0.90

Calls

no outgoing calls

Tested by 2

mockServerFunction · 0.40
mockServerFunction · 0.40