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.7 to 1.0.8

5

CHANGELOG.md
# CHANGELOG
- v1.0.8 - 2020-02-02
- Documented missing option changedSince for fetch
- Emit changes also on STATUS
- v1.0.7 - 2020-01-31

@@ -4,0 +9,0 @@

@@ -51,2 +51,5 @@ 'use strict';

STATUS: async untagged => {
// If STATUS is for current mailbox then update mailbox values
let updateCurrent = connection.state === connection.states.SELECTED && path === connection.mailbox.path;
let list = untagged.attributes && Array.isArray(untagged.attributes[1]) ? untagged.attributes[1] : false;

@@ -70,2 +73,14 @@ if (!list) {

value = !isNaN(entry.value) ? Number(entry.value) : false;
if (updateCurrent) {
let prevCount = connection.mailbox.exists;
if (prevCount !== value) {
// somehow message count in current folder has changed?
connection.mailbox.exists = value;
connection.emit('exists', {
path,
count: value,
prevCount
});
}
}
break;

@@ -81,2 +96,5 @@

value = !isNaN(entry.value) ? Number(entry.value) : false;
if (updateCurrent) {
connection.mailbox.uidNext = value;
}
break;

@@ -97,2 +115,5 @@

value = !isNaN(entry.value) ? BigInt(entry.value) : false;
if (updateCurrent) {
connection.mailbox.highestModseq = value;
}
break;

@@ -99,0 +120,0 @@ }

6

lib/types.d.ts

@@ -405,2 +405,3 @@ /// <reference types="node" />

* @param {Boolean} [options.uid] If `true` then uses UID numbers instead of sequence numbers for range
* @param {BigInt} [options.changedSince] If set then only messages with a higher modseq value are returned. Ignored if server does not support `CONDSTORE` extension.
* @yields {FetchMessageObject} Message data object

@@ -417,2 +418,3 @@ *

uid?: boolean;
changedSince?: bigint;
}): void;

@@ -422,3 +424,3 @@ /**

*
* @param {SequenceString} range UID or sequence number for the message to fetch
* @param {SequenceString} seq Single UID or sequence number of the message to fetch for
* @param {FetchQueryObject} query Fetch query

@@ -435,3 +437,3 @@ * @param {Object} [options]

*/
fetchOne(range: SequenceString, query: FetchQueryObject, options?: {
fetchOne(seq: SequenceString, query: FetchQueryObject, options?: {
uid?: boolean;

@@ -438,0 +440,0 @@ }): FetchMessageObject;

{
"name": "imapflow",
"version": "1.0.7",
"version": "1.0.8",
"description": "IMAP Client for Node",

@@ -5,0 +5,0 @@ "main": "./lib/imap-flow.js",

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