serializable-bptree 1.0.1 → 1.0.2
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/README.md +1 -1
- package/dist/cjs/index.js +2 -1
- package/dist/esm/index.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -494,7 +494,8 @@ var BPTree = class {
|
|
|
494
494
|
*/
|
|
495
495
|
delete(key, value) {
|
|
496
496
|
const node = this._insertableNode(value);
|
|
497
|
-
|
|
497
|
+
let i = node.values.length;
|
|
498
|
+
while (i--) {
|
|
498
499
|
const nValue = node.values[i];
|
|
499
500
|
if (this.comparator.isSame(value, nValue)) {
|
|
500
501
|
const keys = node.keys[i];
|
package/dist/esm/index.js
CHANGED
|
@@ -463,7 +463,8 @@ var BPTree = class {
|
|
|
463
463
|
*/
|
|
464
464
|
delete(key, value) {
|
|
465
465
|
const node = this._insertableNode(value);
|
|
466
|
-
|
|
466
|
+
let i = node.values.length;
|
|
467
|
+
while (i--) {
|
|
467
468
|
const nValue = node.values[i];
|
|
468
469
|
if (this.comparator.isSame(value, nValue)) {
|
|
469
470
|
const keys = node.keys[i];
|