@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.
package/dist/fireproof.cjs.js
CHANGED
@@ -8004,12 +8004,11 @@ var CarStoreIDB = class extends CarStore {
|
|
8004
8004
|
async withDB(dbWorkFun) {
|
8005
8005
|
if (!this.idb) {
|
8006
8006
|
const dbName = `fp.${FORMAT}.${this.keyId}.${this.name}.valet`;
|
8007
|
-
|
8007
|
+
this.idb = await openDB(dbName, 1, {
|
8008
8008
|
upgrade(db) {
|
8009
8009
|
db.createObjectStore("cars");
|
8010
8010
|
}
|
8011
|
-
};
|
8012
|
-
this.idb = await openDB(dbName, 0, options);
|
8011
|
+
});
|
8013
8012
|
}
|
8014
8013
|
return await dbWorkFun(this.idb);
|
8015
8014
|
}
|