Skip to content

Commit

Permalink
Add some const exports
Browse files Browse the repository at this point in the history
  • Loading branch information
makermelissa committed Apr 7, 2022
1 parent 4c1185a commit 33f9798
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions littlefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2232,6 +2232,8 @@ compaction_block: if (!doRelocate) {
}

fileOpencfg(file, path, flags, cfg) {
let err;

main_block: if (true) {
// deorphan if we haven't yet, needed at most once after poweron
if ((flags & LFS_O_WRONLY) == LFS_O_WRONLY) {
Expand All @@ -2241,7 +2243,6 @@ compaction_block: if (!doRelocate) {
}
}
// setup simple file details
let err;
file.cfg = cfg;
file.flags = flags;
file.pos = 0;
Expand Down Expand Up @@ -3339,4 +3340,4 @@ class LfsFile {
}
};

export { LittleFS, LfsConfig, LfsFile };
export { LittleFS, LfsConfig, LfsFile, LFS_O_RDONLY, LFS_O_WRONLY, LFS_O_RDWR, LFS_O_CREAT, LFS_O_EXCL, LFS_O_TRUNC, LFS_O_APPEND };
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
Expand Up @@ -3,7 +3,7 @@
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
"version": "1.0.1",
"version": "1.0.2",
"description": "LittleFS partially ported over to pure JavaScript",
"main": "littlefs.js",
"dependencies": {
Expand Down

0 comments on commit 33f9798

Please sign in to comment.