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.2.8 to 0.2.9

.npmignore

10

lib/fetch.js

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

this.userAgent = "FetchStream";
this.userAgent = options.userAgent || "FetchStream";

@@ -138,3 +138,3 @@ this._redirect_count = 0;

urloptions = {
host: urlparts.hostname,
host: urlparts.hostname || urlparts.host,
port: urlparts.port,

@@ -248,4 +248,2 @@ path: urlparts.pathname + (urlparts.search || "") || "/",

url_data.urloptions.agent = this.options.agent;
if (this.options.asyncDnsLoookup) {

@@ -258,5 +256,5 @@ var dnsCallback = (function (err, adresses){

url_data.urloptions.headers['host'] = url_data.urloptions.hostname+url_data.urloptions.port;
url_data.urloptions.headers['host'] = url_data.urloptions.hostname || url_data.urloptions.host;
url_data.urloptions.hostname = adresses[0];
url_data.urloptions.host=url_data.urloptions.hostname + (url_data.urloptions.port? ':' + url_data.urloptions.port: '');
url_data.urloptions.host = url_data.urloptions.headers['host'] + (url_data.urloptions.port? ':' + url_data.urloptions.port: '');

@@ -263,0 +261,0 @@ this._runStream(url_data, url);

2

package.json
{
"name": "fetch",
"description": "Fetch URL contents",
"version": "0.2.8",
"version": "0.2.9",
"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