Comparing version 1.0.0 to 1.0.1
const needle = require('needle'); | ||
exports.topPosts = (sub,cb) => { | ||
if (!sub) { | ||
var sub = "all"; | ||
} | ||
var opt = { headers: { | ||
@@ -24,2 +27,6 @@ "Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8", | ||
exports.getPost = (post,cb) => { | ||
if (!post) { | ||
console.error("post param required"); | ||
return false; | ||
} | ||
var opt = { headers: { | ||
@@ -26,0 +33,0 @@ "Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8", |
{ | ||
"name": "redddit", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "reddit api without any authentication!", | ||
@@ -25,3 +25,4 @@ "main": "index.js", | ||
"needle": "^2.5.0" | ||
} | ||
}, | ||
"devDependencies": {} | ||
} |
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
2393
60