Comparing version 0.3.3 to 0.3.4
{ | ||
"name": "emailjs", | ||
"description": "send text/html emails and attachments (files, streams and strings) from node.js to any smtp server", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"author": "eleith", | ||
@@ -14,3 +14,3 @@ "contributors":["izuzak", "Hiverness", "mscdex", "jimmybergman"], | ||
{ | ||
"moment" : ">= 1.7.0" | ||
"moment" : "= 1.7.0" | ||
}, | ||
@@ -23,5 +23,5 @@ "optionalDependencies": | ||
{ | ||
"mocha": ">= 1.2.2", | ||
"chai": ">= 1.1.0", | ||
"simplesmtp": ">= 0.1.18", | ||
"mocha": "= 1.7.4", | ||
"chai": "= 1.1.0", | ||
"simplesmtp": "= 0.1.18", | ||
"mailparser": "0.2.27", | ||
@@ -28,0 +28,0 @@ "iconv": "1.1.3" |
@@ -75,3 +75,6 @@ var smtp = require('./smtp'); | ||
if(!(msg instanceof message.Message) && msg.from && msg.to && msg.text) | ||
if(!(msg instanceof message.Message) | ||
&& msg.from | ||
&& (msg.to || msg.cc || msg.bcc) | ||
&& msg.text) | ||
msg = message.create(msg); | ||
@@ -78,0 +81,0 @@ |
@@ -128,3 +128,3 @@ var stream = require('stream'); | ||
} | ||
if(!self.header.to) | ||
if(!(self.header.to || self.header.cc || self.header.bcc)) | ||
{ | ||
@@ -131,0 +131,0 @@ callback(false, "message does not have a valid recipient"); |
56205
11
1622
- Removedmoment@2.30.1(transitive)
Updatedmoment@= 1.7.0