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

sync-request

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sync-request - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

4

browser.js

@@ -8,3 +8,3 @@ 'use strict';

function doRequest(method, url, options) {
var xhr = new window.XMLHttpRequest();
var xhr = new XMLHttpRequest();

@@ -32,3 +32,3 @@ // check types of arguments

var match;
var crossDomain = !!((match = /^([\w-]+:)?\/\/([^\/]+)/.exec(options.uri)) && (match[2] != window.location.host));
var crossDomain = !!((match = /^([\w-]+:)?\/\/([^\/]+)/.exec(options.uri)) && (match[2] != location.host));
if (!crossDomain) options.headers['X-Requested-With'] = 'XMLHttpRequest';

@@ -35,0 +35,0 @@

{
"name": "sync-request",
"version": "2.1.0",
"version": "2.2.0",
"description": "Make synchronous web requests",

@@ -5,0 +5,0 @@ "browser": "./browser.js",

@@ -8,3 +8,3 @@ # sync-request

[![Build Status](https://img.shields.io/travis/ForbesLindesay/sync-request/master.svg)](https://travis-ci.org/ForbesLindesay/sync-request)
[![Dependency Status](https://img.shields.io/gemnasium/ForbesLindesay/sync-request.svg)](https://gemnasium.com/ForbesLindesay/sync-request)
[![Dependency Status](https://img.shields.io/david/ForbesLindesay/sync-request.svg)](https://david-dm.org/ForbesLindesay/sync-request)
[![NPM version](https://img.shields.io/npm/v/sync-request.svg)](https://www.npmjs.org/package/sync-request)

@@ -11,0 +11,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