mol_plot_all 1.2.1263 → 1.2.1264
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
|
@@ -311,9 +311,8 @@ var $;
|
|
|
311
311
|
if (sub_pos !== end) {
|
|
312
312
|
this.peer_move(end, sub_pos);
|
|
313
313
|
}
|
|
314
|
-
this.data.
|
|
315
|
-
this.
|
|
316
|
-
if (this.data.length === this.sub_from)
|
|
314
|
+
this.data.length = end;
|
|
315
|
+
if (end === this.sub_from)
|
|
317
316
|
this.reap();
|
|
318
317
|
}
|
|
319
318
|
reap() { }
|
|
@@ -545,9 +544,8 @@ var $;
|
|
|
545
544
|
const sub = this.data[cursor];
|
|
546
545
|
const pos = this.data[cursor + 1];
|
|
547
546
|
sub.pub_off(pos);
|
|
548
|
-
this.data.pop();
|
|
549
|
-
this.data.pop();
|
|
550
547
|
}
|
|
548
|
+
this.data.length = this.sub_from;
|
|
551
549
|
this.cursor = this.pub_from;
|
|
552
550
|
this.track_cut();
|
|
553
551
|
this.cursor = $mol_wire_cursor.final;
|
|
@@ -556,23 +554,15 @@ var $;
|
|
|
556
554
|
if (this.cursor < this.pub_from) {
|
|
557
555
|
$mol_fail(new Error('Cut of non begun sub'));
|
|
558
556
|
}
|
|
559
|
-
let
|
|
557
|
+
let end = this.data.length;
|
|
560
558
|
for (let cursor = this.cursor; cursor < this.sub_from; cursor += 2) {
|
|
561
559
|
const pub = this.data[cursor];
|
|
562
560
|
pub?.sub_off(this.data[cursor + 1]);
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
this.
|
|
566
|
-
this.data.pop();
|
|
567
|
-
}
|
|
568
|
-
else {
|
|
569
|
-
++tail;
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
for (; tail; --tail) {
|
|
573
|
-
this.data.pop();
|
|
574
|
-
this.data.pop();
|
|
561
|
+
end -= 2;
|
|
562
|
+
if (this.sub_from <= end)
|
|
563
|
+
this.peer_move(end, cursor);
|
|
575
564
|
}
|
|
565
|
+
this.data.length = end;
|
|
576
566
|
this.sub_from = this.cursor;
|
|
577
567
|
}
|
|
578
568
|
complete() { }
|
package/node.test.js
CHANGED
|
@@ -302,9 +302,8 @@ var $;
|
|
|
302
302
|
if (sub_pos !== end) {
|
|
303
303
|
this.peer_move(end, sub_pos);
|
|
304
304
|
}
|
|
305
|
-
this.data.
|
|
306
|
-
this.
|
|
307
|
-
if (this.data.length === this.sub_from)
|
|
305
|
+
this.data.length = end;
|
|
306
|
+
if (end === this.sub_from)
|
|
308
307
|
this.reap();
|
|
309
308
|
}
|
|
310
309
|
reap() { }
|
|
@@ -536,9 +535,8 @@ var $;
|
|
|
536
535
|
const sub = this.data[cursor];
|
|
537
536
|
const pos = this.data[cursor + 1];
|
|
538
537
|
sub.pub_off(pos);
|
|
539
|
-
this.data.pop();
|
|
540
|
-
this.data.pop();
|
|
541
538
|
}
|
|
539
|
+
this.data.length = this.sub_from;
|
|
542
540
|
this.cursor = this.pub_from;
|
|
543
541
|
this.track_cut();
|
|
544
542
|
this.cursor = $mol_wire_cursor.final;
|
|
@@ -547,23 +545,15 @@ var $;
|
|
|
547
545
|
if (this.cursor < this.pub_from) {
|
|
548
546
|
$mol_fail(new Error('Cut of non begun sub'));
|
|
549
547
|
}
|
|
550
|
-
let
|
|
548
|
+
let end = this.data.length;
|
|
551
549
|
for (let cursor = this.cursor; cursor < this.sub_from; cursor += 2) {
|
|
552
550
|
const pub = this.data[cursor];
|
|
553
551
|
pub?.sub_off(this.data[cursor + 1]);
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
this.
|
|
557
|
-
this.data.pop();
|
|
558
|
-
}
|
|
559
|
-
else {
|
|
560
|
-
++tail;
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
for (; tail; --tail) {
|
|
564
|
-
this.data.pop();
|
|
565
|
-
this.data.pop();
|
|
552
|
+
end -= 2;
|
|
553
|
+
if (this.sub_from <= end)
|
|
554
|
+
this.peer_move(end, cursor);
|
|
566
555
|
}
|
|
556
|
+
this.data.length = end;
|
|
567
557
|
this.sub_from = this.cursor;
|
|
568
558
|
}
|
|
569
559
|
complete() { }
|