dexie 4.0.1-alpha.26 → 4.0.1-alpha.27

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.0.1-alpha.26, Fri Oct 13 2023
7
+ * Version 4.0.1-alpha.27, Fri Oct 13 2023
8
8
  *
9
9
  * https://dexie.org
10
10
  *
@@ -1085,7 +1085,7 @@ export interface DexieConstructor extends DexieExceptionClasses {
1085
1085
  dependencies: DexieDOMDependencies;
1086
1086
  default: Dexie; // Work-around for different build tools handling default imports differently.
1087
1087
  cache: GlobalQueryCache;
1088
- debug: boolean | "dexie";
1088
+ debug: false | true | "dexie";
1089
1089
  Promise: PromiseExtendedConstructor;
1090
1090
  //TableSchema: {}; // Deprecate!
1091
1091
  //IndexSpec: {new():IndexSpec}; //? Deprecate
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.0.1-alpha.26, Fri Oct 13 2023
7
+ * Version 4.0.1-alpha.27, Fri Oct 13 2023
8
8
  *
9
9
  * https://dexie.org
10
10
  *
@@ -149,7 +149,7 @@
149
149
  }
150
150
  }
151
151
  function getByKeyPath(obj, keyPath) {
152
- if (hasOwn(obj, keyPath))
152
+ if (typeof keyPath === 'string' && hasOwn(obj, keyPath))
153
153
  return obj[keyPath];
154
154
  if (!keyPath)
155
155
  return obj;
@@ -1271,7 +1271,7 @@
1271
1271
  }
1272
1272
  }
1273
1273
 
1274
- var DEXIE_VERSION = '4.0.1-alpha.26';
1274
+ var DEXIE_VERSION = '4.0.1-alpha.27';
1275
1275
  var maxString = String.fromCharCode(65535);
1276
1276
  var minKey = -Infinity;
1277
1277
  var INVALID_KEY_ARGUMENT = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.";