From ffd2a62c3f7df94365980302fef3bc3376b48182 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 3 Aug 2020 13:00:48 +0530 Subject: modularize repo, use pnpm, improve typechecking --- packages/idb-bridge/src/MemoryBackend.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'packages/idb-bridge/src/MemoryBackend.ts') diff --git a/packages/idb-bridge/src/MemoryBackend.ts b/packages/idb-bridge/src/MemoryBackend.ts index 08103d722..c5fac41a9 100644 --- a/packages/idb-bridge/src/MemoryBackend.ts +++ b/packages/idb-bridge/src/MemoryBackend.ts @@ -40,7 +40,7 @@ import { Key, Value, KeyPath } from "./util/types"; import { StoreKeyResult, makeStoreKeyValue } from "./util/makeStoreKeyValue"; import getIndexKeys from "./util/getIndexKeys"; import openPromise from "./util/openPromise"; -import BridgeIDBKeyRange from "./BridgeIDBKeyRange"; +import { BridgeIDBKeyRange } from "./BridgeIDBKeyRange"; enum TransactionLevel { Disconnected = 0, @@ -863,9 +863,9 @@ export class MemoryBackend implements Backend { !db.txRestrictObjectStores.includes(objectStoreName) ) { throw Error( - `Not allowed to access store '${ - objectStoreName - }', transaction is over ${JSON.stringify(db.txRestrictObjectStores)}`, + `Not allowed to access store '${objectStoreName}', transaction is over ${JSON.stringify( + db.txRestrictObjectStores, + )}`, ); } if (typeof range !== "object") { @@ -986,7 +986,7 @@ export class MemoryBackend implements Backend { throw Error("db inconsistent: expected index entry missing"); } const newPrimaryKeys = existingRecord.primaryKeys.filter( - x => compareKeys(x, primaryKey) !== 0, + (x) => compareKeys(x, primaryKey) !== 0, ); if (newPrimaryKeys.length === 0) { index.modifiedData = indexData.without(indexKey); -- cgit v1.2.3