serializable-bptree 5.0.1 → 5.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.
@@ -1125,8 +1125,8 @@ var BPTreeAsync = class extends BPTree {
1125
1125
  this.root = await this._createNode(true, [], [], true);
1126
1126
  this.strategy.head.root = this.root.id;
1127
1127
  this.bufferForNodeCreate(this.root);
1128
- this.commitHeadBuffer();
1129
- this.commitNodeCreateBuffer();
1128
+ await this.commitHeadBuffer();
1129
+ await this.commitNodeCreateBuffer();
1130
1130
  } else {
1131
1131
  const { root, order } = head;
1132
1132
  this.strategy.head = head;
@@ -1091,8 +1091,8 @@ var BPTreeAsync = class extends BPTree {
1091
1091
  this.root = await this._createNode(true, [], [], true);
1092
1092
  this.strategy.head.root = this.root.id;
1093
1093
  this.bufferForNodeCreate(this.root);
1094
- this.commitHeadBuffer();
1095
- this.commitNodeCreateBuffer();
1094
+ await this.commitHeadBuffer();
1095
+ await this.commitNodeCreateBuffer();
1096
1096
  } else {
1097
1097
  const { root, order } = head;
1098
1098
  this.strategy.head = head;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "serializable-bptree",
3
- "version": "5.0.1",
3
+ "version": "5.0.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",