aboutsummaryrefslogtreecommitdiff
path: root/packages/idb-bridge/src
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-01-05 15:38:43 +0100
committerFlorian Dold <florian@dold.me>2022-01-05 16:48:22 +0100
commitdc040ba41cd6d66fa63b33ed1adfc80f7e6a6861 (patch)
tree4a631b6a7cb879f75258e7b651eb7e371ee27a10 /packages/idb-bridge/src
parent6e9885441162586abeb64425568273e32e851677 (diff)
downloadwallet-core-dc040ba41cd6d66fa63b33ed1adfc80f7e6a6861.tar.xz
update dependencies to fix rollup issue
Diffstat (limited to 'packages/idb-bridge/src')
-rw-r--r--packages/idb-bridge/src/idbtypes.ts5
-rw-r--r--packages/idb-bridge/src/util/validateKeyPath.ts2
2 files changed, 4 insertions, 3 deletions
diff --git a/packages/idb-bridge/src/idbtypes.ts b/packages/idb-bridge/src/idbtypes.ts
index fe9003d6d..5fc58e88b 100644
--- a/packages/idb-bridge/src/idbtypes.ts
+++ b/packages/idb-bridge/src/idbtypes.ts
@@ -267,7 +267,7 @@ export interface IDBCursor {
/**
* Returns the IDBObjectStore or IDBIndex the cursor was opened from.
*/
- readonly source: IDBObjectStore | IDBIndex;
+ readonly source: IDBObjectStore | IDBIndex | IDBCursor;
/**
* Advances the cursor through the next count records in range.
*/
@@ -820,7 +820,7 @@ export interface IDBTransaction extends EventTarget {
/**
* If the transaction was aborted, returns the error (a DOMException) providing the reason.
*/
- readonly error: DOMException;
+ readonly error: DOMException | null;
/**
* Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.
*/
@@ -836,6 +836,7 @@ export interface IDBTransaction extends EventTarget {
* Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted.
*/
abort(): void;
+ commit(): void;
/**
* Returns an IDBObjectStore in the transaction's scope.
*/
diff --git a/packages/idb-bridge/src/util/validateKeyPath.ts b/packages/idb-bridge/src/util/validateKeyPath.ts
index 3bbe653b6..8c29c1d57 100644
--- a/packages/idb-bridge/src/util/validateKeyPath.ts
+++ b/packages/idb-bridge/src/util/validateKeyPath.ts
@@ -46,7 +46,7 @@ export const validateKeyPath = (
if (myKeyPath.length >= 1 && validIdentifierRegex.test(myKeyPath)) {
return;
}
- } catch (err) {
+ } catch (err: any) {
throw new SyntaxError(err.message);
}
if (myKeyPath.indexOf(" ") >= 0) {