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

minixhr

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minixhr - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

9

index.js

@@ -23,4 +23,11 @@ var XMLHttpRequest = require('xhrpolyfill');

}
xhr.onload=function(response){callback(this.response, response, xhr);};
xhr.onload=function(response){
var headerJSON = {}, h = xhr.getAllResponseHeaders();
h.match(/([^\n\r:]+):([^\n\r]+)/g).forEach(function(item){
var tmp = item.split(': ');
json[tmp[0]] = tmp[1];
});
callback(this.response, response, xhr, headerJSON);
};
xhr.send(args.body||null);
};

2

package.json
{
"name": "minixhr",
"version": "1.1.0",
"version": "1.2.0",
"description": "super simpel and small cross-browser xhr",

@@ -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