From 4a6c8484acdd83531bfe5b094e6156c63ab30300 Mon Sep 17 00:00:00 2001 From: "Dr. Vortex" Date: Sun, 14 Apr 2024 18:15:40 -0500 Subject: [PATCH] Changed options to pass through options --- src/IndexedDB.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/IndexedDB.ts b/src/IndexedDB.ts index b2b7f14..cbd86da 100644 --- a/src/IndexedDB.ts +++ b/src/IndexedDB.ts @@ -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;