@fireproof/core 0.10.1-dev → 0.10.2-dev

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
  }