gmailnator
Advanced tools
Comparing version 1.1.4 to 1.1.5
38
index.js
@@ -104,11 +104,24 @@ const got = require("got"); | ||
var sub = $("tbody td")[0].children[0].data; | ||
var des = $("tbody td")[1].children[0].data; | ||
var tim = $("tbody td")[2].children[0].data; | ||
var data = { | ||
"subject": sub, | ||
"description": des, | ||
"lastSent": tim, | ||
"link": lin | ||
if ($("tbody td")[2].children[0].data !== undefined) { | ||
var des = $("tbody td")[1].children[0].data; | ||
var tim = $("tbody td")[2].children[0].data; | ||
var data = { | ||
"subject": sub, | ||
"description": des, | ||
"lastSent": tim, | ||
"link": lin | ||
} | ||
b.push(data); | ||
} else { | ||
var des = ""; | ||
var tim = $("tbody td")[1].children[0].data; | ||
var data = { | ||
"subject": sub, | ||
"description": des, | ||
"lastSent": tim, | ||
"link": lin | ||
} | ||
b.push(data) | ||
} | ||
b.push(data) | ||
} | ||
@@ -158,4 +171,9 @@ var body = JSON.parse(JSON.stringify({ | ||
}).then(function(response) { | ||
var body = response.body.split("<hr />")[1]; | ||
cb(null, body) | ||
if (response.body.split("<hr />")[1] !== undefined) { | ||
var body = response.body.split("<hr />")[1]; | ||
cb(null, body); | ||
} else { | ||
var body = ""; | ||
cb(null, body); | ||
} | ||
}).catch(function(e) { | ||
@@ -162,0 +180,0 @@ cb(e, null) |
{ | ||
"name": "gmailnator", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "access gmailnator.com programically", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
11979
256