file-select-dialog
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -0,1 +1,9 @@ | ||
# [1.1.0](https://github.com/TomokiMiyauci/file-select-dialog/compare/v1.0.0...v1.1.0) (2020-11-18) | ||
### Features | ||
* **file-dialog.ts:** accept string and string array ([5ae6df3](https://github.com/TomokiMiyauci/file-select-dialog/commit/5ae6df34d502b35597bc407ac5f7ee704385e931)) | ||
* **util.ts:** add parser for array to string ([551df7f](https://github.com/TomokiMiyauci/file-select-dialog/commit/551df7f7eb6034dafbe2286608d4548ce903d666)) | ||
# 1.0.0 (2020-11-18) | ||
@@ -2,0 +10,0 @@ |
export interface Parameters<T extends boolean = false> { | ||
accept: string; | ||
accept: string | string[]; | ||
multiple: T; | ||
@@ -4,0 +4,0 @@ } |
import { UnknownError, NotReceiveFileList } from './error'; | ||
import { joinArrayString } from './util'; | ||
const DEFAULT_PARAMETERS = { | ||
@@ -17,3 +18,3 @@ accept: '*', | ||
input.multiple = multiple; | ||
input.accept = accept; | ||
input.accept = Array.isArray(accept) ? joinArrayString(accept) : accept; | ||
const onChange = () => { | ||
@@ -20,0 +21,0 @@ resolver(); |
{ | ||
"name": "file-select-dialog", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Call file select dialog programmatically", | ||
@@ -10,6 +10,16 @@ "main": "dist/index.js", | ||
"private": false, | ||
"keywords": [ | ||
"file", | ||
"dialog", | ||
"file-dialog", | ||
"file-select-dialog", | ||
"file-selection-dialog", | ||
"browser", | ||
"file-browser", | ||
"filelist" | ||
], | ||
"scripts": { | ||
"build": "tsc", | ||
"lint": "eslint --ext .ts --ignore-path .gitignore .", | ||
"test": "jest", | ||
"test:unit": "jest", | ||
"semantic-release": "semantic-release", | ||
@@ -16,0 +26,0 @@ "prepublishOnly": "yarn build" |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
10682
20
72
1
54