🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@devmehq/email-validator-js

Package Overview
Dependencies
Maintainers
1
Versions
258
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devmehq/email-validator-js - npm Package Compare versions

Comparing version

to
1.0.10

2

index.d.ts
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",