imapflow 1.0.149 → 1.0.151

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,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.151](https://github.com/postalsys/imapflow/compare/v1.0.150...v1.0.151) (2024-02-12)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **filename:** Fixed filename decoding for the download method ([68a8159](https://github.com/postalsys/imapflow/commit/68a8159a0988245bf3f7c9b002823b01d9d24876))
9
+
10
+ ## [1.0.150](https://github.com/postalsys/imapflow/compare/v1.0.149...v1.0.150) (2024-02-01)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **deps:** Bumped Nodemailer version ([ee02764](https://github.com/postalsys/imapflow/commit/ee0276493494ecf08be557cc0c486fe309d359bf))
16
+
3
17
  ## [1.0.149](https://github.com/postalsys/imapflow/compare/v1.0.148...v1.0.149) (2024-01-31)
4
18
 
5
19
 
package/lib/imap-flow.js CHANGED
@@ -2248,6 +2248,8 @@ class ImapFlow extends EventEmitter {
2248
2248
  * // fetch UID for all messages in a mailbox
2249
2249
  * for await (let msg of client.fetch('1:*', {uid: true})){
2250
2250
  * console.log(msg.uid);
2251
+ * // NB! You can not run any IMAP commands in this loop
2252
+ * // otherwise you will end up in a deadloop
2251
2253
  * }
2252
2254
  */
2253
2255
  async *fetch(range, query, options) {
@@ -2584,7 +2586,7 @@ class ImapFlow extends EventEmitter {
2584
2586
  let filename = disposition.params.filename || contentType.params.name || false;
2585
2587
  if (filename) {
2586
2588
  try {
2587
- filename = this.libmime.decodeWords(filename);
2589
+ filename = libmime.decodeWords(filename);
2588
2590
  } catch (err) {
2589
2591
  // failed to parse filename, keep as is (most probably an unknown charset is used)
2590
2592
  }
@@ -2778,7 +2780,7 @@ class ImapFlow extends EventEmitter {
2778
2780
  let filename = disposition.params.filename || contentType.params.name || false;
2779
2781
  if (filename) {
2780
2782
  try {
2781
- filename = this.libmime.decodeWords(filename);
2783
+ filename = libmime.decodeWords(filename);
2782
2784
  } catch (err) {
2783
2785
  // failed to parse filename, keep as is (most probably an unknown charset is used)
2784
2786
  }
package/lib/types.d.ts CHANGED
@@ -463,6 +463,8 @@ declare module "imapflow" {
463
463
  * // fetch UID for all messages in a mailbox
464
464
  * for await (let msg of client.fetch('1:*', {uid: true})){
465
465
  * console.log(msg.uid);
466
+ * // NB! You can not run any IMAP commands in this loop
467
+ * // otherwise you will end up in a deadloop
466
468
  * }
467
469
  * @param range - Range of messages to fetch
468
470
  * @param query - Fetch query
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imapflow",
3
- "version": "1.0.149",
3
+ "version": "1.0.151",
4
4
  "description": "IMAP Client for Node",
5
5
  "main": "./lib/imap-flow.js",
6
6
  "scripts": {
@@ -28,11 +28,11 @@
28
28
  },
29
29
  "homepage": "https://imapflow.com/",
30
30
  "devDependencies": {
31
- "@babel/eslint-parser": "7.23.9",
31
+ "@babel/eslint-parser": "7.23.10",
32
32
  "@babel/eslint-plugin": "7.23.5",
33
33
  "@babel/plugin-syntax-class-properties": "7.12.13",
34
34
  "@babel/preset-env": "7.23.9",
35
- "@types/node": "20.11.13",
35
+ "@types/node": "20.11.17",
36
36
  "eslint": "8.56.0",
37
37
  "eslint-config-nodemailer": "1.2.0",
38
38
  "eslint-config-prettier": "9.1.0",
@@ -52,8 +52,8 @@
52
52
  "libmime": "5.2.1",
53
53
  "libqp": "2.0.1",
54
54
  "mailsplit": "5.4.0",
55
- "nodemailer": "6.9.8",
56
- "pino": "8.17.2",
57
- "socks": "2.7.1"
55
+ "nodemailer": "6.9.9",
56
+ "pino": "8.18.0",
57
+ "socks": "2.7.3"
58
58
  }
59
59
  }