@fireproof/core 0.10.2-dev → 0.10.3-dev
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/fireproof.esm.js
CHANGED
@@ -8004,11 +8004,13 @@ var CarStoreIDB = class extends CarStore {
|
|
8004
8004
|
return await dbWorkFun(this.idb);
|
8005
8005
|
}
|
8006
8006
|
async load(cid) {
|
8007
|
+
console.log("loading", cid.toString());
|
8007
8008
|
return await this.withDB(async (db) => {
|
8008
8009
|
const tx = db.transaction(["cars"], "readonly");
|
8009
8010
|
const bytes = await tx.objectStore("cars").get(cid.toString());
|
8010
8011
|
if (!bytes)
|
8011
|
-
throw new Error(`missing block ${cid.toString()}`);
|
8012
|
+
throw new Error(`missing idb block ${cid.toString()}`);
|
8013
|
+
console.log("loaded", cid.toString());
|
8012
8014
|
return { cid, bytes };
|
8013
8015
|
});
|
8014
8016
|
}
|