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.mjs
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
|
*
|
|
@@ -176,7 +176,7 @@ function setByKeyPath(obj, keyPath, value) {
|
|
|
176
176
|
obj[currentKeyPath] = value;
|
|
177
177
|
else {
|
|
178
178
|
var innerObj = obj[currentKeyPath];
|
|
179
|
-
if (!innerObj)
|
|
179
|
+
if (!innerObj || !hasOwn(obj, currentKeyPath))
|
|
180
180
|
innerObj = (obj[currentKeyPath] = {});
|
|
181
181
|
setByKeyPath(innerObj, remainingKeyPath, value);
|
|
182
182
|
}
|
|
@@ -1281,7 +1281,7 @@ function tempTransaction(db, mode, storeNames, fn) {
|
|
|
1281
1281
|
}
|
|
1282
1282
|
}
|
|
1283
1283
|
|
|
1284
|
-
var DEXIE_VERSION = '3.2.
|
|
1284
|
+
var DEXIE_VERSION = '3.2.3';
|
|
1285
1285
|
var maxString = String.fromCharCode(65535);
|
|
1286
1286
|
var minKey = -Infinity;
|
|
1287
1287
|
var INVALID_KEY_ARGUMENT = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.";
|
|
@@ -5109,6 +5109,9 @@ var propagatingLocally = false;
|
|
|
5109
5109
|
|
|
5110
5110
|
if (typeof BroadcastChannel !== 'undefined') {
|
|
5111
5111
|
var bc_1 = new BroadcastChannel(STORAGE_MUTATED_DOM_EVENT_NAME);
|
|
5112
|
+
if (typeof bc_1.unref === 'function') {
|
|
5113
|
+
bc_1.unref();
|
|
5114
|
+
}
|
|
5112
5115
|
globalEvents(DEXIE_STORAGE_MUTATED_EVENT_NAME, function (changedParts) {
|
|
5113
5116
|
if (!propagatingLocally) {
|
|
5114
5117
|
bc_1.postMessage(changedParts);
|
|
@@ -5141,13 +5144,15 @@ else if (typeof self !== 'undefined' && typeof navigator !== 'undefined') {
|
|
|
5141
5144
|
}
|
|
5142
5145
|
catch (_a) { }
|
|
5143
5146
|
});
|
|
5144
|
-
addEventListener
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5147
|
+
if (typeof addEventListener !== 'undefined') {
|
|
5148
|
+
addEventListener('storage', function (ev) {
|
|
5149
|
+
if (ev.key === STORAGE_MUTATED_DOM_EVENT_NAME) {
|
|
5150
|
+
var data = JSON.parse(ev.newValue);
|
|
5151
|
+
if (data)
|
|
5152
|
+
propagateLocally(data.changedParts);
|
|
5153
|
+
}
|
|
5154
|
+
});
|
|
5155
|
+
}
|
|
5151
5156
|
var swContainer = self.document && navigator.serviceWorker;
|
|
5152
5157
|
if (swContainer) {
|
|
5153
5158
|
swContainer.addEventListener('message', propagateMessageLocally);
|