From 4c1185af49d353bc50665fb7f558d767d6a0de43 Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Wed, 6 Apr 2022 13:36:24 -0700 Subject: [PATCH] Fix exports --- littlefs.js | 8 ++++---- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/littlefs.js b/littlefs.js index a302977..dcc6890 100644 --- a/littlefs.js +++ b/littlefs.js @@ -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, @@ -3055,7 +3055,7 @@ compaction_block: if (!doRelocate) { } } -class Config { +class LfsConfig { constructor({ context = null, readSize = 64, @@ -3312,7 +3312,7 @@ class FileConfig { } } -class File { +class LfsFile { constructor({ id = 1, type = 0, @@ -3339,4 +3339,4 @@ class File { } }; -export { LittleFS, Config }; \ No newline at end of file +export { LittleFS, LfsConfig, LfsFile }; diff --git a/package-lock.json b/package-lock.json index e39003d..b701a8d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@adafruit/littlefs-pure-js", - "version": "1.0.0", + "version": "1.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@adafruit/littlefs-pure-js", - "version": "1.0.0", + "version": "1.0.1", "license": "MIT", "devDependencies": {} } diff --git a/package.json b/package.json index dfc49e5..6249530 100644 --- a/package.json +++ b/package.json @@ -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": {