Comparing version
# Changelog | ||
## [1.0.185](https://github.com/postalsys/imapflow/compare/v1.0.184...v1.0.185) (2025-04-14) | ||
### Bug Fixes | ||
* **search:** add a `not` option for search options ([#281](https://github.com/postalsys/imapflow/issues/281)) ([000686b](https://github.com/postalsys/imapflow/commit/000686b2ace1ef0e21cca64d8e056d1f7f7f8914)) | ||
## [1.0.184](https://github.com/postalsys/imapflow/compare/v1.0.183...v1.0.184) (2025-03-11) | ||
@@ -4,0 +11,0 @@ |
@@ -14,3 +14,3 @@ 'use strict'; | ||
if (connection.states.SELECTED && connection.mailbox.path === path) { | ||
if (connection.state === connection.states.SELECTED && connection.mailbox.path === path) { | ||
await connection.run('CLOSE'); | ||
@@ -17,0 +17,0 @@ } |
@@ -15,3 +15,3 @@ 'use strict'; | ||
if (connection.states.SELECTED && connection.mailbox.path === path) { | ||
if (connection.state === connection.states.SELECTED && connection.mailbox.path === path) { | ||
await connection.run('CLOSE'); | ||
@@ -18,0 +18,0 @@ } |
@@ -193,2 +193,15 @@ 'use strict'; | ||
case 'NOT': | ||
{ | ||
if (!params[term]) { | ||
break; | ||
} | ||
if (typeof params[term] === 'object') { | ||
attributes.push({ type: 'ATOM', value: 'NOT' }); | ||
walk(params[term]); | ||
} | ||
} | ||
break; | ||
case 'OR': | ||
@@ -195,0 +208,0 @@ { |
@@ -852,6 +852,5 @@ /* eslint no-control-regex:0 */ | ||
packMessageRange(list) { | ||
if (typeof uidList === 'string') | ||
if (!Array.isArray(list)) { | ||
list = [].concat(list || []); | ||
} | ||
if (!Array.isArray(list)) { | ||
list = [].concat(list || []); | ||
} | ||
@@ -858,0 +857,0 @@ if (!list.length) { |
@@ -907,2 +907,3 @@ /// <reference types="node" /> | ||
* @property [header] - Matches messages with header key set if value is `true` (**NB!** not supported by all servers) or messages where header partially matches a string value | ||
* @property [not] - A {@link SearchObject} object. It must not match. | ||
* @property [or] - An array of 2 or more {@link SearchObject} objects. At least on of these must match | ||
@@ -944,2 +945,3 @@ */ | ||
}; | ||
not?: SearchObject; | ||
or?: SearchObject[]; | ||
@@ -946,0 +948,0 @@ }; |
{ | ||
"name": "imapflow", | ||
"version": "1.0.184", | ||
"version": "1.0.185", | ||
"description": "IMAP Client for Node", | ||
@@ -5,0 +5,0 @@ "main": "./lib/imap-flow.js", |
Sorry, the diff of this file is too big to display
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
659808
0.16%14848
0.09%