Comparing version 1.0.69 to 1.0.70
# CHANGELOG | ||
- 1.0.70 - 2021-09-27 | ||
- IDLE logging changes | ||
- 1.0.69 - 2021-09-27 | ||
@@ -4,0 +8,0 @@ |
@@ -46,2 +46,3 @@ 'use strict'; | ||
connection.log.debug({ src: 'c', msg: breaker, comment: `Error response for ${command}` }); | ||
connection.write(breaker); | ||
@@ -48,0 +49,0 @@ } |
@@ -19,8 +19,10 @@ 'use strict'; | ||
await new Promise(resolve => { | ||
connection.preCheck = false; // unset itself | ||
// small delay to make sure we do not call preCheck before command is actually executed | ||
setImmediate(() => { | ||
connection.preCheck = false; // unset itself | ||
connection.write('DONE'); | ||
connection.log.debug({ src: 'c', msg: `breaking IDLE` }); | ||
connection.idling = false; | ||
if (connection.idling) { | ||
connection.log.debug({ src: 'c', msg: `DONE`, comment: `breaking IDLE` }); | ||
connection.write('DONE'); | ||
connection.idling = false; | ||
} | ||
resolve(); | ||
@@ -33,3 +35,3 @@ }); | ||
onPlusTag: async () => { | ||
connection.log.debug({ src: 'c', msg: `initiated IDLE` }); | ||
connection.log.debug({ msg: `Initiated IDLE, waiting for server input` }); | ||
} | ||
@@ -36,0 +38,0 @@ }); |
{ | ||
"name": "imapflow", | ||
"version": "1.0.69", | ||
"version": "1.0.70", | ||
"description": "IMAP Client for Node", | ||
@@ -5,0 +5,0 @@ "main": "./lib/imap-flow.js", |
488274
11019