imapflow 1.0.113 → 1.0.114

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/.ncurc.js ADDED
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ upgrade: true,
3
+ reject: ['jsdoc']
4
+ };
package/lib/imap-flow.js CHANGED
@@ -1126,9 +1126,9 @@ class ImapFlow extends EventEmitter {
1126
1126
  }
1127
1127
 
1128
1128
  if (range && typeof range === 'object' && !Array.isArray(range)) {
1129
- if (range.all && Object.keys(range) === 1) {
1129
+ if (range.all && Object.keys(range).length === 1) {
1130
1130
  range = '1:*';
1131
- } else if (range.uid && Object.keys(range) === 1) {
1131
+ } else if (range.uid && Object.keys(range).length === 1) {
1132
1132
  range = range.uid;
1133
1133
  options.uid = true;
1134
1134
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imapflow",
3
- "version": "1.0.113",
3
+ "version": "1.0.114",
4
4
  "description": "IMAP Client for Node",
5
5
  "main": "./lib/imap-flow.js",
6
6
  "scripts": {
@@ -30,10 +30,10 @@
30
30
  "@babel/eslint-parser": "7.19.1",
31
31
  "@babel/eslint-plugin": "7.19.1",
32
32
  "@babel/plugin-syntax-class-properties": "7.12.13",
33
- "@babel/preset-env": "7.19.4",
34
- "@types/node": "18.11.3",
33
+ "@babel/preset-env": "7.20.2",
34
+ "@types/node": "18.11.9",
35
35
  "braintree-jsdoc-template": "3.3.0",
36
- "eslint": "8.25.0",
36
+ "eslint": "8.27.0",
37
37
  "eslint-config-nodemailer": "1.2.0",
38
38
  "eslint-config-prettier": "8.5.0",
39
39
  "grunt": "1.5.3",
@@ -49,7 +49,7 @@
49
49
  "iconv-lite": "0.6.3",
50
50
  "libbase64": "1.2.1",
51
51
  "libmime": "5.1.0",
52
- "libqp": "1.1.0",
52
+ "libqp": "2.0.1",
53
53
  "mailsplit": "5.3.2",
54
54
  "nodemailer": "6.8.0",
55
55
  "pino": "8.7.0",