Skip to content

Commit

Permalink
Export modern and legacy functions specifically
Browse files Browse the repository at this point in the history
  • Loading branch information
tomayac committed May 2, 2022
1 parent c013326 commit 617012a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "browser-fs-access",
"version": "0.29.4",
"version": "0.29.5",
"description": "File System Access API with legacy fallback in the browser.",
"type": "module",
"source": "./src/index.js",
Expand Down
9 changes: 9 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,13 @@
export { fileOpen } from './file-open.mjs';
export { directoryOpen } from './directory-open.mjs';
export { fileSave } from './file-save.mjs';

export { default as fileOpenModern } from './fs-access/file-open.mjs';
export { default as directoryOpenModern } from './fs-access/directory-open.mjs';
export { default as fileSaveModern } from './fs-access/file-save.mjs';

export { default as fileOpenLegacy } from './legacy/file-open.mjs';
export { default as directoryOpenLegacy } from './legacy/directory-open.mjs';
export { default as fileSaveLegacy } from './legacy/file-save.mjs';

export { default as supported } from './supported.mjs';

0 comments on commit 617012a

Please sign in to comment.