Comparing version 1.0.8 to 1.0.9
{ | ||
"name": "emailjs", | ||
"description": "send text/html emails and attachments (files, streams and strings) from node.js to any smtp server", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"author": "eleith", | ||
@@ -19,3 +19,3 @@ "contributors": [ | ||
"mimelib": "0.2.14", | ||
"moment": "= 2.11.2", | ||
"moment": "=2.11.2", | ||
"starttls": "1.0.1" | ||
@@ -27,7 +27,7 @@ }, | ||
"devDependencies": { | ||
"mocha": "= 1.7.4", | ||
"chai": "= 1.1.0", | ||
"mocha": "=1.7.4", | ||
"chai": "=1.1.0", | ||
"simplesmtp": "0.3.32", | ||
"mailparser": "0.4.1", | ||
"iconv": "2.1.6" | ||
"iconv": "2.2.1" | ||
}, | ||
@@ -34,0 +34,0 @@ "engine": [ |
@@ -1,4 +0,3 @@ | ||
module.exports = function(message, code, error, smtp) | ||
{ | ||
var err = new Error(message); | ||
module.exports = function(message, code, error, smtp) { | ||
var err = new Error((error && error.message) ? message + ' (' + error.message + ')' : message); | ||
err.code = code; | ||
@@ -5,0 +4,0 @@ if(error) |
@@ -481,5 +481,12 @@ /* | ||
var preferred = self.authentication; | ||
var auth = ""; | ||
if (self.features && self.features.auth) { | ||
if (typeof(self.features.auth) === 'string') { | ||
auth = self.features.auth; | ||
} | ||
} | ||
for (var i = 0; i < preferred.length; i++) { | ||
if ((self.features.auth || "").indexOf(preferred[i]) != -1) { | ||
if (auth.indexOf(preferred[i]) != -1) { | ||
method = preferred[i]; | ||
@@ -486,0 +493,0 @@ break; |
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
52603
1283
Updatedmoment@=2.11.2