New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

req-fast

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

req-fast - npm Package Compare versions

Comparing version 0.2.6 to 0.2.7

14

lib/req.js

@@ -31,6 +31,16 @@ // Copyright 2014 Tjatse

*/
function req(options, callback){
function req(options, cb){
var rs = req_stream(options);
if(callback){
if(cb){
// Callback one time.
var callback = (function() {
var executed = false;
return function () {
if (!executed) {
executed = true;
cb.apply(null, arguments);
}
};
})();
rs.on('error', function(error, response){

@@ -37,0 +47,0 @@ callback(error, response);

2

package.json
{
"name": "req-fast",
"version": "0.2.6",
"version": "0.2.7",
"description": "This module is designed to be the fast, lightweight way to fetch the web content(HTML stream).",

@@ -5,0 +5,0 @@ "main": "lib/req.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