dexie 4.1.0-alpha.6 → 4.1.0-alpha.7

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/dexie.d.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * By David Fahlander, david.fahlander@gmail.com
6
6
  *
7
- * Version 4.1.0-alpha.6, Tue Oct 15 2024
7
+ * Version 4.1.0-alpha.7, Tue Oct 15 2024
8
8
  *
9
9
  * https://dexie.org
10
10
  *
package/dist/dexie.js CHANGED
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * By David Fahlander, david.fahlander@gmail.com
6
6
  *
7
- * Version 4.1.0-alpha.6, Tue Oct 15 2024
7
+ * Version 4.1.0-alpha.7, Tue Oct 15 2024
8
8
  *
9
9
  * https://dexie.org
10
10
  *
@@ -1177,7 +1177,7 @@
1177
1177
  }
1178
1178
  }
1179
1179
 
1180
- var DEXIE_VERSION = '4.1.0-alpha.6';
1180
+ var DEXIE_VERSION = '4.1.0-alpha.7';
1181
1181
  var maxString = String.fromCharCode(65535);
1182
1182
  var minKey = -Infinity;
1183
1183
  var INVALID_KEY_ARGUMENT = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.";
@@ -6603,8 +6603,8 @@
6603
6603
  if (destroyedDocs.has(doc))
6604
6604
  return;
6605
6605
  var p = wm.get(doc);
6606
- if (!p) {
6607
- if (--p.refCount === 0) {
6606
+ if (p) {
6607
+ if (--p.refCount <= 0) {
6608
6608
  if (isNaN(options === null || options === void 0 ? void 0 : options.gracePeriod)) {
6609
6609
  doc.destroy();
6610
6610
  }