@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.
@@ -17385,11 +17385,13 @@ You can use close({ resize: true }) to resize header`);
|
|
17385
17385
|
}
|
17386
17386
|
load(cid) {
|
17387
17387
|
return __async(this, null, function* () {
|
17388
|
+
console.log("loading", cid.toString());
|
17388
17389
|
return yield this.withDB((db) => __async(this, null, function* () {
|
17389
17390
|
const tx = db.transaction(["cars"], "readonly");
|
17390
17391
|
const bytes = yield tx.objectStore("cars").get(cid.toString());
|
17391
17392
|
if (!bytes)
|
17392
|
-
throw new Error(`missing block ${cid.toString()}`);
|
17393
|
+
throw new Error(`missing idb block ${cid.toString()}`);
|
17394
|
+
console.log("loaded", cid.toString());
|
17393
17395
|
return { cid, bytes };
|
17394
17396
|
}));
|
17395
17397
|
});
|