dexie 3.0.3 → 3.0.4

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 3.0.3, Wed Nov 18 2020
7
+ * Version 3.0.4, Fri Apr 29 2022
8
8
  *
9
9
  * http://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 3.0.3, Wed Nov 18 2020
7
+ * Version 3.0.4, Fri Apr 29 2022
8
8
  *
9
9
  * http://dexie.org
10
10
  *
@@ -178,7 +178,7 @@ function setByKeyPath(obj, keyPath, value) {
178
178
  obj[currentKeyPath] = value;
179
179
  else {
180
180
  var innerObj = obj[currentKeyPath];
181
- if (!innerObj)
181
+ if (!innerObj || !hasOwn(obj, currentKeyPath))
182
182
  innerObj = (obj[currentKeyPath] = {});
183
183
  setByKeyPath(innerObj, remainingKeyPath, value);
184
184
  }
@@ -1308,7 +1308,7 @@ function tempTransaction(db, mode, storeNames, fn) {
1308
1308
  }
1309
1309
  }
1310
1310
 
1311
- var DEXIE_VERSION = '3.0.3';
1311
+ var DEXIE_VERSION = '3.0.4';
1312
1312
  var maxString = String.fromCharCode(65535);
1313
1313
  var minKey = -Infinity;
1314
1314
  var INVALID_KEY_ARGUMENT = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.";