imapflow 1.0.151 → 1.0.153

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/lib/tools.js +13 -4
  3. package/package.json +10 -10
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.153](https://github.com/postalsys/imapflow/compare/v1.0.152...v1.0.153) (2024-02-29)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **deps:** Bumped deps ([559aa72](https://github.com/postalsys/imapflow/commit/559aa72337018f21a3675f4521ce4aae87e0aabb))
9
+
10
+ ## [1.0.152](https://github.com/postalsys/imapflow/compare/v1.0.151...v1.0.152) (2024-02-12)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **address:** do not use '@' instead of empyt address if a field does not contain a value ([aeabbde](https://github.com/postalsys/imapflow/commit/aeabbded3bf3c6ba7266f79d4bc001980644da0d))
16
+
3
17
  ## [1.0.151](https://github.com/postalsys/imapflow/compare/v1.0.150...v1.0.151) (2024-02-12)
4
18
 
5
19
 
package/lib/tools.js CHANGED
@@ -423,10 +423,19 @@ module.exports = {
423
423
  };
424
424
 
425
425
  let processAddresses = function (list) {
426
- return [].concat(list || []).map(addr => ({
427
- name: module.exports.processName(libmime.decodeWords(getStrValue(addr[0]))),
428
- address: (getStrValue(addr[2]) || '') + '@' + (getStrValue(addr[3]) || '')
429
- }));
426
+ return []
427
+ .concat(list || [])
428
+ .map(addr => {
429
+ let address = (getStrValue(addr[2]) || '') + '@' + (getStrValue(addr[3]) || '');
430
+ if (address === '@') {
431
+ address = '';
432
+ }
433
+ return {
434
+ name: module.exports.processName(libmime.decodeWords(getStrValue(addr[0]))),
435
+ address
436
+ };
437
+ })
438
+ .filter(addr => addr.name || addr.address);
430
439
  },
431
440
  envelope = {};
432
441
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imapflow",
3
- "version": "1.0.151",
3
+ "version": "1.0.153",
4
4
  "description": "IMAP Client for Node",
5
5
  "main": "./lib/imap-flow.js",
6
6
  "scripts": {
@@ -31,9 +31,9 @@
31
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
- "@babel/preset-env": "7.23.9",
35
- "@types/node": "20.11.17",
36
- "eslint": "8.56.0",
34
+ "@babel/preset-env": "7.24.0",
35
+ "@types/node": "20.11.22",
36
+ "eslint": "8.57.0",
37
37
  "eslint-config-nodemailer": "1.2.0",
38
38
  "eslint-config-prettier": "9.1.0",
39
39
  "grunt": "1.6.1",
@@ -48,12 +48,12 @@
48
48
  "dependencies": {
49
49
  "encoding-japanese": "2.0.0",
50
50
  "iconv-lite": "0.6.3",
51
- "libbase64": "1.2.1",
52
- "libmime": "5.2.1",
53
- "libqp": "2.0.1",
51
+ "libbase64": "1.3.0",
52
+ "libmime": "5.3.4",
53
+ "libqp": "2.1.0",
54
54
  "mailsplit": "5.4.0",
55
- "nodemailer": "6.9.9",
56
- "pino": "8.18.0",
57
- "socks": "2.7.3"
55
+ "nodemailer": "6.9.11",
56
+ "pino": "8.19.0",
57
+ "socks": "2.8.1"
58
58
  }
59
59
  }