@umbraco-ui/uui-file-dropzone 1.3.0-rc.1 → 1.4.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +7 -6
- package/package.json +4 -4
package/lib/index.js
CHANGED
|
@@ -115,13 +115,14 @@ let UUIFileDropzoneElement = class extends LabelMixin("", LitElement) {
|
|
|
115
115
|
return entries;
|
|
116
116
|
}
|
|
117
117
|
async _readEntriesPromise(directoryReader) {
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
return new Promise((resolve, reject) => {
|
|
119
|
+
try {
|
|
120
120
|
directoryReader.readEntries(resolve, reject);
|
|
121
|
-
})
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
121
|
+
} catch (err) {
|
|
122
|
+
console.log(err);
|
|
123
|
+
reject(err);
|
|
124
|
+
}
|
|
125
|
+
});
|
|
125
126
|
}
|
|
126
127
|
_isAccepted(file) {
|
|
127
128
|
if (this._acceptedFileExtensions.length === 0 && this._acceptedMimeTypes.length === 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umbraco-ui/uui-file-dropzone",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0-rc.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Umbraco",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"custom-elements.json"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@umbraco-ui/uui-base": "1.
|
|
34
|
-
"@umbraco-ui/uui-symbol-file-dropzone": "1.
|
|
33
|
+
"@umbraco-ui/uui-base": "1.4.0-rc.0",
|
|
34
|
+
"@umbraco-ui/uui-symbol-file-dropzone": "1.4.0-rc.0"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "npm run analyze && tsc --build --force && rollup -c rollup.config.js",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"homepage": "https://uui.umbraco.com/?path=/story/uui-file-dropzone",
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "1387a535f40a87e96e5596888cdcb2beabb724ec"
|
|
46
46
|
}
|