@aibee/crc-bmap 0.6.12 → 0.6.13

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/lib/bmap.esm.js CHANGED
@@ -10904,8 +10904,8 @@ function createStore(storeName, db = _db) {
10904
10904
  db.createObjectStore(storeName, { keyPath: "key" });
10905
10905
  }
10906
10906
  }
10907
- function closeDb() {
10908
- _db?.close();
10907
+ function closeDb(db = _db) {
10908
+ db?.close();
10909
10909
  _db = null;
10910
10910
  }
10911
10911
 
@@ -11361,7 +11361,7 @@ var AibeeLoader = class {
11361
11361
  return floor;
11362
11362
  }
11363
11363
  async clear() {
11364
- await this.initDbPromise.then(() => closeDb());
11364
+ closeDb(this.db ?? void 0);
11365
11365
  }
11366
11366
  dispose() {
11367
11367
  this.clear();