@vaadin/upload
Advanced tools
Comparing version 23.1.0-beta1 to 23.1.0-beta2
{ | ||
"name": "@vaadin/upload", | ||
"version": "23.1.0-beta1", | ||
"version": "23.1.0-beta2", | ||
"publishConfig": { | ||
@@ -37,16 +37,16 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/button": "23.1.0-beta1", | ||
"@vaadin/component-base": "23.1.0-beta1", | ||
"@vaadin/progress-bar": "23.1.0-beta1", | ||
"@vaadin/vaadin-lumo-styles": "23.1.0-beta1", | ||
"@vaadin/vaadin-material-styles": "23.1.0-beta1", | ||
"@vaadin/vaadin-themable-mixin": "23.1.0-beta1" | ||
"@vaadin/button": "23.1.0-beta2", | ||
"@vaadin/component-base": "23.1.0-beta2", | ||
"@vaadin/progress-bar": "23.1.0-beta2", | ||
"@vaadin/vaadin-lumo-styles": "23.1.0-beta2", | ||
"@vaadin/vaadin-material-styles": "23.1.0-beta2", | ||
"@vaadin/vaadin-themable-mixin": "23.1.0-beta2" | ||
}, | ||
"devDependencies": { | ||
"@esm-bundle/chai": "^4.3.4", | ||
"@vaadin/form-layout": "23.1.0-beta1", | ||
"@vaadin/form-layout": "23.1.0-beta2", | ||
"@vaadin/testing-helpers": "^0.3.2", | ||
"sinon": "^13.0.2" | ||
}, | ||
"gitHead": "8be43cf83102a6b9ccf309687446e590ce0164e8" | ||
"gitHead": "f11f9245a0b5e6bf912725a501c27c24b74e7c8d" | ||
} |
@@ -62,4 +62,4 @@ /** | ||
}; | ||
formatSize?: (bytes: number) => string; | ||
formatTime?: (seconds: number, units: number[]) => string; | ||
formatSize?(bytes: number): string; | ||
formatTime?(seconds: number, units: number[]): string; | ||
} | ||
@@ -66,0 +66,0 @@ |
@@ -224,5 +224,3 @@ /** | ||
notify: true, | ||
value: function () { | ||
return []; | ||
}, | ||
value: () => [], | ||
}, | ||
@@ -392,3 +390,3 @@ | ||
type: Object, | ||
value: function () { | ||
value() { | ||
return { | ||
@@ -474,3 +472,3 @@ dropFiles: { | ||
for (var i = 0; i < unitSizes.length && time > 0; i++) { | ||
for (let i = 0; i < unitSizes.length && time > 0; i++) { | ||
timeValues[i] = time % unitSizes[i]; | ||
@@ -558,3 +556,3 @@ time = Math.floor(time / unitSizes[i]); | ||
} | ||
for (var key in this.headers) { | ||
for (const key in this.headers) { | ||
xhr.setRequestHeader(key, this.headers[key]); | ||
@@ -604,3 +602,3 @@ } | ||
let stalledId, last; | ||
// onprogress is called always after onreadystatechange | ||
// Onprogress is called always after onreadystatechange | ||
xhr.upload.onprogress = (e) => { | ||
@@ -755,3 +753,3 @@ clearTimeout(stalledId); | ||
_notifyFileChanges(file) { | ||
var p = `files.${this.files.indexOf(file)}.`; | ||
const p = `files.${this.files.indexOf(file)}.`; | ||
for (const i in file) { | ||
@@ -758,0 +756,0 @@ // eslint-disable-next-line no-prototype-builtins |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
79412
1948
1
+ Added@vaadin/button@23.1.0-beta2(transitive)
+ Added@vaadin/component-base@23.1.0-beta2(transitive)
+ Added@vaadin/icon@23.1.0-beta2(transitive)
+ Added@vaadin/progress-bar@23.1.0-beta2(transitive)
+ Added@vaadin/vaadin-lumo-styles@23.1.0-beta2(transitive)
+ Added@vaadin/vaadin-material-styles@23.1.0-beta2(transitive)
+ Added@vaadin/vaadin-themable-mixin@23.1.0-beta2(transitive)
- Removed@vaadin/button@23.1.0-beta1(transitive)
- Removed@vaadin/component-base@23.1.0-beta1(transitive)
- Removed@vaadin/icon@23.1.0-beta1(transitive)
- Removed@vaadin/progress-bar@23.1.0-beta1(transitive)
- Removed@vaadin/vaadin-lumo-styles@23.1.0-beta1(transitive)
- Removed@vaadin/vaadin-material-styles@23.1.0-beta1(transitive)
- Removed@vaadin/vaadin-themable-mixin@23.1.0-beta1(transitive)
Updated@vaadin/button@23.1.0-beta2