Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nodemailer

Package Overview
Dependencies
Maintainers
1
Versions
272
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.7.8 to 6.8.0

5

CHANGELOG.md
# CHANGELOG
## 6.8.0 2022-09-28
- Add DNS timeout (huksley)
- add dns.REFUSED (lucagianfelici)
## 6.7.8 2022-08-11

@@ -4,0 +9,0 @@

4

lib/shared/index.js

@@ -51,3 +51,4 @@ /* eslint no-console: 0 */

dns['resolve' + family](hostname, (err, addresses) => {
const resolver = dns.Resolver ? new dns.Resolver(options) : dns;
resolver['resolve' + family](hostname, (err, addresses) => {
if (err) {

@@ -60,2 +61,3 @@ switch (err.code) {

case dns.CONNREFUSED:
case dns.REFUSED:
case 'EAI_AGAIN':

@@ -62,0 +64,0 @@ return callback(null, []);

@@ -17,2 +17,3 @@ 'use strict';

const GREETING_TIMEOUT = 30 * 1000; // how much to wait after connection is established but SMTP greeting is not receieved
const DNS_TIMEOUT = 30 * 1000; // how much to wait for resolveHostname

@@ -34,2 +35,3 @@ /**

* * **socketTimeout** - Time of inactivity until the connection is closed (defaults to 1 hour)
* * **dnsTimeout** - Time to wait in ms for the DNS requests to be resolved (defaults to 30 seconds)
* * **lmtp** - if true, uses LMTP instead of SMTP protocol

@@ -225,3 +227,4 @@ * * **logger** - bunyan compatible logger interface

host: this.host,
allowInternalNetworkInterfaces: this.allowInternalNetworkInterfaces
allowInternalNetworkInterfaces: this.allowInternalNetworkInterfaces,
timeout: this.options.dnsTimeout || DNS_TIMEOUT
};

@@ -228,0 +231,0 @@

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

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

"devDependencies": {
"@aws-sdk/client-ses": "3.145.0",
"aws-sdk": "2.1193.0",
"@aws-sdk/client-ses": "3.180.0",
"aws-sdk": "2.1225.0",
"bunyan": "1.8.15",

@@ -27,0 +27,0 @@ "chai": "4.3.6",

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