imapflow 1.0.107 → 1.0.108

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.
@@ -81,31 +81,6 @@ async function getListPrefix(connection) {
81
81
  }
82
82
  });
83
83
  response.next();
84
- if (map.flags.has('\\Noselect') && map.delimiter) {
85
- // can not use root namespace
86
- let inboxEntry = {};
87
- response = await connection.exec('LIST', ['INBOX', ''], {
88
- untagged: {
89
- LIST: async untagged => {
90
- if (!untagged.attributes || !untagged.attributes.length) {
91
- return;
92
- }
93
-
94
- inboxEntry.flags = new Set(untagged.attributes[0].map(entry => entry.value));
95
- inboxEntry.delimiter = untagged.attributes[1] && untagged.attributes[1].value;
96
- inboxEntry.prefix = (untagged.attributes[2] && untagged.attributes[2].value) || '';
97
-
98
- if (inboxEntry.delimiter && inboxEntry.prefix.charAt(0) === inboxEntry.delimiter) {
99
- inboxEntry.prefix = inboxEntry.prefix.slice(1);
100
- }
101
- }
102
- }
103
- });
104
- response.next();
105
- if (inboxEntry) {
106
- return inboxEntry;
107
- }
108
- }
109
84
  return map;
110
85
  } catch (err) {
111
86
  connection.log.warn({ err, cid: connection.id });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imapflow",
3
- "version": "1.0.107",
3
+ "version": "1.0.108",
4
4
  "description": "IMAP Client for Node",
5
5
  "main": "./lib/imap-flow.js",
6
6
  "scripts": {
@@ -27,13 +27,13 @@
27
27
  },
28
28
  "homepage": "https://imapflow.com/",
29
29
  "devDependencies": {
30
- "@babel/eslint-parser": "7.18.9",
31
- "@babel/eslint-plugin": "7.18.10",
30
+ "@babel/eslint-parser": "7.19.1",
31
+ "@babel/eslint-plugin": "7.19.1",
32
32
  "@babel/plugin-syntax-class-properties": "7.12.13",
33
- "@babel/preset-env": "7.18.10",
34
- "@types/node": "18.7.14",
33
+ "@babel/preset-env": "7.19.1",
34
+ "@types/node": "18.7.18",
35
35
  "braintree-jsdoc-template": "3.3.0",
36
- "eslint": "8.23.0",
36
+ "eslint": "8.23.1",
37
37
  "eslint-config-nodemailer": "1.2.0",
38
38
  "eslint-config-prettier": "8.5.0",
39
39
  "grunt": "1.5.3",
@@ -52,7 +52,7 @@
52
52
  "libqp": "1.1.0",
53
53
  "mailsplit": "5.3.2",
54
54
  "nodemailer": "6.7.8",
55
- "pino": "8.4.2",
55
+ "pino": "8.6.0",
56
56
  "socks": "2.7.0"
57
57
  }
58
58
  }