fake-indexeddb
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -27,3 +27,5 @@ "use strict"; | ||
i = this.records.findIndex(function (record) { | ||
return cmp_1.default(record.key, newRecord.key) === 1; | ||
// cmp will only return 0 for an index. For an object store, any matching key has already been deleted, | ||
// but we still need to look for cmp = 1 to find where to insert. | ||
return cmp_1.default(record.key, newRecord.key) >= 0; | ||
}); | ||
@@ -137,2 +139,3 @@ if (i === -1) { | ||
// https://github.com/Microsoft/TypeScript/issues/2983 | ||
// tslint:disable-next-line no-object-literal-type-assertion | ||
return { | ||
@@ -139,0 +142,0 @@ value: value, |
@@ -0,1 +1,5 @@ | ||
# 2.0.3 (2017-05-09) | ||
* Fixed issue #20 related to iterating over cursors with non-unique keys | ||
# 2.0.2 (2017-05-01) | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "fake-indexeddb", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Fake IndexedDB: a pure JS in-memory implementation of the IndexedDB API", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/dumbmatter/fakeIndexedDB", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
161248
3592