@fireproof/core 0.10.1-dev → 0.10.2-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.
@@ -7995,12 +7995,11 @@ var CarStoreIDB = class extends CarStore {
7995
7995
  async withDB(dbWorkFun) {
7996
7996
  if (!this.idb) {
7997
7997
  const dbName = `fp.${FORMAT}.${this.keyId}.${this.name}.valet`;
7998
- const options = {
7998
+ this.idb = await openDB(dbName, 1, {
7999
7999
  upgrade(db) {
8000
8000
  db.createObjectStore("cars");
8001
8001
  }
8002
- };
8003
- this.idb = await openDB(dbName, 0, options);
8002
+ });
8004
8003
  }
8005
8004
  return await dbWorkFun(this.idb);
8006
8005
  }