MCPcopy Create free account
hub / github.com/Kong/insomnia / invokeSyncMethod

Function invokeSyncMethod

packages/insomnia/src/entry.preload.ts:503–515  ·  view source on GitHub ↗
(methodName: string, ...args: unknown[])

Source from the content-addressed store, hash-verified

501};
502
503const invokeSyncMethod = async (methodName: string, ...args: unknown[]) => {
504 try {
505 return await invokeWithNormalizedError('main.invoke', 'sync', methodName, ...args);
506 } catch (error) {
507 if (isUserAbortResolveMergeConflictError(error)) {
508 throw new UserAbortResolveMergeConflictError(
509 'message' in error && typeof error.message === 'string' ? error.message : undefined,
510 );
511 }
512
513 throw error;
514 }
515};
516
517if (process.contextIsolated) {
518 contextBridge.exposeInMainWorld('main', main);

Callers 1

entry.preload.tsFile · 0.85

Tested by

no test coverage detected