Comparing version 3.2.1 to 3.2.2
{ | ||
"name": "minixhr", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"description": "super simpel and small cross-browser xhr", | ||
@@ -5,0 +5,0 @@ "main": "minixhr.js", |
@@ -9,6 +9,8 @@ # minixhr | ||
// EXAMPLE 1 | ||
// response handler | ||
function callback (data, response, xhr, header) { console.log(data) } | ||
minixhr('http://jsonplaceholder.typicode.com/posts/1', callback) | ||
minixhr('https://jsonplaceholder.typicode.com/posts/1', response) | ||
function response (data, response, xhr, header) { | ||
console.log(data) | ||
} | ||
// EXAMPLE 2 | ||
@@ -24,2 +26,3 @@ // make a temporary `http://requestb.in` to try the next example, e.g. | ||
} | ||
minixhr(request) // [optional] callback - (e.g. leave out for POST Request where you don't care about a response | ||
@@ -26,0 +29,0 @@ // check http://requestb.in/18b4srl1?inspect afterwards to inspect |
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
32
3453