Socket
Socket
Sign inDemoInstall

@uppy/dashboard

Package Overview
Dependencies
Maintainers
0
Versions
138
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 3.9.0 to 3.9.1

7

CHANGELOG.md
# @uppy/dashboard
## 3.9.1
Released: 2024-06-27
Included in: Uppy v3.27.1
- @uppy/dashboard: fix handling of `null` for `doneButtonHandler` (Antoine du Hamel / #5283)
## 3.8.3

@@ -4,0 +11,0 @@

20

lib/Dashboard.js

@@ -21,3 +21,3 @@ function _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; }

const packageJson = {
"version": "3.9.0"
"version": "3.9.1"
};

@@ -78,3 +78,3 @@ import locale from "./locale.js";

// appear in the default options so TS knows they'll be defined.
doneButtonHandler: null,
doneButtonHandler: undefined,
onRequestCloseModal: null

@@ -101,3 +101,3 @@ };

constructor(uppy, _opts) {
var _this$opts4, _this$opts4$doneButto, _this$opts5, _this$opts5$onRequest;
var _this$opts4, _this$opts4$onRequest;
// support for the legacy `autoOpenFileEditor` option,

@@ -1147,7 +1147,11 @@ // TODO: we can remove this code when we update the Uppy major version

// Dynamic default options:
(_this$opts4$doneButto = (_this$opts4 = this.opts).doneButtonHandler) != null ? _this$opts4$doneButto : _this$opts4.doneButtonHandler = () => {
this.uppy.clearUploadedFiles();
this.requestCloseModal();
};
(_this$opts5$onRequest = (_this$opts5 = this.opts).onRequestCloseModal) != null ? _this$opts5$onRequest : _this$opts5.onRequestCloseModal = () => this.closeModal();
if (this.opts.doneButtonHandler === undefined) {
// `null` means "do not display a Done button", while `undefined` means
// "I want the default behavior". For this reason, we need to differentiate `null` and `undefined`.
this.opts.doneButtonHandler = () => {
this.uppy.clearUploadedFiles();
this.requestCloseModal();
};
}
(_this$opts4$onRequest = (_this$opts4 = this.opts).onRequestCloseModal) != null ? _this$opts4$onRequest : _this$opts4.onRequestCloseModal = () => this.closeModal();
this.i18nInit();

@@ -1154,0 +1158,0 @@ }

2

package.json
{
"name": "@uppy/dashboard",
"description": "Universal UI plugin for Uppy.",
"version": "3.9.0",
"version": "3.9.1",
"license": "MIT",

@@ -6,0 +6,0 @@ "main": "lib/index.js",

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