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

xhr

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xhr - npm Package Compare versions

Comparing version 1.5.0 to 1.6.0

8

index.js

@@ -41,4 +41,6 @@ var window = require("global/window")

isJson = true
headers["Content-Type"] = "application/json"
body = JSON.stringify(options.json)
if (method !== "GET" && method !== "HEAD") {
headers["Content-Type"] = "application/json"
body = JSON.stringify(options.json)
}
}

@@ -64,3 +66,3 @@

if ( xhr.setRequestHeader) {
if (xhr.setRequestHeader) {
Object.keys(headers).forEach(function (key) {

@@ -67,0 +69,0 @@ xhr.setRequestHeader(key, headers[key])

{
"name": "xhr",
"version": "1.5.0",
"version": "1.6.0",
"description": "small xhr abstraction",

@@ -5,0 +5,0 @@ "keywords": [

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