Comparing version 0.3.15 to 0.3.16
{ | ||
"name": "emailjs", | ||
"description": "send text/html emails and attachments (files, streams and strings) from node.js to any smtp server", | ||
"version": "0.3.15", | ||
"version": "0.3.16", | ||
"author": "eleith", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -119,2 +119,3 @@ # emailjs [![Build Status](https://secure.travis-ci.org/eleith/emailjs.png)](http://travis-ci.org/eleith/emailjs) | ||
domain // domain to greet smtp with (defaults to os.hostname) | ||
authentication // array of preferred authentication methods (ex: email.authentication.PLAIN, email.authentication.XOAUTH2) | ||
} | ||
@@ -121,0 +122,0 @@ |
@@ -76,2 +76,3 @@ /* | ||
this.monitor = null; | ||
this.authentication = options.authentication || [AUTH_METHODS.CRAM_MD5, AUTH_METHODS.LOGIN, AUTH_METHODS.PLAIN, AUTH_METHODS.XOAUTH2]; | ||
@@ -453,3 +454,3 @@ // keep these strings hidden when quicky debugging/logging | ||
if (!method) { | ||
var preferred = [AUTH_METHODS.CRAM_MD5, AUTH_METHODS.LOGIN, AUTH_METHODS.PLAIN, AUTH_METHODS.XOAUTH2]; | ||
var preferred = self.authentication; | ||
@@ -556,1 +557,2 @@ for (var i = 0; i < preferred.length; i++) { | ||
exports.state = SMTPState; | ||
exports.authentication = AUTH_METHODS; |
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
50162
1250
187