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

http-browserify

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-browserify - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

10

lib/request.js

@@ -103,3 +103,3 @@ var Stream = require('stream');

if (!headerName) return false;
return (Request.unsafeHeaders.indexOf(headerName.toLowerCase()) === -1)
return indexOf(Request.unsafeHeaders, headerName.toLowerCase()) === -1;
};

@@ -116,1 +116,9 @@

};
var indexOf = function (xs, x) {
if (xs.indexOf) return xs.indexOf(x);
for (var i = 0; i < xs.length; i++) {
if (xs[i] === x) return i;
}
return -1;
};

2

lib/response.js

@@ -47,3 +47,3 @@ var Stream = require('stream');

Response.prototype.getResponse = function (xhr) {
var respType = xhr.responseType.toLowerCase();
var respType = String(xhr.responseType).toLowerCase();
if (respType === 'blob') return xhr.responseBlob;

@@ -50,0 +50,0 @@ if (respType === 'arraybuffer') return xhr.response;

{
"name" : "http-browserify",
"version" : "0.1.5",
"version" : "0.1.6",
"description" : "http module compatability for browserify",

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