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

browser-fs-access

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browser-fs-access - npm Package Compare versions

Comparing version 0.16.1 to 0.16.2

5

index.d.ts

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

2

package.json
{
"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

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