Skip to content

Commit

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

if (!(file.flags & LFS_F_INLINE)) {
// copy over anything after current branch
let orig = new File({
let orig = new LfsFile({
ctz: file.ctz,
flags: LFS_O_RDONLY,
pos: file.pos,
Expand Down Expand Up @@ -3055,7 +3055,7 @@ compaction_block: if (!doRelocate) {
}
}

class Config {
class LfsConfig {
constructor({
context = null,
readSize = 64,
Expand Down Expand Up @@ -3312,7 +3312,7 @@ class FileConfig {
}
}

class File {
class LfsFile {
constructor({
id = 1,
type = 0,
Expand All @@ -3339,4 +3339,4 @@ class File {
}
};

export { LittleFS, Config };
export { LittleFS, LfsConfig, LfsFile };
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.0",
"version": "1.0.1",
"description": "LittleFS partially ported over to pure JavaScript",
"main": "littlefs.js",
"dependencies": {
Expand Down

0 comments on commit 4c1185a

Please sign in to comment.