@sebastianfoth/email-address-existence
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -77,16 +77,19 @@ "use strict"; | ||
if (options.debug) { | ||
console.log(response); | ||
console.log('Line', response); | ||
} | ||
/* */ | ||
if (response.startsWith('550')) { | ||
return resolve(enums_1.EmailValidationStatus.NOT_FOUND); | ||
const lines = response.split(EOL); | ||
for (const line of lines) { | ||
/* */ | ||
if (line.trim().startsWith('550')) { | ||
return resolve(enums_1.EmailValidationStatus.NOT_FOUND); | ||
} | ||
/* */ | ||
if (line.trim().startsWith('553')) { | ||
return resolve(enums_1.EmailValidationStatus.INVALID_SYNTAX); | ||
} | ||
/* */ | ||
if (line.trim().startsWith('554')) { | ||
return resolve(enums_1.EmailValidationStatus.BLOCKED_BY_PROVIDER); | ||
} | ||
} | ||
/* */ | ||
if (response.startsWith('553')) { | ||
return resolve(enums_1.EmailValidationStatus.INVALID_SYNTAX); | ||
} | ||
/* */ | ||
if (response.startsWith('554')) { | ||
return resolve(enums_1.EmailValidationStatus.BLOCKED_BY_PROVIDER); | ||
} | ||
}); | ||
@@ -93,0 +96,0 @@ /* */ |
{ | ||
"name": "@sebastianfoth/email-address-existence", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "A library written in Typescript which tries to check if an email address really exists", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/sebastianfoth/email-address-existence", |
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
12763
198