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

fetch

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

caching.md

12

lib/fetch.js

@@ -387,3 +387,4 @@ var http = require("http"),

response_data, chunks = [], length=0, curpos=0, buffer,
content_type;
content_type,
callbackFired = false;

@@ -403,2 +404,6 @@ fetchstream.on("meta", function(meta){

fetchstream.on("error", function(error){
if(callbackFired){
return;
}
callbackFired = true;
callback(error);

@@ -408,2 +413,7 @@ });

fetchstream.on("end", function(error){
if(callbackFired){
return;
}
callbackFired = true;
buffer = new Buffer(length);

@@ -410,0 +420,0 @@ for(var i=0, len = chunks.length; i<len; i++){

2

package.json
{
"name": "fetch",
"description": "Fetch URL contents",
"version": "0.3.1",
"version": "0.3.2",
"author": "Andris Reinman",

@@ -6,0 +6,0 @@ "maintainers": [

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