emailjs-imap-client
Advanced tools
Comparing version 3.0.5 to 3.0.6
{ | ||
"name": "emailjs-imap-client", | ||
"version": "3.0.5", | ||
"version": "3.0.6", | ||
"homepage": "https://github.com/emailjs/emailjs-imap-client", | ||
@@ -29,3 +29,3 @@ "description": "JavaScript IMAP client", | ||
"emailjs-imap-handler": "^3.0.2", | ||
"emailjs-mime-codec": "^2.0.2", | ||
"emailjs-mime-codec": "^2.0.7", | ||
"emailjs-tcp-socket": "^2.0.0", | ||
@@ -32,0 +32,0 @@ "emailjs-utf7": "^4.0.1", |
@@ -149,2 +149,17 @@ /* eslint-disable no-unused-expressions */ | ||
}) | ||
it('should fail authentication', (done) => { | ||
imap = new ImapClient('127.0.0.1', port + 2, { | ||
logLevel, | ||
auth: { | ||
user: 'invalid', | ||
pass: 'invalid' | ||
}, | ||
useSecureTransport: false | ||
}) | ||
imap.connect().then(() => { | ||
expect(imap.client.secureMode).to.be.false | ||
}).catch(() => { done() }) | ||
}) | ||
}) | ||
@@ -151,0 +166,0 @@ |
@@ -644,3 +644,3 @@ import { map, pipe, union, zip, fromPairs, propOr, pathOr, flatten } from 'ramda' | ||
this.logger.debug('Logging in...') | ||
const response = this.exec(command, 'capability', options) | ||
const response = await this.exec(command, 'capability', options) | ||
/* | ||
@@ -930,3 +930,3 @@ * update post-auth capabilites | ||
createLogger (creator = createDefaultLogger) { | ||
const logger = creator(this._auth.user || '', this._host) | ||
const logger = creator((this._auth || {}).user || '', this._host) | ||
this.logger = this.client.logger = { | ||
@@ -933,0 +933,0 @@ debug: (...msgs) => { if (LOG_LEVEL_DEBUG >= this.logLevel) { logger.debug(msgs) } }, |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
705782
11071
Updatedemailjs-mime-codec@^2.0.7