aboutsummaryrefslogtreecommitdiff
path: root/packages/idb-bridge
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
parent6e9885441162586abeb64425568273e32e851677 (diff)
downloadwallet-core-dc040ba41cd6d66fa63b33ed1adfc80f7e6a6861.tar.xz
update dependencies to fix rollup issue
Diffstat (limited to 'packages/idb-bridge')
-rw-r--r--packages/idb-bridge/package.json8
-rw-r--r--packages/idb-bridge/src/idbtypes.ts5
-rw-r--r--packages/idb-bridge/src/util/validateKeyPath.ts2
3 files changed, 8 insertions, 7 deletions
diff --git a/packages/idb-bridge/package.json b/packages/idb-bridge/package.json
index 52bc872da..42cdea093 100644
--- a/packages/idb-bridge/package.json
+++ b/packages/idb-bridge/package.json
@@ -19,16 +19,16 @@
"@rollup/plugin-commonjs": "^17.1.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^11.2.0",
- "@types/node": "^14.14.22",
+ "@types/node": "^17.0.8",
"ava": "^3.15.0",
"esm": "^3.2.25",
"prettier": "^2.2.1",
"rimraf": "^3.0.2",
- "rollup": "^2.37.1",
- "typescript": "^4.1.3"
+ "rollup": "^2.63.0",
+ "typescript": "^4.5.4"
},
"dependencies": {
- "tslib": "^2.1.0"
+ "tslib": "^2.3.1"
},
"ava": {
"require": [
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) {