Socket
Socket
Sign inDemoInstall

nodemailer

Package Overview
Dependencies
Maintainers
1
Versions
271
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodemailer - npm Package Compare versions

Comparing version 6.6.1 to 6.6.2

21

lib/smtp-connection/index.js

@@ -876,12 +876,17 @@ 'use strict';

this.upgrading = true;
this._socket = tls.connect(opts, () => {
this.secure = true;
this.upgrading = false;
this._socket.on('data', this._onSocketData);
// tls.connect is not an asynchronous function however it may still throw errors and requires to be wrapped with try/catch
try {
this._socket = tls.connect(opts, () => {
this.secure = true;
this.upgrading = false;
this._socket.on('data', this._onSocketData);
socketPlain.removeListener('close', this._onSocketClose);
socketPlain.removeListener('end', this._onSocketEnd);
socketPlain.removeListener('close', this._onSocketClose);
socketPlain.removeListener('end', this._onSocketEnd);
return callback(null, true);
});
return callback(null, true);
});
} catch (err) {
return callback(err);
}

@@ -888,0 +893,0 @@ this._socket.on('error', this._onSocketError);

{
"name": "nodemailer",
"version": "6.6.1",
"version": "6.6.2",
"description": "Easy as cake e-mail sending from your Node.js applications",

@@ -27,4 +27,4 @@ "main": "lib/nodemailer.js",

"eslint-config-prettier": "8.3.0",
"grunt": "1.4.0",
"grunt-cli": "1.4.2",
"grunt": "1.4.1",
"grunt-cli": "1.4.3",
"grunt-eslint": "23.0.0",

@@ -35,8 +35,8 @@ "grunt-mocha-test": "0.13.3",

"libqp": "1.1.0",
"mocha": "8.4.0",
"mocha": "9.0.0",
"nodemailer-ntlm-auth": "1.0.1",
"proxy": "1.0.2",
"proxy-test-server": "1.0.0",
"sinon": "10.0.0",
"smtp-server": "3.8.0"
"sinon": "11.1.1",
"smtp-server": "3.9.0"
},

@@ -43,0 +43,0 @@ "engines": {

@@ -5,4 +5,2 @@ # Nodemailer

> Sponsored by [Forward Email](https://forwardemail.net/?ref=nodemailer) – free email forwarding + custom domains + 100% open-source!
Send e-mails from Node.js – easy as cake! 🍰✉️

@@ -34,4 +32,4 @@

* If you are running the code in your own machine, then check your antivirus settings. Antiviruses often mess around with email ports usage. Node.js might not recognize the MITM cert your antivirus is using.
* Latest Node versions allow only TLS versions 1.2 and higher, some servers might still use TLS 1.1 or lower. Check Node.js docs how to get correct TLS support for your app.
- If you are running the code in your own machine, then check your antivirus settings. Antiviruses often mess around with email ports usage. Node.js might not recognize the MITM cert your antivirus is using.
- Latest Node versions allow only TLS versions 1.2 and higher, some servers might still use TLS 1.1 or lower. Check Node.js docs how to get correct TLS support for your app.

@@ -38,0 +36,0 @@ #### I have a different problem

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