Skip to content

Commit

Permalink
change bugs and versions
Browse files Browse the repository at this point in the history
  • Loading branch information
devchanki committed May 8, 2024
1 parent 5fa8534 commit 5ed2d73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/yapople.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function onData(data) {
if (typeof this.flow !== 'undefined') { // for first and all next data chunks
this.flow = Buffer.concat([this.flow, data]); // append chunk to buffer

if (this._command.cmd === state.RETR && sData.slice(-5) !== '\r\n.\r\n') return;
if (this._command.cmd === state.RETR && this.flow.slice(-5).toString() !== '\r\n.\r\n') return;
if (
this.flow.slice(this.flow.length - 3).toString() === '.\r\n' ||
sData.substr(-3) === '.\r\n'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yapople",
"version": "0.4.8",
"version": "0.4.9",
"author": "Andrew D.Laptev <[email protected]>",
"description": "Yet another POP3 library",
"main": "lib/yapople.js",
Expand Down

0 comments on commit 5ed2d73

Please sign in to comment.