mx-connect
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -47,3 +47,3 @@ 'use strict'; | ||
// filter out hosts | ||
mxHosts = mxHosts.filter(mx => !delivery.ignoreMXHosts.includes(mx.host)); | ||
mxHosts = mxHosts.filter(mx => !delivery.ignoreMXHosts || !delivery.ignoreMXHosts.includes(mx.host)); | ||
@@ -50,0 +50,0 @@ if (!mxHosts.length) { |
@@ -69,3 +69,3 @@ 'use strict'; | ||
err.message = 'DNS error when resolving MX server for ' + domain + ': ' + (dnsErrors[err.code] || err.message); | ||
err.response = '550 ' + err.message; | ||
err.response = '450 ' + err.message; | ||
err.category = 'dns'; | ||
@@ -80,3 +80,3 @@ return reject(err); | ||
err.message = 'DNS error when resolving MX server for ' + domain + ': ' + (dnsErrors[err.code] || err.message); | ||
err.response = '550 ' + err.message; | ||
err.response = '450 ' + err.message; | ||
err.category = 'dns'; | ||
@@ -83,0 +83,0 @@ return reject(err); |
{ | ||
"name": "mx-connect", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Establish TCP connection to a MX server", | ||
@@ -26,4 +26,5 @@ "main": "lib/mx-connect.js", | ||
"eslint-config-nodemailer": "^1.2.0", | ||
"eslint-config-prettier": "^3.0.1", | ||
"grunt": "^1.0.3", | ||
"grunt-cli": "^1.3.0", | ||
"grunt-cli": "^1.3.1", | ||
"grunt-contrib-nodeunit": "^2.0.0", | ||
@@ -33,4 +34,4 @@ "grunt-eslint": "^21.0.0" | ||
"dependencies": { | ||
"ipaddr.js": "^1.8.1" | ||
"ipaddr.js": "1.8.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
54441
21
936
6
+ Addedipaddr.js@1.8.1(transitive)
- Removedipaddr.js@1.9.1(transitive)
Updatedipaddr.js@1.8.1