browser-fs-access
Advanced tools
Comparing version 0.16.1 to 0.16.2
@@ -32,3 +32,6 @@ /** | ||
}, | ||
handle?: FileSystemHandle | null | ||
/** A potentially existing file handle for a file to save to. Defaults to null. */ | ||
existingHandle?: FileSystemHandle | null, | ||
/** Determines whether to throw (rather than open a new file save dialog) when existingHandle is no longer good. Defaults to false. */ | ||
throwIfExistingHandleNotGood?: boolean | false | ||
): Promise<FileSystemHandle>; | ||
@@ -35,0 +38,0 @@ |
{ | ||
"name": "browser-fs-access", | ||
"version": "0.16.1", | ||
"version": "0.16.2", | ||
"description": "File System Access API with legacy fallback in the browser.", | ||
@@ -5,0 +5,0 @@ "browser": "./dist/index.js", |
@@ -120,5 +120,10 @@ # Browser-FS-Access | ||
// you receive from `fileOpen()` (this is non-standard). | ||
const handle = previouslyOpenedBlob.handle; | ||
const existingHandle = previouslyOpenedBlob.handle; | ||
await fileSave(someBlob, options, handle); | ||
// Optional flag to determine whether to throw (rather than open a new file | ||
// save dialog) when `existingHandle` is no longer good, for example, because | ||
// the underlying file was deleted. Defaults to `false`. | ||
const throwIfExistingHandleNotGood = true; | ||
await fileSave(someBlob, options, existingHandle, throwIfExistingHandleNotGood); | ||
``` | ||
@@ -125,0 +130,0 @@ |
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
26608
83
162