Socket
Socket
Sign inDemoInstall

smtp-connection

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smtp-connection - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

2

package.json
{
"name": "smtp-connection",
"version": "1.3.2",
"version": "1.3.3",
"description": "Connect to SMTP servers",

@@ -5,0 +5,0 @@ "main": "src/smtp-connection.js",

@@ -77,8 +77,2 @@ 'use strict';

/**
* Ignore incoming data on TLS negotiation
* @private
*/
this._ignoreData = false;
/**
* Store incomplete messages coming from the server

@@ -337,3 +331,3 @@ * @private

SMTPConnection.prototype._onData = function(chunk) {
if (this._ignoreData || this._destroyed || !chunk || !chunk.length) {
if (this._destroyed || !chunk || !chunk.length) {
return;

@@ -459,5 +453,3 @@ }

SMTPConnection.prototype._upgradeConnection = function(callback) {
this._ignoreData = true;
this._socket.removeAllListeners('data');
this._socket.removeAllListeners('error');
this._socket.removeAllListeners();

@@ -474,3 +466,2 @@ var opts = {

this._socket = tls.connect(opts, function() {
this._ignoreData = false;
this.secure = true;

@@ -477,0 +468,0 @@ this._socket.on('data', this._onData.bind(this));

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc