Comparing version 1.0.109 to 1.0.110
# CHANGELOG | ||
- 1.0.110 - 2022-10-10 | ||
- Allow unicode atoms by default | ||
- 1.0.109 - 2022-09-29 | ||
@@ -4,0 +8,0 @@ |
@@ -274,3 +274,4 @@ /* eslint new-cap: 0 */ | ||
// Allow % to support LIST '' % | ||
if (imapFormalSyntax['ATOM-CHAR']().indexOf(chr) < 0 && chr !== '\\' && chr !== '%') { | ||
// Allow 8bit characters (presumably unicode) | ||
if (imapFormalSyntax['ATOM-CHAR']().indexOf(chr) < 0 && chr !== '\\' && chr !== '%' && chr.charCodeAt(0) < 0x80) { | ||
throw new Error(`Unexpected char at position ${this.pos + i} [E10: ${JSON.stringify(chr)}]`); | ||
@@ -340,2 +341,3 @@ } | ||
imapFormalSyntax['ATOM-CHAR']().indexOf(chr) < 0 && | ||
chr.charCodeAt(0) < 0x80 && // allow 8bit (presumably unicode) bytes | ||
chr !== ']' && | ||
@@ -342,0 +344,0 @@ !(chr === '*' && this.currentNode.value === '\\') && |
@@ -944,2 +944,3 @@ /// <reference types="node" /> | ||
* @property meta - content metadata | ||
* @property meta.expectedSize - The fetch response size | ||
* @property meta.contentType - Content-Type of the streamed file. If part was not set then this value is "message/rfc822" | ||
@@ -953,2 +954,3 @@ * @property [meta.charset] - Charset of the body part. Text parts are automaticaly converted to UTF-8, attachments are kept as is | ||
meta: { | ||
expectedSize: number; | ||
contentType: string; | ||
@@ -955,0 +957,0 @@ charset?: string; |
{ | ||
"name": "imapflow", | ||
"version": "1.0.109", | ||
"version": "1.0.110", | ||
"description": "IMAP Client for Node", | ||
@@ -34,5 +34,5 @@ "main": "./lib/imap-flow.js", | ||
"@babel/preset-env": "7.19.3", | ||
"@types/node": "18.7.23", | ||
"@types/node": "18.8.3", | ||
"braintree-jsdoc-template": "3.3.0", | ||
"eslint": "8.24.0", | ||
"eslint": "8.25.0", | ||
"eslint-config-nodemailer": "1.2.0", | ||
@@ -57,4 +57,4 @@ "eslint-config-prettier": "8.5.0", | ||
"pino": "8.6.1", | ||
"socks": "2.7.0" | ||
"socks": "2.7.1" | ||
} | ||
} |
@@ -944,1 +944,30 @@ /*eslint no-unused-expressions: 0, prefer-arrow-callback: 0 */ | ||
); | ||
module.exports['IMAP Parser, unicode status 1'] = test => | ||
asyncWrapper(test, async test => | ||
test.deepEqual((await parser('* STATUS Segregator/Społeczności (MESSAGES 0 UIDNEXT 1 UIDVALIDITY 1)')).attributes, [ | ||
{ type: 'ATOM', value: 'Segregator/Społeczności' }, | ||
[ | ||
{ type: 'ATOM', value: 'MESSAGES' }, | ||
{ type: 'ATOM', value: '0' }, | ||
{ type: 'ATOM', value: 'UIDNEXT' }, | ||
{ type: 'ATOM', value: '1' }, | ||
{ type: 'ATOM', value: 'UIDVALIDITY' }, | ||
{ type: 'ATOM', value: '1' } | ||
] | ||
]) | ||
); | ||
module.exports['IMAP Parser, unicode status 12'] = test => | ||
asyncWrapper(test, async test => | ||
test.deepEqual((await parser('* STATUS Šegregator/Społeczności (MESSAGES 0 UIDNEXT 1 UIDVALIDITY 1)')).attributes, [ | ||
{ type: 'ATOM', value: 'Šegregator/Społeczności' }, | ||
[ | ||
{ type: 'ATOM', value: 'MESSAGES' }, | ||
{ type: 'ATOM', value: '0' }, | ||
{ type: 'ATOM', value: 'UIDNEXT' }, | ||
{ type: 'ATOM', value: '1' }, | ||
{ type: 'ATOM', value: 'UIDVALIDITY' }, | ||
{ type: 'ATOM', value: '1' } | ||
] | ||
]) | ||
); |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
537917
12001
+ Addedsocks@2.7.1(transitive)
- Removedsocks@2.7.0(transitive)
Updatedsocks@2.7.1