mol_jsx_lib 0.0.1146 → 0.0.1148

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/node.mjs CHANGED
@@ -686,7 +686,7 @@ var $;
686
686
  const pos = this.data[cursor + 1];
687
687
  sub.pub_off(pos);
688
688
  }
689
- this.sub_from = this.pub_from;
689
+ this.data.length = this.sub_from;
690
690
  this.cursor = this.pub_from;
691
691
  this.track_cut();
692
692
  this.cursor = $mol_wire_cursor.final;
@@ -700,7 +700,7 @@ var $;
700
700
  const pub = this.data[cursor];
701
701
  pub?.sub_off(this.data[cursor + 1]);
702
702
  end -= 2;
703
- if (this.sub_from < end)
703
+ if (this.sub_from <= end)
704
704
  this.peer_move(end, cursor);
705
705
  }
706
706
  this.data.length = end;
package/node.test.js CHANGED
@@ -677,7 +677,7 @@ var $;
677
677
  const pos = this.data[cursor + 1];
678
678
  sub.pub_off(pos);
679
679
  }
680
- this.sub_from = this.pub_from;
680
+ this.data.length = this.sub_from;
681
681
  this.cursor = this.pub_from;
682
682
  this.track_cut();
683
683
  this.cursor = $mol_wire_cursor.final;
@@ -691,7 +691,7 @@ var $;
691
691
  const pub = this.data[cursor];
692
692
  pub?.sub_off(this.data[cursor + 1]);
693
693
  end -= 2;
694
- if (this.sub_from < end)
694
+ if (this.sub_from <= end)
695
695
  this.peer_move(end, cursor);
696
696
  }
697
697
  this.data.length = end;