Comparing version 1.0.17 to 1.0.18
@@ -18,3 +18,4 @@ 'use strict'; | ||
response.next(); | ||
return true; | ||
return username; | ||
} catch (err) { | ||
@@ -21,0 +22,0 @@ let errorCode = getStatusCode(err.response); |
@@ -27,2 +27,3 @@ /// <reference types="node" /> | ||
* @param {Object} [options.logger] Custom logger instance with `debug(obj)`, `info(obj)`, `warn(obj)` and `error(obj)` methods. If not provided then ImapFlow logs to console using pino format | ||
* @param {Boolean} [options.verifyOnly=false] If `true` then logs out automatically after successful authentication | ||
*/ | ||
@@ -50,2 +51,3 @@ class ImapFlow extends EventEmitter { | ||
logger?: any; | ||
verifyOnly?: boolean; | ||
}); | ||
@@ -72,2 +74,7 @@ /** | ||
/** | ||
* Currently authenticated user or `false` if mailbox is not open | ||
* @type {String|Boolean} | ||
*/ | ||
authenticated: string | boolean; | ||
/** | ||
* Currently selected mailbox or `false` if mailbox is not open | ||
@@ -74,0 +81,0 @@ * @type {MailboxObject|Boolean} |
{ | ||
"name": "imapflow", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"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
468460
10688