imapflow 1.0.167 → 1.0.168

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,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.168](https://github.com/postalsys/imapflow/compare/v1.0.167...v1.0.168) (2024-11-07)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **imap:** Fixed issue with a single + response ([51be3a9](https://github.com/postalsys/imapflow/commit/51be3a98205cc900eba6d3cf1962bc42a8de942d))
9
+
3
10
  ## [1.0.167](https://github.com/postalsys/imapflow/compare/v1.0.166...v1.0.167) (2024-11-07)
4
11
 
5
12
 
@@ -28,6 +28,7 @@ module.exports = async (command, options) => {
28
28
  response.tag = await parser.getTag();
29
29
 
30
30
  await parser.getSpace();
31
+
31
32
  response.command = await parser.getCommand();
32
33
 
33
34
  if (nullBytesRemoved) {
@@ -119,6 +119,11 @@ class ParserInstance {
119
119
 
120
120
  async getSpace() {
121
121
  if (!this.remainder.length) {
122
+ if (this.tag === '+' && this.pos === 1) {
123
+ // special case, empty + response
124
+ return;
125
+ }
126
+
122
127
  let error = new Error(`Unexpected end of input at position ${this.pos} [E4]`);
123
128
  error.code = 'ParserError4';
124
129
  error.parserContext = { input: this.input, pos: this.pos };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imapflow",
3
- "version": "1.0.167",
3
+ "version": "1.0.168",
4
4
  "description": "IMAP Client for Node",
5
5
  "main": "./lib/imap-flow.js",
6
6
  "scripts": {