New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@jst_htet/file-picker

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jst_htet/file-picker - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

3

index.d.ts
export declare const pickFile: (options?: {
multiple: boolean;
}) => Promise<any>;
accept: string;
}) => any;

@@ -23,3 +23,3 @@ "use strict";

};
const pickFile = (options = { multiple: false }) => {
const pickFile = (options = { multiple: false, accept: "" }) => {
return new Promise((resolve, reject) => {

@@ -30,2 +30,5 @@ try {

input.multiple = options.multiple;
if (options.accept) {
input.accept = options.accept;
}
input.click();

@@ -32,0 +35,0 @@ input.addEventListener("change", (e) => {

{
"name": "@jst_htet/file-picker",
"version": "1.0.6",
"version": "1.0.7",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -19,5 +19,6 @@ const readFileAsDataUrl: (f: File) => Promise<string> = (f) => {

export const pickFile: (options?: { multiple: boolean }) => Promise<any> = (
options = { multiple: false }
) => {
export const pickFile: (options?: {
multiple: boolean;
accept: string;
}) => any = (options = { multiple: false, accept: "" }) => {
return new Promise((resolve, reject) => {

@@ -28,2 +29,5 @@ try {

input.multiple = options.multiple;
if (options.accept) {
input.accept = options.accept;
}
input.click();

@@ -30,0 +34,0 @@ input.addEventListener("change", (e) => {

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