nodemailer
Advanced tools
Comparing version 6.7.8 to 6.8.0
# 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 @@ |
@@ -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", |
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
486260
11621