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

email-existence

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

email-existence - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

18

index.js

@@ -50,11 +50,11 @@ var dns = require('dns'),

});
conn.on('data', function(data) {
if(data.indexOf("220") != -1 || data.indexOf("250") != -1) {
conn.emit('prompt');
} else if(data.indexOf("550") != -1) {
conn.emit('false');
} else {
conn.emit('undetermined');
}
});
conn.on('data', function(data) {
if(data.indexOf("220") == 0 || data.indexOf("250") == 0 || data.indexOf("\n220") != -1 || data.indexOf("\n250") != -1) {
conn.emit('prompt');
} else if(data.indexOf("\n550") != -1 || data.indexOf("550") == 0) {
conn.emit('false');
} else {
conn.emit('undetermined');
}
});
});

@@ -61,0 +61,0 @@ });

@@ -11,3 +11,3 @@ {

],
"version": "0.1.3",
"version": "0.1.4",
"repository": {

@@ -14,0 +14,0 @@ "type": "git",

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