Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sebastianfoth/email-address-existence

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sebastianfoth/email-address-existence - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

27

dist/services/email-address-existence.service.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc