email-existence
Advanced tools
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", |
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
3350