Skip to content

Commit

Permalink
Deploying to gh-pages from @ a6aac9c 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
nin-jin committed Jan 27, 2025
1 parent 80f56ac commit ad96749
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 95 deletions.
2 changes: 1 addition & 1 deletion node.deps.json

Large diffs are not rendered by default.

26 changes: 8 additions & 18 deletions node.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,8 @@ var $;
if (sub_pos !== end) {
this.peer_move(end, sub_pos);
}
this.data.pop();
this.data.pop();
if (this.data.length === this.sub_from)
this.data.length = end;
if (end === this.sub_from)
this.reap();
}
reap() { }
Expand Down Expand Up @@ -548,9 +547,8 @@ var $;
const sub = this.data[cursor];
const pos = this.data[cursor + 1];
sub.pub_off(pos);
this.data.pop();
this.data.pop();
}
this.data.length = this.sub_from;
this.cursor = this.pub_from;
this.track_cut();
this.cursor = $mol_wire_cursor.final;
Expand All @@ -559,23 +557,15 @@ var $;
if (this.cursor < this.pub_from) {
$mol_fail(new Error('Cut of non begun sub'));
}
let tail = 0;
let end = this.data.length;
for (let cursor = this.cursor; cursor < this.sub_from; cursor += 2) {
const pub = this.data[cursor];
pub?.sub_off(this.data[cursor + 1]);
if (this.sub_from < this.data.length) {
this.peer_move(this.data.length - 2, cursor);
this.data.pop();
this.data.pop();
}
else {
++tail;
}
}
for (; tail; --tail) {
this.data.pop();
this.data.pop();
end -= 2;
if (this.sub_from <= end)
this.peer_move(end, cursor);
}
this.data.length = end;
this.sub_from = this.cursor;
}
complete() { }
Expand Down
2 changes: 1 addition & 1 deletion node.js.map

Large diffs are not rendered by default.

26 changes: 8 additions & 18 deletions node.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,8 @@ var $;
if (sub_pos !== end) {
this.peer_move(end, sub_pos);
}
this.data.pop();
this.data.pop();
if (this.data.length === this.sub_from)
this.data.length = end;
if (end === this.sub_from)
this.reap();
}
reap() { }
Expand Down Expand Up @@ -548,9 +547,8 @@ var $;
const sub = this.data[cursor];
const pos = this.data[cursor + 1];
sub.pub_off(pos);
this.data.pop();
this.data.pop();
}
this.data.length = this.sub_from;
this.cursor = this.pub_from;
this.track_cut();
this.cursor = $mol_wire_cursor.final;
Expand All @@ -559,23 +557,15 @@ var $;
if (this.cursor < this.pub_from) {
$mol_fail(new Error('Cut of non begun sub'));
}
let tail = 0;
let end = this.data.length;
for (let cursor = this.cursor; cursor < this.sub_from; cursor += 2) {
const pub = this.data[cursor];
pub?.sub_off(this.data[cursor + 1]);
if (this.sub_from < this.data.length) {
this.peer_move(this.data.length - 2, cursor);
this.data.pop();
this.data.pop();
}
else {
++tail;
}
}
for (; tail; --tail) {
this.data.pop();
this.data.pop();
end -= 2;
if (this.sub_from <= end)
this.peer_move(end, cursor);
}
this.data.length = end;
this.sub_from = this.cursor;
}
complete() { }
Expand Down
26 changes: 8 additions & 18 deletions node.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,8 @@ var $;
if (sub_pos !== end) {
this.peer_move(end, sub_pos);
}
this.data.pop();
this.data.pop();
if (this.data.length === this.sub_from)
this.data.length = end;
if (end === this.sub_from)
this.reap();
}
reap() { }
Expand Down Expand Up @@ -539,9 +538,8 @@ var $;
const sub = this.data[cursor];
const pos = this.data[cursor + 1];
sub.pub_off(pos);
this.data.pop();
this.data.pop();
}
this.data.length = this.sub_from;
this.cursor = this.pub_from;
this.track_cut();
this.cursor = $mol_wire_cursor.final;
Expand All @@ -550,23 +548,15 @@ var $;
if (this.cursor < this.pub_from) {
$mol_fail(new Error('Cut of non begun sub'));
}
let tail = 0;
let end = this.data.length;
for (let cursor = this.cursor; cursor < this.sub_from; cursor += 2) {
const pub = this.data[cursor];
pub?.sub_off(this.data[cursor + 1]);
if (this.sub_from < this.data.length) {
this.peer_move(this.data.length - 2, cursor);
this.data.pop();
this.data.pop();
}
else {
++tail;
}
}
for (; tail; --tail) {
this.data.pop();
this.data.pop();
end -= 2;
if (this.sub_from <= end)
this.peer_move(end, cursor);
}
this.data.length = end;
this.sub_from = this.cursor;
}
complete() { }
Expand Down
2 changes: 1 addition & 1 deletion node.test.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion web.deps.json

