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

file-select-dialog

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-select-dialog - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

dist/util.d.ts

8

CHANGELOG.md

@@ -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 @@

2

dist/file-dialog.d.ts
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

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