gmailnator
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -63,3 +63,2 @@ const needle = require('needle'); | ||
var s = url.parse(str, true); | ||
console.log(s); | ||
var email = s.pathname.split("/")[1]; | ||
@@ -66,0 +65,0 @@ var id = s.hash.substring(1, s.hash.length); |
{ | ||
"name": "gmailnator", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "access gmailnator.com programically", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -6,7 +6,7 @@ const gmailnator = require("../../index.js"); | ||
gmailnator.checkEmails(body, function(err,body) { | ||
if (body == "[]") { | ||
console.log("no mail"); | ||
} else if (body && !err) { | ||
if (body[0]) { | ||
console.log("you've got mail"); | ||
console.log(body); | ||
} else if (!body[0] && !err) { | ||
console.log("no mail") | ||
} else { | ||
@@ -13,0 +13,0 @@ console.log("err"); |
4109
93