Socket
Socket
Sign inDemoInstall

simplesmtp

Package Overview
Dependencies
1
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.18 to 0.1.19

25

lib/client.js

@@ -97,2 +97,8 @@ // TODO:

/**
* Store incomplete messages coming from the server
* @private
*/
this._remainder = "";
/**
* If set to true, then this object is no longer active

@@ -209,11 +215,20 @@ * @private

SMTPClient.prototype._onData = function(chunk){
if(this._ignoreData){
var str;
if(this._ignoreData || !chunk || !chunk.length){
return;
}
var str = chunk.toString().trim();
// Wait until end of line
if(chunk[chunk.length-1] != 0x0A){
this._remainder += chunk.toString();
return;
}else{
str = (this._remainder + chunk.toString()).trim();
this._remainder = "";
}
if(this.options.debug){
console.log("SERVER"+(this.options.instanceId?" "+
this.options.instanceId:"")+":\n└──"+str.replace(/\n/g,"\n "));
this.options.instanceId:"")+":\n└──"+str.replace(/\r?\n/g,"\n "));
}

@@ -220,0 +235,0 @@

2

package.json
{
"name": "simplesmtp",
"description": "Simple SMTP server module to create custom SMTP servers",
"version": "0.1.18",
"version": "0.1.19",
"author" : "Andris Reinman",

@@ -6,0 +6,0 @@ "maintainers":[

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc