emailjs-imap-client
Advanced tools
Comparing version 2.0.6-beta.2 to 2.0.6-beta.3
{ | ||
"name": "emailjs-imap-client", | ||
"version": "2.0.6-beta.2", | ||
"version": "2.0.6-beta.3", | ||
"homepage": "https://github.com/emailjs/emailjs-imap-client", | ||
@@ -5,0 +5,0 @@ "description": "JavaScript IMAP client", |
@@ -433,3 +433,3 @@ (function(root, factory) { | ||
} | ||
if (j >= buf.length-1) { | ||
if (j+3 >= buf.length) { | ||
// not enough info to determine if this is literal length | ||
@@ -436,0 +436,0 @@ this._concatLastTwoBuffers = true; |
@@ -236,2 +236,11 @@ 'use strict'; | ||
it('should process literal when literal count arrives in 2 parts 4', () => { | ||
appendIncomingBuffer('* 1 FETCH (UID 1 BODY[HEADER.FIELDS (REFERENCES LIST-ID)] {2}\r'); | ||
var iterator1 = client._iterateIncomingBuffer(); | ||
expect(iterator1.next().value).to.be.undefined; | ||
appendIncomingBuffer('\nXX)\r\n'); | ||
var iterator2 = client._iterateIncomingBuffer(); | ||
expect(iterator2.next().value).to.equal('* 1 FETCH (UID 1 BODY[HEADER.FIELDS (REFERENCES LIST-ID)] {2}\r\nXX)'); | ||
}); | ||
it('should process literal when literal count arrives in 3 parts', () => { | ||
@@ -238,0 +247,0 @@ appendIncomingBuffer('* 1 FETCH (UID {'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
569914
14126