emailjs-imap-client
Advanced tools
Comparing version 3.0.3 to 3.0.4
{ | ||
"name": "emailjs-imap-client", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"homepage": "https://github.com/emailjs/emailjs-imap-client", | ||
@@ -5,0 +5,0 @@ "description": "JavaScript IMAP client", |
@@ -67,3 +67,2 @@ import { propOr } from 'ramda' | ||
this.timeoutSocketMultiplier = TIMEOUT_SOCKET_MULTIPLIER | ||
this.onDataTimeout = this.timeoutSocketLowerBound + Math.floor(4096 * this.timeoutSocketMultiplier) | ||
@@ -403,3 +402,4 @@ this.options = options | ||
clearTimeout(this._socketTimeoutTimer) // reset the timeout on each data packet | ||
this._socketTimeoutTimer = setTimeout(() => this._onError(new Error(' Socket timed out!')), this.ON_DATA_TIMEOUT) | ||
const timeout = this.timeoutSocketLowerBound + Math.floor(4096 * this.timeoutSocketMultiplier) // max packet size is 4096 bytes | ||
this._socketTimeoutTimer = setTimeout(() => this._onError(new Error(' Socket timed out!')), timeout) | ||
@@ -406,0 +406,0 @@ this._incomingBuffers.push(new Uint8Array(evt.data)) // append to the incoming buffer |
Sorry, the diff of this file is too big to display
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
705356