Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cheerio-req

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cheerio-req - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

15

lib/index.js
"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"
]
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc