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

xhr

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xhr - npm Package Compare versions

Comparing version 0.5.1 to 1.0.0

6

index.js

@@ -79,3 +79,3 @@ /*global window*/

return function () {
callback.call(self, null, self.response ||
callback.call(self, null, self, self.response ||
self.responseText || self.responseXML)

@@ -96,7 +96,7 @@ }

return callback.call(self, error, self.response ||
return callback.call(self, error, self, self.response ||
self.responseText || self.responseXML)
}
callback.call(self, null, self.response ||
callback.call(self, null, self, self.response ||
self.responseText || self.responseXML)

@@ -103,0 +103,0 @@ }

{
"name": "xhr",
"version": "0.5.1",
"version": "1.0.0",
"description": "small xhr abstraction",

@@ -5,0 +5,0 @@ "keywords": [],

@@ -25,4 +25,5 @@ # xhr

Your callback will be called once with either an [`Error`][5]
or a valid `result`. The result will be either
Your callback will be called once with the arguments ( [`Error`][5]
, `response` , `body` ) where response is the context of the xhr request
and body will be either
[`xhr.response`][6], [`xhr.responseText`][7] or

@@ -29,0 +30,0 @@ [`xhr.responseXML`][8] depending on the request type.

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