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

@uppy/xhr-upload

Package Overview
Dependencies
Maintainers
5
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/xhr-upload - npm Package Compare versions

Comparing version 0.28.0 to 0.29.0

14

lib/index.js

@@ -68,2 +68,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

withCredentials: false,
responseType: '',
/**

@@ -224,2 +225,6 @@ * @typedef respObj

var xhr = new XMLHttpRequest();
if (opts.responseType !== '') {
xhr.responseType = opts.responseType;
}
var id = cuid();

@@ -295,3 +300,3 @@

xhr.open(opts.method.toUpperCase(), opts.endpoint, true);
// IE10 does not allow setting `withCredentials` before `open()` is called.
xhr.withCredentials = opts.withCredentials;

@@ -381,5 +386,6 @@

var xhr = new XMLHttpRequest();
if (_this4.opts.responseType !== '') {
xhr.responseType = _this4.opts.responseType;
}
xhr.withCredentials = _this4.opts.withCredentials;
var timer = _this4.createProgressTimeout(_this4.opts.timeout, function (error) {

@@ -447,3 +453,3 @@ xhr.abort();

xhr.open(method.toUpperCase(), endpoint, true);
// IE10 does not allow setting `withCredentials` before `open()` is called.
xhr.withCredentials = _this4.opts.withCredentials;

@@ -450,0 +456,0 @@

{
"name": "@uppy/xhr-upload",
"description": "Plain and simple classic HTML multipart form uploads with Uppy, as well as uploads using the HTTP PUT method.",
"version": "0.28.0",
"version": "0.29.0",
"license": "MIT",

@@ -29,12 +29,12 @@ "main": "lib/index.js",

"@uppy/companion-client": "0.27.2",
"@uppy/utils": "0.28.0",
"@uppy/utils": "0.29.0",
"cuid": "^2.1.1"
},
"devDependencies": {
"@uppy/core": "0.28.0"
"@uppy/core": "0.29.0"
},
"peerDependencies": {
"@uppy/core": "^0.28.0"
"@uppy/core": "^0.29.0"
},
"gitHead": "47a68a6148a41c7b8a1e10e78b6cd6794a53f7e5"
"gitHead": "c68f2c7e68d2c12f8a8fb7119f1dae4ca08e4174"
}

@@ -50,2 +50,3 @@ const { Plugin } = require('@uppy/core')

withCredentials: false,
responseType: '',
/**

@@ -205,2 +206,6 @@ * @typedef respObj

const xhr = new XMLHttpRequest()
if (opts.responseType !== '') {
xhr.responseType = opts.responseType
}
const id = cuid()

@@ -276,3 +281,3 @@

xhr.open(opts.method.toUpperCase(), opts.endpoint, true)
// IE10 does not allow setting `withCredentials` before `open()` is called.
xhr.withCredentials = opts.withCredentials

@@ -363,5 +368,6 @@

const xhr = new XMLHttpRequest()
if (this.opts.responseType !== '') {
xhr.responseType = this.opts.responseType
}
xhr.withCredentials = this.opts.withCredentials
const timer = this.createProgressTimeout(this.opts.timeout, (error) => {

@@ -429,3 +435,3 @@ xhr.abort()

xhr.open(method.toUpperCase(), endpoint, true)
// IE10 does not allow setting `withCredentials` before `open()` is called.
xhr.withCredentials = this.opts.withCredentials

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