MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / loadLockfile

Method loadLockfile

runtime/src/cache/idb.js:46–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 }
45
46 async loadLockfile() {
47 const out = new Map();
48 await new Promise((res, rej) => {
49 const r = this._tx('lockfile', 'readonly').openCursor();
50 r.onsuccess = () => {
51 const c = r.result;
52 if (!c) return res();
53 if (c.key !== VERSION_KEY) out.set(c.key, c.value);
54 c.continue();
55 };
56 r.onerror = () => rej(r.error);
57 });
58 return out;
59 }
60
61 async saveLockfile(entries) {
62 const s = this._tx('lockfile', 'readwrite');

Callers 1

runFunction · 0.45

Calls 2

_txMethod · 0.95
setMethod · 0.80

Tested by

no test coverage detected