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

@vaadin/upload

Package Overview
Dependencies
Maintainers
17
Versions
408
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/upload - npm Package Compare versions

Comparing version 23.0.0-beta1 to 23.0.0-beta2

18

package.json
{
"name": "@vaadin/upload",
"version": "23.0.0-beta1",
"version": "23.0.0-beta2",
"publishConfig": {

@@ -37,16 +37,16 @@ "access": "public"

"@polymer/polymer": "^3.0.0",
"@vaadin/button": "23.0.0-beta1",
"@vaadin/component-base": "23.0.0-beta1",
"@vaadin/progress-bar": "23.0.0-beta1",
"@vaadin/vaadin-lumo-styles": "23.0.0-beta1",
"@vaadin/vaadin-material-styles": "23.0.0-beta1",
"@vaadin/vaadin-themable-mixin": "23.0.0-beta1"
"@vaadin/button": "23.0.0-beta2",
"@vaadin/component-base": "23.0.0-beta2",
"@vaadin/progress-bar": "23.0.0-beta2",
"@vaadin/vaadin-lumo-styles": "23.0.0-beta2",
"@vaadin/vaadin-material-styles": "23.0.0-beta2",
"@vaadin/vaadin-themable-mixin": "23.0.0-beta2"
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/form-layout": "23.0.0-beta1",
"@vaadin/form-layout": "23.0.0-beta2",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.0"
},
"gitHead": "467244b76021176c109df675799b07029b293e58"
"gitHead": "a276f7a0fd00e5459b87267468e0dd0d4fb6f7f3"
}

@@ -11,2 +11,3 @@ /**

import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
import { announce } from '@vaadin/component-base/src/a11y-announcer.js';
import { isTouch } from '@vaadin/component-base/src/browser-utils.js';

@@ -447,2 +448,6 @@ import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';

this.addEventListener('file-start', this._onFileStart.bind(this));
this.addEventListener('file-reject', this._onFileReject.bind(this));
this.addEventListener('upload-start', this._onUploadStart.bind(this));
this.addEventListener('upload-success', this._onUploadSuccess.bind(this));
this.addEventListener('upload-error', this._onUploadError.bind(this));
}

@@ -863,2 +868,22 @@

/** @private */
_onFileReject(event) {
announce(`${event.detail.file.name}: ${event.detail.file.error}`, { mode: 'alert' });
}
/** @private */
_onUploadStart(event) {
announce(`${event.detail.file.name}: 0%`, { mode: 'alert' });
}
/** @private */
_onUploadSuccess(event) {
announce(`${event.detail.file.name}: 100%`, { mode: 'alert' });
}
/** @private */
_onUploadError(event) {
announce(`${event.detail.file.name}: ${event.detail.file.error}`, { mode: 'alert' });
}
/** @private */
_dragoverChanged(dragover) {

@@ -865,0 +890,0 @@ dragover ? this.setAttribute('dragover', dragover) : this.removeAttribute('dragover');

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