Comparing version 1.0.95 to 1.0.96
# CHANGELOG | ||
- 1.0.96 - 2022-05-18 | ||
- Allow non-standard characters in ATOM if it's the string after NO/OK/BAD response | ||
- 1.0.95 - 2022-05-03 | ||
@@ -4,0 +8,0 @@ |
@@ -335,3 +335,8 @@ /* eslint new-cap: 0 */ | ||
// if the char is not ATOM compatible, throw. Allow \* as an exception | ||
if (imapFormalSyntax['ATOM-CHAR']().indexOf(chr) < 0 && chr !== ']' && !(chr === '*' && this.currentNode.value === '\\')) { | ||
if ( | ||
imapFormalSyntax['ATOM-CHAR']().indexOf(chr) < 0 && | ||
chr !== ']' && | ||
!(chr === '*' && this.currentNode.value === '\\') && | ||
(!this.parent || !this.parent.command || !['NO', 'BAD', 'OK'].includes(this.parent.command)) | ||
) { | ||
throw new Error('Unexpected char at position ' + (this.pos + i)); | ||
@@ -338,0 +343,0 @@ } else if (this.currentNode.value === '\\*') { |
{ | ||
"name": "imapflow", | ||
"version": "1.0.95", | ||
"version": "1.0.96", | ||
"description": "IMAP Client for Node", | ||
@@ -33,9 +33,9 @@ "main": "./lib/imap-flow.js", | ||
"@babel/plugin-syntax-class-properties": "7.12.13", | ||
"@babel/preset-env": "7.17.10", | ||
"@types/node": "17.0.31", | ||
"@babel/preset-env": "7.17.12", | ||
"@types/node": "17.0.34", | ||
"braintree-jsdoc-template": "3.3.0", | ||
"eslint": "8.14.0", | ||
"eslint": "8.15.0", | ||
"eslint-config-nodemailer": "1.2.0", | ||
"eslint-config-prettier": "8.5.0", | ||
"grunt": "1.5.2", | ||
"grunt": "1.5.3", | ||
"grunt-cli": "1.4.3", | ||
@@ -55,3 +55,3 @@ "grunt-contrib-nodeunit": "4.0.0", | ||
"mailsplit": "5.3.2", | ||
"nodemailer": "6.7.4", | ||
"nodemailer": "6.7.5", | ||
"pino": "7.11.0", | ||
@@ -58,0 +58,0 @@ "socks": "2.6.2" |
@@ -908,1 +908,17 @@ /*eslint no-unused-expressions: 0, prefer-arrow-callback: 0 */ | ||
module.exports['IMAP Parser: mimetorture'] = test => asyncWrapper(test, async test => test.deepEqual(await parser(mimetorture.input), mimetorture.output)); | ||
module.exports['IMAP Parser, unicode select'] = test => | ||
asyncWrapper(test, async test => | ||
test.deepEqual((await parser('F OK [READ-WRITE] [Gmail]/Visi laiškai selected. (Success) [THROTTLED]')).attributes, [ | ||
{ | ||
type: 'ATOM', | ||
value: '', | ||
section: [{ type: 'ATOM', value: 'READ-WRITE' }] | ||
}, | ||
{ type: 'ATOM', value: '[Gmail]/Visi' }, | ||
{ type: 'ATOM', value: 'laiškai' }, | ||
{ type: 'ATOM', value: 'selected.' }, | ||
[{ type: 'ATOM', value: 'Success' }], | ||
{ type: 'ATOM', value: '[THROTTLED]' } | ||
]) | ||
); |
Sorry, the diff of this file is too big to display
518025
11614
+ Addednodemailer@6.7.5(transitive)
- Removednodemailer@6.7.4(transitive)
Updatednodemailer@6.7.5