@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.
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
|
}
|