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

react-uploader

Package Overview
Dependencies
Maintainers
1
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-uploader - npm Package Compare versions

Comparing version 3.9.0 to 3.10.0

40

dist/main.js

@@ -144,20 +144,24 @@ /******/ (function() { // webpackBootstrap

className: className
};
(0,external_react_namespaceObject.useLayoutEffect)(function () {
if (element !== undefined) {
var onUpdateParams = onUpdate === undefined ? {} : {
onUpdate: onUpdate
};
uploader.open(Object.assign(Object.assign(Object.assign({}, options), onUpdateParams), {
container: element,
layout: "inline"
})).then(function (files) {
if (onComplete !== undefined) {
onComplete(files);
}
}, function (error) {
return console.error("Uploader error.", error);
});
}
}, [element]);
}; // Prevent React warning, while keeping rendering synchronous in the browser.
if (typeof window !== "undefined") {
(0,external_react_namespaceObject.useLayoutEffect)(function () {
if (element !== undefined) {
var onUpdateParams = onUpdate === undefined ? {} : {
onUpdate: onUpdate
};
uploader.open(Object.assign(Object.assign(Object.assign({}, options), onUpdateParams), {
container: element,
layout: "inline"
})).then(function (files) {
if (onComplete !== undefined) {
onComplete(files);
}
}, function (error) {
return console.error("Uploader error.", error);
});
}
}, [element]);
}
return /*#__PURE__*/external_react_default().createElement("div", Object.assign({}, classNameProp, {

@@ -164,0 +168,0 @@ ref: elementRef,

{
"name": "react-uploader",
"version": "3.9.0",
"version": "3.10.0",
"author": "Upload <hello@upload.io> (https://upload.io)",

@@ -77,3 +77,3 @@ "description": "React File Upload UI Widget — Lightweight & supports: drag and drop, multiple uploads, image cropping, customization & more 🚀 Comes with Cloud Storage 🌐",

"dependencies": {
"uploader": "^3.8.0"
"uploader": "^3.9.0"
},

@@ -80,0 +80,0 @@ "devDependencies": {

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