Comparing version 0.1.15 to 0.1.16
{ | ||
"name": "emailjs", | ||
"description": "send text/html emails and attachments from node.js to any smtp server", | ||
"version": "0.1.15", | ||
"version": "0.1.16", | ||
"author": "eleith", | ||
@@ -6,0 +6,0 @@ "contributors": ["izuzak"], |
@@ -1,2 +0,2 @@ | ||
#v0.1.15 | ||
#v0.1.16 | ||
@@ -3,0 +3,0 @@ ### emailjs |
@@ -12,5 +12,6 @@ var smtp = require('./smtp'); | ||
this.queue = []; | ||
this.timer = null; | ||
this.queue = []; | ||
this.timer = null; | ||
this.sending = false; | ||
this.ready = false; | ||
}; | ||
@@ -31,3 +32,3 @@ | ||
else if(self.smtp.state() == smtp.state.CONNECTED && !self.sending) | ||
else if(self.smtp.state() == smtp.state.CONNECTED && !self.sending && self.ready) | ||
self._sendmail(self.queue.shift()); | ||
@@ -51,4 +52,6 @@ } | ||
if(!err) | ||
{ | ||
self.ready = true; | ||
self._poll(); | ||
} | ||
else | ||
@@ -68,2 +71,3 @@ stack.callback(err, stack.message); | ||
self.ready = false; | ||
self.smtp.connect(connect); | ||
@@ -70,0 +74,0 @@ }, |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
48201
1412
0
4