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

imapflow

Package Overview
Dependencies
Maintainers
0
Versions
171
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.162 to 1.0.163

8

CHANGELOG.md
# 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 @@

14

lib/handler/token-parser.js

@@ -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

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