diff --git a/package.json b/package.json index 3e9f8fb..9babd1c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ztimson/utils", - "version": "0.25.1", + "version": "0.25.2", "description": "Utility library", "author": "Zak Timson", "license": "MIT", diff --git a/src/cache.ts b/src/cache.ts index 9e9f9b8..15ad5c8 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -1,4 +1,4 @@ -import {Collection} from './database.ts'; +import {Collection} from './collection.ts'; import {deepCopy, JSONSanitize} from './objects.ts'; export type CacheOptions = { diff --git a/src/database.ts b/src/collection.ts similarity index 99% rename from src/database.ts rename to src/collection.ts index 78e494f..c458417 100644 --- a/src/database.ts +++ b/src/collection.ts @@ -34,7 +34,6 @@ export class Collection { } put(key: K, value: T): Promise { - debugger; return this.tx(this.collection, store => store.put(value, key)); } diff --git a/src/index.ts b/src/index.ts index 4655739..aeae0bf 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,7 +4,7 @@ export * from './aset'; export * from './cache'; export * from './color'; export * from './csv'; -export * from './database'; +export * from './collection'; export * from './files'; export * from './emitter'; export * from './errors'; diff --git a/tests/indexed-db.spec.ts b/tests/collection.spec.ts similarity index 100% rename from tests/indexed-db.spec.ts rename to tests/collection.spec.ts