imapflow 1.2.16 → 1.2.18

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.
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "1.2.16"
2
+ ".": "1.2.18"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.2.18](https://github.com/postalsys/imapflow/compare/v1.2.17...v1.2.18) (2026-03-25)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * use consistent keys for requestTagMap deletion during connection close ([92e1885](https://github.com/postalsys/imapflow/commit/92e188507c0376577f1680f42df747e2cc4b677a))
9
+
10
+ ## [1.2.17](https://github.com/postalsys/imapflow/compare/v1.2.16...v1.2.17) (2026-03-25)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * Bumped deps ([e3c75ab](https://github.com/postalsys/imapflow/commit/e3c75ab018b2e4a5f71c4c611ef795ea63539676))
16
+
3
17
  ## [1.2.16](https://github.com/postalsys/imapflow/compare/v1.2.15...v1.2.16) (2026-03-19)
4
18
 
5
19
 
package/lib/imap-flow.js CHANGED
@@ -1799,9 +1799,10 @@ class ImapFlow extends EventEmitter {
1799
1799
 
1800
1800
  // reject command that is currently processed
1801
1801
  if (this.currentRequest && this.requestTagMap.has(this.currentRequest.tag)) {
1802
- let request = this.requestTagMap.get(this.currentRequest.tag);
1802
+ let tag = this.currentRequest.tag;
1803
+ let request = this.requestTagMap.get(tag);
1803
1804
  if (request) {
1804
- this.requestTagMap.delete(request.tag);
1805
+ this.requestTagMap.delete(tag);
1805
1806
  pendingRequests.push(request);
1806
1807
  }
1807
1808
  this.currentRequest = false;
@@ -1813,7 +1814,7 @@ class ImapFlow extends EventEmitter {
1813
1814
  if (req && this.requestTagMap.has(req.tag)) {
1814
1815
  let request = this.requestTagMap.get(req.tag);
1815
1816
  if (request) {
1816
- this.requestTagMap.delete(request.tag);
1817
+ this.requestTagMap.delete(req.tag);
1817
1818
  pendingRequests.push(request);
1818
1819
  }
1819
1820
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imapflow",
3
- "version": "1.2.16",
3
+ "version": "1.2.18",
4
4
  "description": "IMAP Client for Node",
5
5
  "main": "lib/imap-flow.js",
6
6
  "types": "lib/imap-flow.d.ts",
@@ -30,7 +30,7 @@
30
30
  "@eslint/js": "10.0.1",
31
31
  "@types/node": "25.5.0",
32
32
  "c8": "11.0.0",
33
- "eslint": "10.0.3",
33
+ "eslint": "10.1.0",
34
34
  "eslint-config-nodemailer": "1.2.0",
35
35
  "eslint-config-prettier": "10.1.8",
36
36
  "grunt": "1.6.1",
@@ -39,7 +39,7 @@
39
39
  "grunt-eslint": "26.0.0",
40
40
  "prettier": "3.8.1",
41
41
  "proxyquire": "^2.1.3",
42
- "typescript": "5.9.3"
42
+ "typescript": "6.0.2"
43
43
  },
44
44
  "dependencies": {
45
45
  "@zone-eu/mailsplit": "5.4.8",
@@ -48,7 +48,7 @@
48
48
  "libbase64": "1.3.0",
49
49
  "libmime": "5.3.7",
50
50
  "libqp": "2.1.1",
51
- "nodemailer": "8.0.3",
51
+ "nodemailer": "8.0.4",
52
52
  "pino": "10.3.1",
53
53
  "socks": "2.8.7"
54
54
  }