mol_jsx_lib 0.0.1144 → 0.0.1146
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.deps.json +1 -1
- package/node.js +8 -18
- package/node.js.map +1 -1
- package/node.mjs +8 -18
- package/node.test.js +8 -18
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.js +8 -18
- package/web.js.map +1 -1
- package/web.mjs +8 -18
package/node.mjs
CHANGED
|
@@ -452,9 +452,8 @@ var $;
|
|
|
452
452
|
if (sub_pos !== end) {
|
|
453
453
|
this.peer_move(end, sub_pos);
|
|
454
454
|
}
|
|
455
|
-
this.data.
|
|
456
|
-
this.
|
|
457
|
-
if (this.data.length === this.sub_from)
|
|
455
|
+
this.data.length = end;
|
|
456
|
+
if (end === this.sub_from)
|
|
458
457
|
this.reap();
|
|
459
458
|
}
|
|
460
459
|
reap() { }
|
|
@@ -686,9 +685,8 @@ var $;
|
|
|
686
685
|
const sub = this.data[cursor];
|
|
687
686
|
const pos = this.data[cursor + 1];
|
|
688
687
|
sub.pub_off(pos);
|
|
689
|
-
this.data.pop();
|
|
690
|
-
this.data.pop();
|
|
691
688
|
}
|
|
689
|
+
this.sub_from = this.pub_from;
|
|
692
690
|
this.cursor = this.pub_from;
|
|
693
691
|
this.track_cut();
|
|
694
692
|
this.cursor = $mol_wire_cursor.final;
|
|
@@ -697,23 +695,15 @@ var $;
|
|
|
697
695
|
if (this.cursor < this.pub_from) {
|
|
698
696
|
$mol_fail(new Error('Cut of non begun sub'));
|
|
699
697
|
}
|
|
700
|
-
let
|
|
698
|
+
let end = this.data.length;
|
|
701
699
|
for (let cursor = this.cursor; cursor < this.sub_from; cursor += 2) {
|
|
702
700
|
const pub = this.data[cursor];
|
|
703
701
|
pub?.sub_off(this.data[cursor + 1]);
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
this.
|
|
707
|
-
this.data.pop();
|
|
708
|
-
}
|
|
709
|
-
else {
|
|
710
|
-
++tail;
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
for (; tail; --tail) {
|
|
714
|
-
this.data.pop();
|
|
715
|
-
this.data.pop();
|
|
702
|
+
end -= 2;
|
|
703
|
+
if (this.sub_from < end)
|
|
704
|
+
this.peer_move(end, cursor);
|
|
716
705
|
}
|
|
706
|
+
this.data.length = end;
|
|
717
707
|
this.sub_from = this.cursor;
|
|
718
708
|
}
|
|
719
709
|
complete() { }
|
package/node.test.js
CHANGED
|
@@ -443,9 +443,8 @@ var $;
|
|
|
443
443
|
if (sub_pos !== end) {
|
|
444
444
|
this.peer_move(end, sub_pos);
|
|
445
445
|
}
|
|
446
|
-
this.data.
|
|
447
|
-
this.
|
|
448
|
-
if (this.data.length === this.sub_from)
|
|
446
|
+
this.data.length = end;
|
|
447
|
+
if (end === this.sub_from)
|
|
449
448
|
this.reap();
|
|
450
449
|
}
|
|
451
450
|
reap() { }
|
|
@@ -677,9 +676,8 @@ var $;
|
|
|
677
676
|
const sub = this.data[cursor];
|
|
678
677
|
const pos = this.data[cursor + 1];
|
|
679
678
|
sub.pub_off(pos);
|
|
680
|
-
this.data.pop();
|
|
681
|
-
this.data.pop();
|
|
682
679
|
}
|
|
680
|
+
this.sub_from = this.pub_from;
|
|
683
681
|
this.cursor = this.pub_from;
|
|
684
682
|
this.track_cut();
|
|
685
683
|
this.cursor = $mol_wire_cursor.final;
|
|
@@ -688,23 +686,15 @@ var $;
|
|
|
688
686
|
if (this.cursor < this.pub_from) {
|
|
689
687
|
$mol_fail(new Error('Cut of non begun sub'));
|
|
690
688
|
}
|
|
691
|
-
let
|
|
689
|
+
let end = this.data.length;
|
|
692
690
|
for (let cursor = this.cursor; cursor < this.sub_from; cursor += 2) {
|
|
693
691
|
const pub = this.data[cursor];
|
|
694
692
|
pub?.sub_off(this.data[cursor + 1]);
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
this.
|
|
698
|
-
this.data.pop();
|
|
699
|
-
}
|
|
700
|
-
else {
|
|
701
|
-
++tail;
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
for (; tail; --tail) {
|
|
705
|
-
this.data.pop();
|
|
706
|
-
this.data.pop();
|
|
693
|
+
end -= 2;
|
|
694
|
+
if (this.sub_from < end)
|
|
695
|
+
this.peer_move(end, cursor);
|
|
707
696
|
}
|
|
697
|
+
this.data.length = end;
|
|
708
698
|
this.sub_from = this.cursor;
|
|
709
699
|
}
|
|
710
700
|
complete() { }
|