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 2.2.4 to 2.2.5

4

CHANGELOG.md
# Changelog
## v2.2.5 2016-02-11
* Fixed an issue with proxied sockets and TLS
## v2.2.4 2016-02-11

@@ -4,0 +8,0 @@

10

lib/smtp-connection.js

@@ -168,3 +168,3 @@ 'use strict';

if (this.options.secure && !this.options.secured) {
this._upgradeConnection(function (err) {
setImmediate(this._upgradeConnection.bind(this, function (err) {
if (err) {

@@ -175,3 +175,3 @@ this._onError(new Error('Error initiating TLS - ' + (err.message || err)), 'ETLS');

this._onConnect();
}.bind(this));
}.bind(this)));
} else {

@@ -376,2 +376,8 @@ setImmediate(this._onConnect.bind(this));

// clear existing listeners for the socket
this._socket.removeAllListeners('data');
this._socket.removeAllListeners('timeout');
this._socket.removeAllListeners('close');
this._socket.removeAllListeners('end');
this._socket.on('data', this._onData.bind(this));

@@ -378,0 +384,0 @@ this._socket.once('close', this._onClose.bind(this));

{
"name": "smtp-connection",
"version": "2.2.4",
"version": "2.2.5",
"description": "Connect to SMTP servers",

@@ -28,3 +28,3 @@ "main": "lib/smtp-connection.js",

"grunt": "^0.4.5",
"grunt-eslint": "^17.3.1",
"grunt-eslint": "^18.0.0",
"grunt-mocha-test": "^0.12.7",

@@ -31,0 +31,0 @@ "mocha": "^2.4.5",

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