Comparing version 1.0.2 to 1.0.3
# CHANGELOG | ||
- v1.0.3 - 2020-01-28 | ||
- Fixed eternal loop when breaking IDLE after connection is closed | ||
- v1.0.2 - 2020-01-24 | ||
- Allow using emailId and threadId as search parameters | ||
- Allow using emailId and threadId as search parameters | ||
@@ -7,0 +11,0 @@ - v1.0.1 - 2020-01-14 |
'use strict'; | ||
const NOOP_INTERVAL = 30 * 1000; | ||
const NOOP_INTERVAL = 2 * 60 * 1000; | ||
@@ -20,2 +20,3 @@ // Listes for changes in mailbox | ||
connection.preCheck = async () => { | ||
connection.preCheck = false; // unset itself | ||
connection.write('DONE'); | ||
@@ -27,10 +28,14 @@ connection.log.info({ src: 'c', msg: `breaking IDLE` }); | ||
// unset before response.next() | ||
connection.onPlusTag = false; | ||
connection.preCheck = false; | ||
response.next(); | ||
return; | ||
} catch (err) { | ||
connection.onPlusTag = false; | ||
connection.preCheck = false; | ||
connection.log.error(err); | ||
return false; | ||
} finally { | ||
connection.onPlusTag = false; | ||
connection.preCheck = false; | ||
} | ||
@@ -44,4 +49,4 @@ } | ||
connection.preCheck = async () => { | ||
connection.preCheck = false; // unset itself | ||
clearTimeout(idleTimer); | ||
connection.preCheck = false; | ||
connection.log.info({ src: 'c', msg: `breaking NOOP loop` }); | ||
@@ -48,0 +53,0 @@ resolve(); |
{ | ||
"name": "imapflow", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "IMAP Client for Node", | ||
@@ -31,3 +31,3 @@ "main": "./lib/imap-flow.js", | ||
"eslint-config-nodemailer": "1.2.0", | ||
"eslint-config-prettier": "6.9.0", | ||
"eslint-config-prettier": "6.10.0", | ||
"grunt": "1.0.4", | ||
@@ -34,0 +34,0 @@ "grunt-cli": "1.3.2", |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
425853
10170
0