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

minixhr

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minixhr - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

2

package.json
{
"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 @@

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