dexie 3.2.1 → 3.2.3
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 +1 -1
- package/dist/dexie.js +15 -10
- package/dist/dexie.js.map +1 -1
- package/dist/dexie.min.js +1 -1
- package/dist/dexie.min.js.map +1 -1
- package/dist/dexie.mjs +15 -10
- package/dist/dexie.mjs.map +1 -1
- package/dist/modern/dexie.min.mjs +1 -1
- package/dist/modern/dexie.min.mjs.map +1 -1
- package/dist/modern/dexie.mjs +15 -10
- package/dist/modern/dexie.mjs.map +1 -1
- package/package.json +1 -1
package/dist/dexie.d.ts
CHANGED
package/dist/dexie.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* By David Fahlander, david.fahlander@gmail.com
|
|
6
6
|
*
|
|
7
|
-
* Version 3.2.
|
|
7
|
+
* Version 3.2.3, Mon Jan 23 2023
|
|
8
8
|
*
|
|
9
9
|
* https://dexie.org
|
|
10
10
|
*
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
obj[currentKeyPath] = value;
|
|
183
183
|
else {
|
|
184
184
|
var innerObj = obj[currentKeyPath];
|
|
185
|
-
if (!innerObj)
|
|
185
|
+
if (!innerObj || !hasOwn(obj, currentKeyPath))
|
|
186
186
|
innerObj = (obj[currentKeyPath] = {});
|
|
187
187
|
setByKeyPath(innerObj, remainingKeyPath, value);
|
|
188
188
|
}
|
|
@@ -1287,7 +1287,7 @@
|
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
1289
1289
|
|
|
1290
|
-
var DEXIE_VERSION = '3.2.
|
|
1290
|
+
var DEXIE_VERSION = '3.2.3';
|
|
1291
1291
|
var maxString = String.fromCharCode(65535);
|
|
1292
1292
|
var minKey = -Infinity;
|
|
1293
1293
|
var INVALID_KEY_ARGUMENT = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.";
|
|
@@ -5115,6 +5115,9 @@
|
|
|
5115
5115
|
|
|
5116
5116
|
if (typeof BroadcastChannel !== 'undefined') {
|
|
5117
5117
|
var bc_1 = new BroadcastChannel(STORAGE_MUTATED_DOM_EVENT_NAME);
|
|
5118
|
+
if (typeof bc_1.unref === 'function') {
|
|
5119
|
+
bc_1.unref();
|
|
5120
|
+
}
|
|
5118
5121
|
globalEvents(DEXIE_STORAGE_MUTATED_EVENT_NAME, function (changedParts) {
|
|
5119
5122
|
if (!propagatingLocally) {
|
|
5120
5123
|
bc_1.postMessage(changedParts);
|
|
@@ -5147,13 +5150,15 @@
|
|
|
5147
5150
|
}
|
|
5148
5151
|
catch (_a) { }
|
|
5149
5152
|
});
|
|
5150
|
-
addEventListener
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5153
|
+
if (typeof addEventListener !== 'undefined') {
|
|
5154
|
+
addEventListener('storage', function (ev) {
|
|
5155
|
+
if (ev.key === STORAGE_MUTATED_DOM_EVENT_NAME) {
|
|
5156
|
+
var data = JSON.parse(ev.newValue);
|
|
5157
|
+
if (data)
|
|
5158
|
+
propagateLocally(data.changedParts);
|
|
5159
|
+
}
|
|
5160
|
+
});
|
|
5161
|
+
}
|
|
5157
5162
|
var swContainer = self.document && navigator.serviceWorker;
|
|
5158
5163
|
if (swContainer) {
|
|
5159
5164
|
swContainer.addEventListener('message', propagateMessageLocally);
|