fake-indexeddb 1.0.11 → 1.0.12

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.
@@ -435,7 +435,7 @@ module.exports = function (source, range, direction, request) {
435
435
  tempKey = extractKey(effectiveObjectStore.keyPath, value);
436
436
  } catch (err) { /* Handled immediately below */ }
437
437
 
438
- if (tempKey !== effectiveKey) {
438
+ if (cmp(tempKey, effectiveKey) !== 0) {
439
439
  throw new DataError();
440
440
  }
441
441
  }
package/lib/FDBCursor.js CHANGED
@@ -224,7 +224,7 @@ module.exports = function (source, range, direction, request) {
224
224
  tempKey = extractKey(effectiveObjectStore.keyPath, value);
225
225
  } catch (err) { /* Handled immediately below */ }
226
226
 
227
- if (tempKey !== effectiveKey) {
227
+ if (cmp(tempKey, effectiveKey) !== 0) {
228
228
  throw new DataError();
229
229
  }
230
230
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fake-indexeddb",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "Fake IndexedDB: a pure JS in-memory implementation of the IndexedDB API",
5
5
  "homepage": "https://github.com/dumbmatter/fakeIndexedDB",
6
6
  "repository": {