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.1 to 3.2.2

2

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

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