imapflow 1.0.114 → 1.0.116

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,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ - 1.0.116 - 2022-11-30
4
+
5
+ - Added `SPECIAL-USE` flag by default when given parameters to `Imap#list`
6
+
3
7
  - 1.0.113 - 2022-10-21
4
8
 
5
9
  - Added `stats()` method to get the count of bytes sent and received
@@ -44,6 +44,9 @@ module.exports = async (connection, reference, mailbox, options) => {
44
44
 
45
45
  if (listCommand === 'LIST' && connection.capabilities.has('LIST-STATUS') && statusQueryAttributes.length) {
46
46
  returnArgs.push({ type: 'ATOM', value: 'STATUS' }, statusQueryAttributes);
47
+ if (connection.capabilities.has('SPECIAL-USE')) {
48
+ returnArgs.push({ type: 'ATOM', value: 'SPECIAL-USE' });
49
+ }
47
50
  }
48
51
 
49
52
  let runList = async (reference, mailbox) => {
package/lib/imap-flow.js CHANGED
@@ -2322,7 +2322,7 @@ class ImapFlow extends EventEmitter {
2322
2322
  options.uid = true;
2323
2323
  }
2324
2324
 
2325
- let chunk = !part ? response.source : response.bodyParts.get(part);
2325
+ let chunk = !part ? response.source : response.bodyParts && response.bodyParts.get(part);
2326
2326
  if (!chunk) {
2327
2327
  return {};
2328
2328
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imapflow",
3
- "version": "1.0.114",
3
+ "version": "1.0.116",
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-plugin": "7.19.1",
32
32
  "@babel/plugin-syntax-class-properties": "7.12.13",
33
33
  "@babel/preset-env": "7.20.2",
34
- "@types/node": "18.11.9",
34
+ "@types/node": "18.11.10",
35
35
  "braintree-jsdoc-template": "3.3.0",
36
- "eslint": "8.27.0",
36
+ "eslint": "8.28.0",
37
37
  "eslint-config-nodemailer": "1.2.0",
38
38
  "eslint-config-prettier": "8.5.0",
39
39
  "grunt": "1.5.3",