file-select-dialog
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -0,1 +1,8 @@ | ||
## [1.2.1](https://github.com/TomokiMiyauci/file-select-dialog/compare/v1.2.0...v1.2.1) (2020-11-20) | ||
### Bug Fixes | ||
* **index.ts:** change to named export ([233504e](https://github.com/TomokiMiyauci/file-select-dialog/commit/233504ea8602b650ce1bda909cc50bc96b570177)) | ||
# [1.2.0](https://github.com/TomokiMiyauci/file-select-dialog/compare/v1.1.1...v1.2.0) (2020-11-20) | ||
@@ -2,0 +9,0 @@ |
@@ -1,2 +0,2 @@ | ||
var fileDialog=function(){"use strict";class e extends Error{}class t extends e{}class n extends e{}const c={accept:"*",multiple:!1};return e=>{const{accept:s,multiple:l}={...c,...e},r=document.createElement("input");return r.type="file",r.multiple=l,r.accept=Array.isArray(s)?((e,t=",")=>e.join(t))(s):s,new Promise(((e,c)=>{r.onchange=()=>{s(),r.remove()};const s=()=>{const{files:s}=r;s?l?e(s):1===s.length?e(s[0]):c(new n):c(new t)};r.click()}))}}(); | ||
var fileDialog=function(e){"use strict";class t extends Error{}class n extends t{}class c extends t{}const l={accept:"*",multiple:!1};return e.fileDialog=e=>{const{accept:t,multiple:s}={...l,...e},r=document.createElement("input");return r.type="file",r.multiple=s,r.accept=Array.isArray(t)?((e,t=",")=>e.join(t))(t):t,new Promise(((e,t)=>{r.onchange=()=>{l(),r.remove()};const l=()=>{const{files:l}=r;l?s?e(l):1===l.length?e(l[0]):t(new c):t(new n)};r.click()}))},Object.defineProperty(e,"__esModule",{value:!0}),e}({}); | ||
//# sourceMappingURL=bundle.js.map |
@@ -1,3 +0,2 @@ | ||
import { fileDialog } from './file-dialog'; | ||
export default fileDialog; | ||
export { fileDialog } from './file-dialog'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,2 +0,2 @@ | ||
class e extends Error{}class t extends e{}class c extends e{}const n={accept:"*",multiple:!1};export default e=>{const{accept:s,multiple:l}={...n,...e},r=document.createElement("input");return r.type="file",r.multiple=l,r.accept=Array.isArray(s)?((e,t=",")=>e.join(t))(s):s,new Promise(((e,n)=>{r.onchange=()=>{s(),r.remove()};const s=()=>{const{files:s}=r;s?l?e(s):1===s.length?e(s[0]):n(new c):n(new t)};r.click()}))}; | ||
class e extends Error{}class t extends e{}class c extends e{}const n={accept:"*",multiple:!1},s=e=>{const{accept:s,multiple:l}={...n,...e},r=document.createElement("input");return r.type="file",r.multiple=l,r.accept=Array.isArray(s)?((e,t=",")=>e.join(t))(s):s,new Promise(((e,n)=>{r.onchange=()=>{s(),r.remove()};const s=()=>{const{files:s}=r;s?l?e(s):1===s.length?e(s[0]):n(new c):n(new t)};r.click()}))};export{s as fileDialog}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "file-select-dialog", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Call file select dialog programmatically", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
@@ -33,3 +33,3 @@ # file-select-dialog | ||
```ts | ||
import fileDialog from 'file-select-dialog' | ||
import { fileDialog } from 'file-select-dialog' | ||
``` | ||
@@ -36,0 +36,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15304
27