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

@uppy/dashboard

Package Overview
Dependencies
Maintainers
5
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/dashboard - npm Package Compare versions

Comparing version 1.13.1 to 1.14.0

24

lib/index.js

@@ -605,4 +605,3 @@ var _class, _temp;

_this.handleComplete = function (_ref) {
var failed = _ref.failed,
uploadID = _ref.uploadID;
var failed = _ref.failed;

@@ -615,2 +614,10 @@ if (_this.opts.closeAfterFinish && failed.length === 0) {

_this._openFileEditorWhenFilesAdded = function (files) {
var firstFile = files[0];
if (_this.canEditFile(firstFile)) {
_this.openFileEditor(firstFile);
}
};
_this.initEvents = function () {

@@ -652,2 +659,6 @@ // Modal open button

}
if (_this.opts.autoOpenFileEditor) {
_this.uppy.on('files-added', _this._openFileEditorWhenFilesAdded);
}
};

@@ -683,2 +694,6 @@

}
if (_this.opts.autoOpenFileEditor) {
_this.uppy.off('files-added', _this._openFileEditorWhenFilesAdded);
}
};

@@ -1143,3 +1158,4 @@

browserBackButtonClose: false,
theme: 'light'
theme: 'light',
autoOpenFileEditor: false
}; // merge default options with the ones set by user

@@ -1160,2 +1176,2 @@

return Dashboard;
}(Plugin), _class.VERSION = "1.13.1", _temp);
}(Plugin), _class.VERSION = "1.14.0", _temp);

2

lib/utils/getFileTypeIcon.js

@@ -168,3 +168,3 @@ var _require = require('preact'),

var archiveTypes = ['zip', 'x-7z-compressed', 'x-rar-compressed', 'x-gtar', 'x-apple-diskimage', 'x-diskcopy'];
var archiveTypes = ['zip', 'x-7z-compressed', 'x-rar-compressed', 'x-tar', 'x-gzip', 'x-apple-diskimage'];

@@ -171,0 +171,0 @@ if (fileTypeGeneral === 'application' && archiveTypes.indexOf(fileTypeSpecific) !== -1) {

{
"name": "@uppy/dashboard",
"description": "Universal UI plugin for Uppy.",
"version": "1.13.1",
"version": "1.14.0",
"license": "MIT",

@@ -26,7 +26,7 @@ "main": "lib/index.js",

"@transloadit/prettier-bytes": "0.0.7",
"@uppy/informer": "^1.5.13",
"@uppy/provider-views": "^1.9.1",
"@uppy/status-bar": "^1.8.0",
"@uppy/thumbnail-generator": "^1.7.2",
"@uppy/utils": "^3.2.5",
"@uppy/informer": "^1.5.14",
"@uppy/provider-views": "^1.9.2",
"@uppy/status-bar": "^1.8.1",
"@uppy/thumbnail-generator": "^1.7.3",
"@uppy/utils": "^3.3.0",
"classnames": "^2.2.6",

@@ -44,3 +44,3 @@ "cuid": "^2.1.1",

},
"gitHead": "38599e3aa28642bd938200b13a2611adca494273"
"gitHead": "1493a807fe83f7b465a8f7562bfb5631b1945e5b"
}

@@ -146,3 +146,4 @@ const { h } = require('preact')

browserBackButtonClose: false,
theme: 'light'
theme: 'light',
autoOpenFileEditor: false
}

@@ -655,3 +656,3 @@

handleComplete = ({ failed, uploadID }) => {
handleComplete = ({ failed }) => {
if (this.opts.closeAfterFinish && failed.length === 0) {

@@ -663,2 +664,9 @@ // All uploads are done

_openFileEditorWhenFilesAdded = (files) => {
const firstFile = files[0]
if (this.canEditFile(firstFile)) {
this.openFileEditor(firstFile)
}
}
initEvents = () => {

@@ -692,2 +700,6 @@ // Modal open button

}
if (this.opts.autoOpenFileEditor) {
this.uppy.on('files-added', this._openFileEditorWhenFilesAdded)
}
}

@@ -716,2 +728,6 @@

}
if (this.opts.autoOpenFileEditor) {
this.uppy.off('files-added', this._openFileEditorWhenFilesAdded)
}
}

@@ -718,0 +734,0 @@

@@ -118,3 +118,3 @@ const { h } = require('preact')

// Archive
const archiveTypes = ['zip', 'x-7z-compressed', 'x-rar-compressed', 'x-gtar', 'x-apple-diskimage', 'x-diskcopy']
const archiveTypes = ['zip', 'x-7z-compressed', 'x-rar-compressed', 'x-tar', 'x-gzip', 'x-apple-diskimage']
if (fileTypeGeneral === 'application' && archiveTypes.indexOf(fileTypeSpecific) !== -1) {

@@ -121,0 +121,0 @@ return {

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