File tree Expand file tree Collapse file tree 4 files changed +3222
-3176
lines changed
Expand file tree Collapse file tree 4 files changed +3222
-3176
lines changed Original file line number Diff line number Diff line change 1+ diff --git a/src/zsession.js b/src/zsession.js
2+ index 5f0b8f9d8afa6fba0acd6dd0477afa186f7aad9a..c7ea98e0f08c97d63d321f784a5dd8bf66888743 100644
3+ --- a/src/zsession.js
4+ +++ b/src/zsession.js
5+ @@ -548,20 +548,17 @@ Zmodem.Session.Receive = class ZmodemReceiveSession extends Zmodem.Session {
6+ if (this._got_ZFIN) {
7+ if (this._input_buffer.length < 2) return;
8+
9+ - //if it’s OO, then set this._bytes_after_OO
10+ - if (Zmodem.ZMLIB.find_subarray(this._input_buffer, OVER_AND_OUT) === 0) {
11+ + if (Zmodem.ZMLIB.find_subarray(this._input_buffer, OVER_AND_OUT) !== 0) {
12+ + console.warn( "PROTOCOL: Only thing after ZFIN should be “OO” (79,79), not: " + this._input_buffer.join() );
13+ + }
14+
15+ - //This doubles as an indication that the session has ended.
16+ - //We need to set this right away so that handlers like
17+ - //"session_end" will have access to it.
18+ - this._bytes_after_OO = _trim_OO(this._bytes_being_consumed.slice(0));
19+ - this._on_session_end();
20+ + //This doubles as an indication that the session has ended.
21+ + //We need to set this right away so that handlers like
22+ + //"session_end" will have access to it.
23+ + this._bytes_after_OO = _trim_OO(this._bytes_being_consumed.slice(0));
24+ + this._on_session_end();
25+
26+ - return;
27+ - }
28+ - else {
29+ - throw( "PROTOCOL: Only thing after ZFIN should be “OO” (79,79), not: " + this._input_buffer.join() );
30+ - }
31+ + return;
32+ }
33+
34+ var parsed;
Original file line number Diff line number Diff line change 6060 "xterm-addon-web-links" : " ^0.7.0" ,
6161 "xterm-addon-webgl" : " ^0.13.0" ,
6262 "zmodem.js" : " ^0.1.10"
63+ },
64+ "resolutions" : {
65+ "zmodem.js@^0.1.10" : " patch:zmodem.js@npm%3A0.1.10#./.yarn/patches/zmodem.js-npm-0.1.10-e5537fa2ed.patch"
6366 }
6467}
Original file line number Diff line number Diff line change @@ -10584,11 +10584,20 @@ __metadata:
1058410584 languageName : node
1058510585 linkType : hard
1058610586
10587- " zmodem.js@npm:^ 0.1.10 " :
10587+ " zmodem.js@npm:0.1.10 " :
1058810588 version : 0.1.10
1058910589 resolution : " zmodem.js@npm:0.1.10"
1059010590 dependencies :
1059110591 crc-32 : ^1.1.1
1059210592 checksum : d6cd400a4d6439b653519305518eb46a11bd0b48a744a12471c35f18b795fd253f3f6fe50247883f430b067c41b79d43f777532f728be66a8dd384df5f9d6f4f
1059310593 languageName : node
1059410594 linkType : hard
10595+
10596+ " zmodem.js@patch:zmodem.js@npm%3A0.1.10#./.yarn/patches/zmodem.js-npm-0.1.10-e5537fa2ed.patch::locator=ttyd%40workspace%3A. " :
10597+ version : 0.1.10
10598+ resolution : " zmodem.js@patch:zmodem.js@npm%3A0.1.10#./.yarn/patches/zmodem.js-npm-0.1.10-e5537fa2ed.patch::version=0.1.10&hash=7aa19a&locator=ttyd%40workspace%3A."
10599+ dependencies :
10600+ crc-32 : ^1.1.1
10601+ checksum : ca52c5fad8a2e7df8aae678d50bf82701e94543547368470998c39af0a2e01908252d89a976c6748a89048dc332def688ad845082090035a18387c8611abe70b
10602+ languageName : node
10603+ linkType : hard
You can’t perform that action at this time.
0 commit comments