serializable-bptree 8.0.1 → 8.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.
@@ -1831,7 +1831,7 @@ var BPTreeSyncTransaction = class extends BPTreeTransaction {
1831
1831
  return node;
1832
1832
  }
1833
1833
  _updateNode(node) {
1834
- this.mvcc.write(node.id, JSON.parse(JSON.stringify(node)));
1834
+ this.mvcc.write(node.id, node);
1835
1835
  this.nodes.set(node.id, node);
1836
1836
  }
1837
1837
  _deleteNode(node) {
@@ -2666,7 +2666,7 @@ var BPTreeAsyncTransaction = class extends BPTreeTransaction {
2666
2666
  return node;
2667
2667
  }
2668
2668
  async _updateNode(node) {
2669
- await this.mvcc.write(node.id, JSON.parse(JSON.stringify(node)));
2669
+ await this.mvcc.write(node.id, node);
2670
2670
  this.nodes.set(node.id, node);
2671
2671
  }
2672
2672
  async _deleteNode(node) {
@@ -1795,7 +1795,7 @@ var BPTreeSyncTransaction = class extends BPTreeTransaction {
1795
1795
  return node;
1796
1796
  }
1797
1797
  _updateNode(node) {
1798
- this.mvcc.write(node.id, JSON.parse(JSON.stringify(node)));
1798
+ this.mvcc.write(node.id, node);
1799
1799
  this.nodes.set(node.id, node);
1800
1800
  }
1801
1801
  _deleteNode(node) {
@@ -2630,7 +2630,7 @@ var BPTreeAsyncTransaction = class extends BPTreeTransaction {
2630
2630
  return node;
2631
2631
  }
2632
2632
  async _updateNode(node) {
2633
- await this.mvcc.write(node.id, JSON.parse(JSON.stringify(node)));
2633
+ await this.mvcc.write(node.id, node);
2634
2634
  this.nodes.set(node.id, node);
2635
2635
  }
2636
2636
  async _deleteNode(node) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "serializable-bptree",
3
- "version": "8.0.1",
3
+ "version": "8.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",