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.6 to 1.3.7

4

CHANGELOG.md
# Changelog
## v1.3.7 2015-12-22
* Fixed an issue with Node v0.10 where too many events were cleared
## v1.3.6 2015-12-19

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

2

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

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

@@ -454,4 +454,9 @@ 'use strict';

SMTPConnection.prototype._upgradeConnection = function (callback) {
this._socket.removeAllListeners();
// do not remove all listeners or it breaks node v0.10 as there's
// apparently a 'finish' event set that would be cleared as well
// we can safely keep 'error', 'end', 'close' etc. events
this._socket.removeAllListeners('data'); // incoming data is going to be gibberish from this point onwards
this._socket.removeAllListeners('timeout'); // timeout will be re-set for the new socket object
var opts = {

@@ -458,0 +463,0 @@ socket: this._socket,

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