Large diffs are not rendered by default.

26 changes: 8 additions & 18 deletions web.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,8 @@ var $;
if (sub_pos !== end) {
this.peer_move(end, sub_pos);
}
this.data.pop();
this.data.pop();
if (this.data.length === this.sub_from)
this.data.length = end;
if (end === this.sub_from)
this.reap();
}
reap() { }
Expand Down Expand Up @@ -533,9 +532,8 @@ var $;
const sub = this.data[cursor];
const pos = this.data[cursor + 1];
sub.pub_off(pos);
this.data.pop();
this.data.pop();
}
this.data.length = this.sub_from;
this.cursor = this.pub_from;
this.track_cut();
this.cursor = $mol_wire_cursor.final;
Expand All @@ -544,23 +542,15 @@ var $;
if (this.cursor < this.pub_from) {
$mol_fail(new Error('Cut of non begun sub'));
}
let tail = 0;
let end = this.data.length;
for (let cursor = this.cursor; cursor < this.sub_from; cursor += 2) {
const pub = this.data[cursor];
pub?.sub_off(this.data[cursor + 1]);
if (this.sub_from < this.data.length) {
this.peer_move(this.data.length - 2, cursor);
this.data.pop();
this.data.pop();
}
else {
++tail;
}
}
for (; tail; --tail) {
this.data.pop();
this.data.pop();
end -= 2;
if (this.sub_from <= end)
this.peer_move(end, cursor);
}
this.data.length = end;
this.sub_from = this.cursor;
}
complete() { }
Expand Down
2 changes: 1 addition & 1 deletion web.js.map

Large diffs are not rendered by default.

26 changes: 8 additions & 18 deletions web.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,8 @@ var $;
if (sub_pos !== end) {
this.peer_move(end, sub_pos);
}
this.data.pop();
this.data.pop();
if (this.data.length === this.sub_from)
this.data.length = end;
if (end === this.sub_from)
this.reap();
}
reap() { }
Expand Down Expand Up @@ -533,9 +532,8 @@ var $;
const sub = this.data[cursor];
const pos = this.data[cursor + 1];
sub.pub_off(pos);
this.data.pop();
this.data.pop();
}
this.data.length = this.sub_from;
this.cursor = this.pub_from;
this.track_cut();
this.cursor = $mol_wire_cursor.final;
Expand All @@ -544,23 +542,15 @@ var $;
if (this.cursor < this.pub_from) {
$mol_fail(new Error('Cut of non begun sub'));
}
let tail = 0;
let end = this.data.length;
for (let cursor = this.cursor; cursor < this.sub_from; cursor += 2) {
const pub = this.data[cursor];
pub?.sub_off(this.data[cursor + 1]);
if (this.sub_from < this.data.length) {
this.peer_move(this.data.length - 2, cursor);
this.data.pop();
this.data.pop();
}
else {
++tail;
}
}
for (; tail; --tail) {
this.data.pop();
this.data.pop();
end -= 2;
if (this.sub_from <= end)
this.peer_move(end, cursor);
}
this.data.length = end;
this.sub_from = this.cursor;
}
complete() { }
Expand Down

0 comments on commit ad96749

Please sign in to comment.