From db59275b6b43f8fa7f36899ae81cb7139a2e80cb Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 16 Feb 2021 11:34:50 +0100 Subject: add more tests and fix various issues --- packages/idb-bridge/src/util/valueToKey.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'packages/idb-bridge/src/util/valueToKey.ts') diff --git a/packages/idb-bridge/src/util/valueToKey.ts b/packages/idb-bridge/src/util/valueToKey.ts index c3661f9a1..cfef779fe 100644 --- a/packages/idb-bridge/src/util/valueToKey.ts +++ b/packages/idb-bridge/src/util/valueToKey.ts @@ -18,7 +18,7 @@ import { IDBValidKey } from ".."; import { DataError } from "./errors"; // https://w3c.github.io/IndexedDB/#convert-a-value-to-a-input -function valueToKey( +export function valueToKey( input: any, seen?: Set, ): IDBValidKey | IDBValidKey[] { @@ -68,5 +68,3 @@ function valueToKey( throw new DataError(); } } - -export default valueToKey; -- cgit v1.2.3