Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

imapflow

Package Overview
Dependencies
Maintainers
1
Versions
167
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.2 to 1.0.3

lib/types.d.ts

6

CHANGELOG.md
# CHANGELOG
- v1.0.3 - 2020-01-28
- Fixed eternal loop when breaking IDLE after connection is closed
- v1.0.2 - 2020-01-24
- Allow using emailId and threadId as search parameters
- Allow using emailId and threadId as search parameters

@@ -7,0 +11,0 @@ - v1.0.1 - 2020-01-14

15

lib/commands/idle.js
'use strict';
const NOOP_INTERVAL = 30 * 1000;
const NOOP_INTERVAL = 2 * 60 * 1000;

@@ -20,2 +20,3 @@ // Listes for changes in mailbox

connection.preCheck = async () => {
connection.preCheck = false; // unset itself
connection.write('DONE');

@@ -27,10 +28,14 @@ connection.log.info({ src: 'c', msg: `breaking IDLE` });

// unset before response.next()
connection.onPlusTag = false;
connection.preCheck = false;
response.next();
return;
} catch (err) {
connection.onPlusTag = false;
connection.preCheck = false;
connection.log.error(err);
return false;
} finally {
connection.onPlusTag = false;
connection.preCheck = false;
}

@@ -44,4 +49,4 @@ }

connection.preCheck = async () => {
connection.preCheck = false; // unset itself
clearTimeout(idleTimer);
connection.preCheck = false;
connection.log.info({ src: 'c', msg: `breaking NOOP loop` });

@@ -48,0 +53,0 @@ resolve();

{
"name": "imapflow",
"version": "1.0.2",
"version": "1.0.3",
"description": "IMAP Client for Node",

@@ -31,3 +31,3 @@ "main": "./lib/imap-flow.js",

"eslint-config-nodemailer": "1.2.0",
"eslint-config-prettier": "6.9.0",
"eslint-config-prettier": "6.10.0",
"grunt": "1.0.4",

@@ -34,0 +34,0 @@ "grunt-cli": "1.3.2",

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