Skip to content

Commit

Permalink
Changed options to pass through options
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Apr 14, 2024
1 parent f532d61 commit 4a6c848
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/IndexedDB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ export const IndexedDB = {
}
},

create({ lruCacheSize = 100, storeName = 'zenfs', idbFactory = globalThis.indexedDB }: IndexedDBOptions) {
const store = IndexedDBStore.create(storeName, idbFactory);
const fs = new AsyncStoreFS({ lruCacheSize, store });
create(options: IndexedDBOptions) {
const store = IndexedDBStore.create(options.storeName || 'zenfs', options.idbFactory);
const fs = new AsyncStoreFS({ ...options, store });
return fs;
},
} as const satisfies Backend;

0 comments on commit 4a6c848

Please sign in to comment.