@devmehq/email-validator-js
Advanced tools
Comparing version
export declare function isDisposableEmail(address: string): boolean; | ||
export declare function isFreeEmail(address: string): boolean; | ||
interface IVerifyEmailResult { | ||
validEmailFormat: boolean; | ||
validFormat: boolean; | ||
validMx: boolean | null; | ||
@@ -6,0 +6,0 @@ validSmtp: boolean | null; |
@@ -40,3 +40,3 @@ "use strict"; | ||
const { emailAddress, timeout = 4000, verifyMx = true, verifySmtp = false, debug = false } = params; | ||
const result = { validEmailFormat: false, validMx: null, validSmtp: null }; | ||
const result = { validFormat: false, validMx: null, validSmtp: null }; | ||
const log = debug ? logMethod : (...args) => { }; | ||
@@ -55,3 +55,3 @@ let local; | ||
} | ||
result.validEmailFormat = true; | ||
result.validFormat = true; | ||
// save a DNS call | ||
@@ -58,0 +58,0 @@ if (!verifyMx && !verifySmtp) |
{ | ||
"name": "@devmehq/email-validator-js", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Advanced Email Validation with DNS MX lookup and Mailbox Verification", |
2966887
0