@fireproof/core 0.10.2-dev → 0.10.3-dev

Sign up to get free protection for your applications and to get access to all the features.
@@ -8013,11 +8013,13 @@ var CarStoreIDB = class extends CarStore {
8013
8013
  return await dbWorkFun(this.idb);
8014
8014
  }
8015
8015
  async load(cid) {
8016
+ console.log("loading", cid.toString());
8016
8017
  return await this.withDB(async (db) => {
8017
8018
  const tx = db.transaction(["cars"], "readonly");
8018
8019
  const bytes = await tx.objectStore("cars").get(cid.toString());
8019
8020
  if (!bytes)
8020
- throw new Error(`missing block ${cid.toString()}`);
8021
+ throw new Error(`missing idb block ${cid.toString()}`);
8022
+ console.log("loaded", cid.toString());
8021
8023
  return { cid, bytes };
8022
8024
  });
8023
8025
  }