cheerio-req
Advanced tools
Comparing version 1.0.0 to 1.0.1
"use strict"; | ||
const Tinyreq = require("tinyreq") | ||
, Cheerio = require("cheerio") | ||
; | ||
var Tinyreq = require("tinyreq"), | ||
Cheerio = require("cheerio"); | ||
@@ -18,7 +17,9 @@ /** | ||
*/ | ||
module.exports = function cheerioReq (opts, cb) { | ||
return Tinyreq(opts, (err, body, res) => { | ||
if (err) { return cb(err); } | ||
module.exports = function cheerioReq(opts, cb) { | ||
return Tinyreq(opts, function (err, body, res) { | ||
if (err) { | ||
return cb(err); | ||
} | ||
cb(null, Cheerio.load(body), res, body); | ||
}); | ||
}; | ||
}; |
@@ -17,3 +17,3 @@ { | ||
"license": "MIT", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "lib/index.js", | ||
@@ -35,3 +35,15 @@ "scripts": { | ||
"tinyreq": "^3.0.1" | ||
} | ||
}, | ||
"files": [ | ||
"bin/", | ||
"app/", | ||
"lib/", | ||
"dist/", | ||
"src/", | ||
"resources/", | ||
"menu/", | ||
"scripts/", | ||
"cli.js", | ||
"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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
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
2772
3
21
1
0