New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

imapflow

Package Overview
Dependencies
Maintainers
1
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imapflow - npm Package Compare versions

Comparing version 1.0.95 to 1.0.96

4

CHANGELOG.md
# 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 === '\\*') {

12

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc