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

xhr-tool

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xhr-tool - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

9

index.js

@@ -19,3 +19,8 @@ /**

req.onload = function() {
resolve(JSON.parse(req.response));
if (req.status < 200 || req.status >= 400) return reject(new Error('Error ' + req.status));
try {
resolve(JSON.parse(req.response));
} catch (err) {
reject(err);
}
};

@@ -30,2 +35,2 @@ req.onerror = reject.bind(null, new Error('Error ' + req.status));

}
exports.getJSON = getJSON;
exports.getJSON = getJSON;
{
"name": "xhr-tool",
"version": "1.0.7",
"version": "1.0.8",
"description": "XMLHttpRequest with Promises (in the browser)",

@@ -5,0 +5,0 @@ "keywords": [ "xhr", "promises", "es6" ],

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