smtp-connection
Advanced tools
Comparing version 1.0.0 to 1.0.1
# Changelog | ||
## v1.0.1 2014-10-15 | ||
* Added 'error' handler for CleartextStream.pair.encrypted object when connecting to TLS. | ||
## v1.0.0 2014-09-26 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "smtp-connection", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Connect to SMTP servers", | ||
@@ -26,10 +26,11 @@ "main": "src/smtp-connection.js", | ||
"devDependencies": { | ||
"chai": "~1.8.1", | ||
"grunt": "~0.4.1", | ||
"grunt-contrib-jshint": "~0.8.0", | ||
"grunt-mocha-test": "~0.10.0", | ||
"simplesmtp": "^0.3.32", | ||
"sinon": "^1.9.0", | ||
"xoauth2": "^0.1.8" | ||
"chai": "^1.9.2", | ||
"grunt": "^0.4.5", | ||
"grunt-contrib-jshint": "^0.10.0", | ||
"grunt-mocha-test": "^0.12.1", | ||
"mocha": "^1.21.5", | ||
"simplesmtp": "^0.3.33", | ||
"sinon": "^1.10.3", | ||
"xoauth2": "^1.0.0" | ||
} | ||
} |
@@ -156,2 +156,3 @@ 'use strict'; | ||
this._socket = tls.connect(this.options.port, this.options.host, opts, this._onConnect.bind(this)); | ||
this._socket.pair.encrypted.on('error', this._onError.bind(this)); | ||
} else { | ||
@@ -200,3 +201,5 @@ this._socket = net.connect(opts, this._onConnect.bind(this)); | ||
if (socket && !socket.destroyed) { | ||
this._socket[closeMethod](); | ||
try { | ||
this._socket[closeMethod](); | ||
} catch (E) {} | ||
} | ||
@@ -203,0 +206,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39161
938
8