MCPcopy
hub / github.com/CapSoftware/Cap / transactionToPromise

Function transactionToPromise

packages/recorder-core/src/recording-spool.ts:62–67  ·  view source on GitHub ↗
(transaction: IDBTransaction)

Source from the content-addressed store, hash-verified

60 });
61
62const transactionToPromise = (transaction: IDBTransaction) =>
63 new Promise<void>((resolve, reject) => {
64 transaction.oncomplete = () => resolve();
65 transaction.onabort = () => reject(normalizeError(transaction.error));
66 transaction.onerror = () => reject(normalizeError(transaction.error));
67 });
68
69const createSessionId = () => {
70 if (

Callers 7

createSessionMethod · 0.85
appendChunkMethod · 0.85
readChunksMethod · 0.85
listSessionsMethod · 0.85
getSessionMethod · 0.85
deleteSessionMethod · 0.85
readChunkKeysMethod · 0.85

Calls 3

rejectFunction · 0.85
normalizeErrorFunction · 0.85
resolveFunction · 0.50

Tested by

no test coverage detected