imapflow 1.0.178 → 1.0.179

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.179](https://github.com/postalsys/imapflow/compare/v1.0.178...v1.0.179) (2025-01-28)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **connection-failure:** Reject all pending commands, not just LOGOUT ([1b42a61](https://github.com/postalsys/imapflow/commit/1b42a6116a76bf8fc8a9cf9a0421b53c659a5e98))
9
+
3
10
  ## [1.0.178](https://github.com/postalsys/imapflow/compare/v1.0.177...v1.0.178) (2025-01-23)
4
11
 
5
12
 
package/lib/imap-flow.js CHANGED
@@ -1583,7 +1583,7 @@ class ImapFlow extends EventEmitter {
1583
1583
  // reject command that is currently processed
1584
1584
  if (this.currentRequest && this.requestTagMap.has(this.currentRequest.tag)) {
1585
1585
  let request = this.requestTagMap.get(this.currentRequest.tag);
1586
- if (request && ['LOGOUT'].includes(request.command)) {
1586
+ if (request) {
1587
1587
  this.requestTagMap.delete(request.tag);
1588
1588
  const error = new Error('Connection not available');
1589
1589
  error.code = 'NoConnection';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imapflow",
3
- "version": "1.0.178",
3
+ "version": "1.0.179",
4
4
  "description": "IMAP Client for Node",
5
5
  "main": "./lib/imap-flow.js",
6
6
  "scripts": {