Comparing version 0.5.1 to 1.0.0
@@ -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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
6831
0
78