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

xhr2

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xhr2 - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

16

lib/xhr2.js

@@ -1,6 +0,6 @@

// Generated by CoffeeScript 1.7.1
// Generated by CoffeeScript 1.9.0
(function() {
var InvalidStateError, NetworkError, ProgressEvent, SecurityError, XMLHttpRequest, XMLHttpRequestEventTarget, XMLHttpRequestUpload, http, https, os, url,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
__hasProp = {}.hasOwnProperty;

@@ -47,3 +47,3 @@ XMLHttpRequestEventTarget = (function() {

if (index !== -1) {
this._listeners.splice(index, 1);
this._listeners[eventType].splice(index, 1);
}

@@ -246,3 +246,3 @@ }

value = _ref[name];
_results.push("" + name + ": " + value);
_results.push(name + ": " + value);
}

@@ -574,3 +574,3 @@ return _results;

if (user || password) {
xhrUrl.auth = "" + user + ":" + password;
xhrUrl.auth = user + ":" + password;
}

@@ -746,4 +746,4 @@ return xhrUrl;

ProgressEvent = (function() {
function ProgressEvent(type) {
this.type = type;
function ProgressEvent(_at_type) {
this.type = _at_type;
this.target = null;

@@ -750,0 +750,0 @@ this.currentTarget = null;

{
"name": "xhr2",
"version": "0.1.1",
"version": "0.1.2",
"description": "XMLHttpRequest emulation for node.js",

@@ -25,12 +25,12 @@ "keywords": ["xhr", "xmlhttprequest", "ajax", "browser"],

"devDependencies": {
"async": ">= 0.2.8",
"chai": ">= 1.9.1",
"async": ">= 0.9.0",
"chai": ">= 1.10.0",
"codo": ">= 2.0.9",
"coffee-script": ">= 1.7.1",
"express": ">= 4.8.3",
"glob": ">= 4.0.5",
"mocha": ">= 1.21.4",
"coffee-script": ">= 1.9.0",
"express": ">= 4.11.2",
"glob": ">= 4.3.5",
"mocha": ">= 2.1.0",
"open": ">= 0.0.5",
"remove": ">= 0.1.5",
"sinon": ">= 1.10.3",
"sinon": ">= 1.12.2",
"sinon-chai": ">= 2.5.0"

@@ -37,0 +37,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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