New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 1.5.8 to 1.5.9

24

lib/index.js

@@ -33,2 +33,6 @@ var _class, _temp;

var NetworkError = require('@uppy/utils/lib/NetworkError');
var isNetworkError = require('@uppy/utils/lib/isNetworkError');
function buildResponseError(xhr, error) {

@@ -46,2 +50,7 @@ // No error message

if (isNetworkError(xhr)) {
error = new NetworkError(error, xhr);
return error;
}
error.request = xhr;

@@ -65,5 +74,3 @@ return error;

module.exports = (_temp = _class =
/*#__PURE__*/
function (_Plugin) {
module.exports = (_temp = _class = /*#__PURE__*/function (_Plugin) {
_inheritsLoose(XHRUpload, _Plugin);

@@ -125,3 +132,9 @@

getResponseError: function getResponseError(responseText, response) {
return new Error('Upload error');
var error = new Error('Upload error');
if (isNetworkError(response)) {
error = new NetworkError(error, response);
}
return error;
},

@@ -399,2 +412,3 @@

httpMethod: opts.method,
useFormData: opts.formData,
headers: opts.headers

@@ -706,2 +720,2 @@ })).then(function (res) {

return XHRUpload;
}(Plugin), _class.VERSION = "1.5.8", _temp);
}(Plugin), _class.VERSION = "1.5.9", _temp);
{
"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": "1.5.8",
"version": "1.5.9",
"license": "MIT",

@@ -27,4 +27,4 @@ "main": "lib/index.js",

"dependencies": {
"@uppy/companion-client": "^1.4.2",
"@uppy/utils": "^2.4.2",
"@uppy/companion-client": "^1.4.3",
"@uppy/utils": "^2.4.3",
"cuid": "^2.1.1"

@@ -35,3 +35,3 @@ },

},
"gitHead": "323233488f4abe33f0fda037673d38777f109f6f"
"gitHead": "6e2dfd7c0f54f38672894eac2333310dcd276c03"
}

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

const RateLimitedQueue = require('@uppy/utils/lib/RateLimitedQueue')
const NetworkError = require('@uppy/utils/lib/NetworkError')
const isNetworkError = require('@uppy/utils/lib/isNetworkError')

@@ -23,2 +25,7 @@ function buildResponseError (xhr, error) {

if (isNetworkError(xhr)) {
error = new NetworkError(error, xhr)
return error
}
error.request = xhr

@@ -95,3 +102,9 @@ return error

getResponseError (responseText, response) {
return new Error('Upload error')
let error = new Error('Upload error')
if (isNetworkError(response)) {
error = new NetworkError(error, response)
}
return error
},

@@ -365,2 +378,3 @@ /**

httpMethod: opts.method,
useFormData: opts.formData,
headers: opts.headers

@@ -367,0 +381,0 @@ }).then((res) => {

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