Comparing version 1.0.162 to 1.0.163
# Changelog | ||
## [1.0.163](https://github.com/postalsys/imapflow/compare/v1.0.162...v1.0.163) (2024-07-06) | ||
### Bug Fixes | ||
* **parser:** parse subfolders with square brackets ([0d0e8a6](https://github.com/postalsys/imapflow/commit/0d0e8a6ea379adf11594684d49a1ce5031339939)) | ||
* **socket:** Use destroy() instead of destroySoon() ([830c2d1](https://github.com/postalsys/imapflow/commit/830c2d18f3d27eb12dc6babe4edd37fed5f65490)) | ||
## [1.0.162](https://github.com/postalsys/imapflow/compare/v1.0.161...v1.0.162) (2024-05-07) | ||
@@ -4,0 +12,0 @@ |
@@ -358,6 +358,12 @@ /* eslint new-cap: 0 */ | ||
if (['BODY', 'BODY.PEEK', 'BINARY', 'BINARY.PEEK'].indexOf(this.currentNode.value.toUpperCase()) < 0) { | ||
let error = new Error(`Unexpected section start char [ at position ${this.pos + i} [E14]`); | ||
error.code = 'ParserError14'; | ||
error.parserContext = { input: this.str, pos: this.pos + i, chr }; | ||
throw error; | ||
if (/[./]/.test(this.currentNode.value)) { | ||
// could be a path | ||
this.currentNode.value += chr; | ||
break; | ||
} else { | ||
let error = new Error(`Unexpected section start char [ at position ${this.pos + i} [E14]`); | ||
error.code = 'ParserError14'; | ||
error.parserContext = { input: this.str, pos: this.pos + i, chr }; | ||
throw error; | ||
} | ||
} | ||
@@ -364,0 +370,0 @@ this.currentNode.endPos = this.pos + i; |
{ | ||
"name": "imapflow", | ||
"version": "1.0.162", | ||
"version": "1.0.163", | ||
"description": "IMAP Client for Node", | ||
@@ -31,7 +31,7 @@ "main": "./lib/imap-flow.js", | ||
"devDependencies": { | ||
"@babel/eslint-parser": "7.24.5", | ||
"@babel/eslint-plugin": "7.24.5", | ||
"@babel/eslint-parser": "7.24.7", | ||
"@babel/eslint-plugin": "7.24.7", | ||
"@babel/plugin-syntax-class-properties": "7.12.13", | ||
"@babel/preset-env": "7.24.5", | ||
"@types/node": "20.12.8", | ||
"@babel/preset-env": "7.24.7", | ||
"@types/node": "20.14.10", | ||
"eslint": "8.57.0", | ||
@@ -50,3 +50,3 @@ "eslint-config-nodemailer": "1.2.0", | ||
"dependencies": { | ||
"encoding-japanese": "2.1.0", | ||
"encoding-japanese": "2.2.0", | ||
"iconv-lite": "0.6.3", | ||
@@ -57,6 +57,6 @@ "libbase64": "1.3.0", | ||
"mailsplit": "5.4.0", | ||
"nodemailer": "6.9.13", | ||
"pino": "9.0.0", | ||
"nodemailer": "6.9.14", | ||
"pino": "9.2.0", | ||
"socks": "2.8.3" | ||
} | ||
} |
@@ -995,1 +995,11 @@ /*eslint no-unused-expressions: 0, prefer-arrow-callback: 0 */ | ||
}); | ||
module.exports['IMAP Parser, subfolder square bracket'] = test => | ||
asyncWrapper(test, async test => { | ||
let parsed = await parser('* LIST (\\UnMarked) "." INBOX.[Airmail].Snooze'); | ||
test.deepEqual(parsed.attributes, [ | ||
[{ type: 'ATOM', value: '\\UnMarked' }], | ||
{ type: 'STRING', value: '.' }, | ||
{ type: 'ATOM', value: 'INBOX.[Airmail].Snooze' } | ||
]); | ||
}); |
Sorry, the diff of this file is too big to display
587702
12800
+ Addedencoding-japanese@2.2.0(transitive)
+ Addednodemailer@6.9.14(transitive)
+ Addedpino@9.2.0(transitive)
+ Addedpino-std-serializers@7.0.0(transitive)
+ Addedsonic-boom@4.2.0(transitive)
+ Addedthread-stream@3.1.0(transitive)
- Removednodemailer@6.9.13(transitive)
- Removedpino@9.0.0(transitive)
- Removedpino-std-serializers@6.2.2(transitive)
- Removedsonic-boom@3.8.1(transitive)
- Removedthread-stream@2.7.0(transitive)
Updatedencoding-japanese@2.2.0
Updatednodemailer@6.9.14
Updatedpino@9.2.0