Comparing version 3.2.0 to 3.2.1
{ | ||
"name": "minixhr", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "super simpel and small cross-browser xhr", | ||
@@ -5,0 +5,0 @@ "main": "minixhr.js", |
@@ -12,8 +12,8 @@ # minixhr | ||
minixhr('http://jsonplaceholder.typicode.com/posts/1', callback) | ||
// check http://requestb.in/18b4srl1?inspect afterwards to inspect | ||
// EXAMPLE 2 | ||
// make a temporary `http://requestb.in` to try the next example, e.g. | ||
var data = { foo: 123, bar: "abc" } | ||
var request = { // can be 'url string' or object: | ||
/*required*/url : 'http://requestb.in/18b4srl1', | ||
/*required*/url : 'http://requestb.in/18b4srl1', // replace with your example | ||
/*optional*/method : 'POST', // (defaults to 'GET') | ||
@@ -25,2 +25,3 @@ /*optional*/data : JSON.stringify(data), // payload data could be <formdata> or {key:val}'s or any string | ||
minixhr(request) // [optional] callback - (e.g. leave out for POST Request where you don't care about a response | ||
// check http://requestb.in/18b4srl1?inspect afterwards to inspect | ||
``` | ||
@@ -27,0 +28,0 @@ |
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
3468
29