serializable-bptree 6.2.1 → 6.2.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.
@@ -501,13 +501,13 @@ var BPTree = class _BPTree {
501
501
  }
502
502
  };
503
503
  verifierStartNode = {
504
- gt: (v) => this.insertableNode(v),
505
- gte: (v) => this.insertableNode(v),
506
- lt: (v) => this.insertableNode(v),
507
- lte: (v) => this.insertableNode(v),
508
- equal: (v) => this.insertableNode(v),
504
+ gt: (v) => this.insertableNodeByPrimary(v),
505
+ gte: (v) => this.insertableNodeByPrimary(v),
506
+ lt: (v) => this.insertableNodeByPrimary(v),
507
+ lte: (v) => this.insertableRightestNodeByPrimary(v),
508
+ equal: (v) => this.insertableNodeByPrimary(v),
509
509
  notEqual: (v) => this.leftestNode(),
510
- or: (v) => this.insertableNode(this.lowestValue(this.ensureValues(v))),
510
+ or: (v) => this.insertableNodeByPrimary(this.lowestPrimaryValue(this.ensureValues(v))),
511
511
  primaryGt: (v) => this.insertableNodeByPrimary(v),
512
512
  primaryGte: (v) => this.insertableNodeByPrimary(v),
513
513
  primaryLt: (v) => this.insertableNodeByPrimary(v),
@@ -532,7 +532,7 @@ var BPTree = class _BPTree {
532
532
  primaryGte: (v) => null,
533
533
  primaryLt: (v) => null,
534
534
  primaryLte: (v) => null,
535
- primaryEqual: (v) => null,
535
+ primaryEqual: (v) => this.insertableRightestEndNodeByPrimary(v),
536
536
  primaryNotEqual: (v) => null,
537
537
  primaryOr: (v) => this.insertableRightestEndNodeByPrimary(
538
538
  this.highestPrimaryValue(this.ensureValues(v))
@@ -467,13 +467,13 @@ var BPTree = class _BPTree {
467
467
  }
468
468
  };
469
469
  verifierStartNode = {
470
- gt: (v) => this.insertableNode(v),
471
- gte: (v) => this.insertableNode(v),
472
- lt: (v) => this.insertableNode(v),
473
- lte: (v) => this.insertableNode(v),
474
- equal: (v) => this.insertableNode(v),
470
+ gt: (v) => this.insertableNodeByPrimary(v),
471
+ gte: (v) => this.insertableNodeByPrimary(v),
472
+ lt: (v) => this.insertableNodeByPrimary(v),
473
+ lte: (v) => this.insertableRightestNodeByPrimary(v),
474
+ equal: (v) => this.insertableNodeByPrimary(v),
475
475
  notEqual: (v) => this.leftestNode(),
476
- or: (v) => this.insertableNode(this.lowestValue(this.ensureValues(v))),
476
+ or: (v) => this.insertableNodeByPrimary(this.lowestPrimaryValue(this.ensureValues(v))),
477
477
  primaryGt: (v) => this.insertableNodeByPrimary(v),
478
478
  primaryGte: (v) => this.insertableNodeByPrimary(v),
479
479
  primaryLt: (v) => this.insertableNodeByPrimary(v),
@@ -498,7 +498,7 @@ var BPTree = class _BPTree {
498
498
  primaryGte: (v) => null,
499
499
  primaryLt: (v) => null,
500
500
  primaryLte: (v) => null,
501
- primaryEqual: (v) => null,
501
+ primaryEqual: (v) => this.insertableRightestEndNodeByPrimary(v),
502
502
  primaryNotEqual: (v) => null,
503
503
  primaryOr: (v) => this.insertableRightestEndNodeByPrimary(
504
504
  this.highestPrimaryValue(this.ensureValues(v))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "serializable-bptree",
3
- "version": "6.2.1",
3
+ "version": "6.2.2",
4
4
  "description": "Store the B+tree flexibly, not only in-memory.",
5
5
  "types": "./dist/types/index.d.ts",
6
6
  "main": "./dist/cjs/index.cjs",