Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

browser-fs-access

Package Overview
Dependencies
0
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.26.1 to 0.27.0

dist/file-save-57c6c58c.js

21

index.d.ts

@@ -5,7 +5,7 @@ /**

export interface CoreFileOptions {
/** Acceptable file extensions. Defaults to [""]. */
/** Acceptable file extensions. Defaults to `[""]`. */
extensions?: string[];
/** Suggested file description. Defaults to "". */
/** Suggested file description. Defaults to `""`. */
description?: string;
/** Acceptable MIME types. [] */
/** Acceptable MIME types. Defaults to `[]`. */
mimeTypes?: string[];

@@ -31,3 +31,3 @@ }

export interface FirstFileSaveOptions extends FirstCoreFileOptions {
/** Suggested file name. Defaults to "Untitled". */
/** Suggested file name. Defaults to `"Untitled"`. */
fileName?: string;

@@ -77,3 +77,3 @@ /**

extends FirstCoreFileOptions {
/** Allow multiple files to be selected. Defaults to false. */
/** Allow multiple files to be selected. Defaults to `false`. */
multiple?: M;

@@ -146,3 +146,3 @@ /**

* A potentially existing file handle for a file to save to. Defaults to
* null.
* `null`.
*/

@@ -152,5 +152,10 @@ existingHandle?: FileSystemHandle | null,

* Determines whether to throw (rather than open a new file save dialog)
* when existingHandle is no longer good. Defaults to false.
* when `existingHandle` is no longer good. Defaults to `false`.
*/
throwIfExistingHandleNotGood?: boolean | false
throwIfExistingHandleNotGood?: boolean | false,
/**
* A callback to be called when the file picker was shown (which only happens
* when no `existingHandle` is provided). Defaults to `null`.
*/
filePickerShown?: () => void | null
): Promise<FileSystemHandle | null>;

@@ -157,0 +162,0 @@

{
"name": "browser-fs-access",
"version": "0.26.1",
"version": "0.27.0",
"description": "File System Access API with legacy fallback in the browser.",

@@ -51,3 +51,3 @@ "type": "module",

"devDependencies": {
"eslint": "^8.12.0",
"eslint": "^8.13.0",
"eslint-config-google": "^0.14.0",

@@ -54,0 +54,0 @@ "eslint-config-prettier": "^8.5.0",

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc