aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/anastasis-core/package.json12
-rw-r--r--packages/anastasis-webui/package.json8
-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
-rw-r--r--packages/pogen/package.json4
-rw-r--r--packages/taler-util/package.json10
-rw-r--r--packages/taler-wallet-cli/package.json14
-rw-r--r--packages/taler-wallet-cli/src/harness/harness.ts6
-rw-r--r--packages/taler-wallet-core/package.json35
-rw-r--r--packages/taler-wallet-embedded/package.json10
-rw-r--r--packages/taler-wallet-webextension/package.json14
-rw-r--r--packages/taler-wallet-webextension/src/wxBackend.ts4
13 files changed, 67 insertions, 65 deletions
diff --git a/packages/anastasis-core/package.json b/packages/anastasis-core/package.json
index a828e871b..a7a4e31e0 100644
--- a/packages/anastasis-core/package.json
+++ b/packages/anastasis-core/package.json
@@ -22,18 +22,18 @@
"@rollup/plugin-node-resolve": "^13.0.6",
"ava": "^3.15.0",
"rimraf": "^3.0.2",
- "rollup": "^2.59.0",
+ "rollup": "^2.63.0",
"rollup-plugin-sourcemaps": "^0.6.3",
- "source-map-support": "^0.5.19",
- "typescript": "^4.4.4"
+ "source-map-support": "^0.5.21",
+ "typescript": "^4.5.4"
},
"dependencies": {
"@gnu-taler/taler-util": "workspace:*",
"fetch-ponyfill": "^7.1.0",
- "fflate": "^0.6.0",
+ "fflate": "^0.7.2",
"hash-wasm": "^4.9.0",
- "node-fetch": "^3.0.0",
- "tslib": "^2.1.0"
+ "node-fetch": "^3.1.0",
+ "tslib": "^2.3.1"
},
"ava": {
"files": [
diff --git a/packages/anastasis-webui/package.json b/packages/anastasis-webui/package.json
index b96c0f351..71793550e 100644
--- a/packages/anastasis-webui/package.json
+++ b/packages/anastasis-webui/package.json
@@ -26,10 +26,10 @@
]
},
"dependencies": {
- "@gnu-taler/taler-util": "workspace:*",
"@gnu-taler/anastasis-core": "workspace:*",
+ "@gnu-taler/taler-util": "workspace:*",
"base64-inline-loader": "1.1.1",
- "date-fns": "2.25.0",
+ "date-fns": "2.28.0",
"jed": "1.1.1",
"preact": "^10.5.15",
"preact-render-to-string": "^5.1.19",
@@ -44,7 +44,7 @@
"@storybook/addon-links": "^6.3.12",
"@storybook/preact": "^6.3.12",
"@storybook/preset-scss": "^1.0.3",
- "@types/enzyme": "^3.10.10",
+ "@types/enzyme": "^3.10.11",
"@typescript-eslint/eslint-plugin": "^5.3.0",
"@typescript-eslint/parser": "^5.3.0",
"bulma": "^0.9.3",
@@ -59,6 +59,6 @@
"sass": "1.32.13",
"sass-loader": "^10",
"sirv-cli": "^1.0.14",
- "typescript": "^4.4.4"
+ "typescript": "^4.5.4"
}
}
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) {
diff --git a/packages/pogen/package.json b/packages/pogen/package.json
index 3d744f736..34c5e6a38 100644
--- a/packages/pogen/package.json
+++ b/packages/pogen/package.json
@@ -11,9 +11,9 @@
"compile": "tsc"
},
"devDependencies": {
- "typescript": "^4.1.3"
+ "typescript": "^4.5.4"
},
"dependencies": {
- "@types/node": "^14.14.22"
+ "@types/node": "^17.0.8"
}
}
diff --git a/packages/taler-util/package.json b/packages/taler-util/package.json
index f8918b48d..c61c721d8 100644
--- a/packages/taler-util/package.json
+++ b/packages/taler-util/package.json
@@ -32,17 +32,17 @@
"pretty": "prettier --write src"
},
"devDependencies": {
- "@types/node": "^14.14.22",
+ "@types/node": "^17.0.8",
"ava": "^3.15.0",
- "esbuild": "^0.9.2",
+ "esbuild": "^0.14.10",
"prettier": "^2.2.1",
"rimraf": "^3.0.2",
- "typescript": "^4.2.3"
+ "typescript": "^4.5.4"
},
"dependencies": {
- "big-integer": "^1.6.48",
+ "big-integer": "^1.6.51",
"jed": "^1.1.1",
- "tslib": "^2.1.0"
+ "tslib": "^2.3.1"
},
"ava": {
"files": [
diff --git a/packages/taler-wallet-cli/package.json b/packages/taler-wallet-cli/package.json
index 4e813fcb7..e38112bb1 100644
--- a/packages/taler-wallet-cli/package.json
+++ b/packages/taler-wallet-cli/package.json
@@ -34,21 +34,21 @@
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^11.1.0",
"@rollup/plugin-replace": "^2.3.4",
- "@types/node": "^14.14.22",
+ "@types/node": "^17.0.8",
"prettier": "^2.2.1",
"rimraf": "^3.0.2",
- "rollup": "^2.37.1",
+ "rollup": "^2.63.0",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-terser": "^7.0.2",
- "typedoc": "^0.20.16",
- "typescript": "^4.1.3"
+ "typedoc": "^0.22.10",
+ "typescript": "^4.5.4"
},
"dependencies": {
"@gnu-taler/taler-util": "workspace:*",
"@gnu-taler/taler-wallet-core": "workspace:*",
- "axios": "^0.21.1",
+ "axios": "^0.24.0",
"cancellationtoken": "^2.2.0",
- "source-map-support": "^0.5.19",
- "tslib": "^2.1.0"
+ "source-map-support": "^0.5.21",
+ "tslib": "^2.3.1"
}
} \ No newline at end of file
diff --git a/packages/taler-wallet-cli/src/harness/harness.ts b/packages/taler-wallet-cli/src/harness/harness.ts
index 37a192db6..0f2e61a3d 100644
--- a/packages/taler-wallet-cli/src/harness/harness.ts
+++ b/packages/taler-wallet-cli/src/harness/harness.ts
@@ -1609,7 +1609,7 @@ export namespace MerchantPrivateApi {
const baseUrl = merchantService.makeInstanceBaseUrl(instanceName);
let url = new URL("private/orders", baseUrl);
const resp = await axios.post(url.href, req, {
- headers: withAuthorization,
+ headers: withAuthorization as Record<string, string>,
});
return codecForPostOrderResponse().decode(resp.data);
}
@@ -1626,7 +1626,9 @@ export namespace MerchantPrivateApi {
if (query.sessionId) {
reqUrl.searchParams.set("session_id", query.sessionId);
}
- const resp = await axios.get(reqUrl.href, { headers: withAuthorization });
+ const resp = await axios.get(reqUrl.href, {
+ headers: withAuthorization as Record<string, string>,
+ });
return codecForMerchantOrderPrivateStatusResponse().decode(resp.data);
}
diff --git a/packages/taler-wallet-core/package.json b/packages/taler-wallet-core/package.json
index 9f0fafdd5..3598fcc8c 100644
--- a/packages/taler-wallet-core/package.json
+++ b/packages/taler-wallet-core/package.json
@@ -39,40 +39,39 @@
"devDependencies": {
"@ava/typescript": "^1.1.1",
"@gnu-taler/pogen": "workspace:*",
- "@microsoft/api-extractor": "^7.13.0",
"@typescript-eslint/eslint-plugin": "^4.14.0",
"@typescript-eslint/parser": "^4.14.0",
"ava": "^3.15.0",
- "eslint": "^7.18.0",
- "eslint-config-airbnb-typescript": "^12.0.0",
- "eslint-plugin-import": "^2.22.1",
- "eslint-plugin-jsx-a11y": "^6.4.1",
- "eslint-plugin-react": "^7.22.0",
- "eslint-plugin-react-hooks": "^4.2.0",
+ "eslint": "^8.6.0",
+ "eslint-config-airbnb-typescript": "^16.1.0",
+ "eslint-plugin-import": "^2.25.4",
+ "eslint-plugin-jsx-a11y": "^6.5.1",
+ "eslint-plugin-react": "^7.28.0",
+ "eslint-plugin-react-hooks": "^4.3.0",
"jed": "^1.1.1",
"nyc": "^15.1.0",
"po2json": "^0.4.5",
- "prettier": "^2.2.1",
+ "prettier": "^2.5.1",
"rimraf": "^3.0.2",
- "rollup": "^2.38",
+ "rollup": "^2.63.0",
"rollup-plugin-sourcemaps": "^0.6.3",
"source-map-resolve": "^0.6.0",
- "typedoc": "^0.20.16",
- "typescript": "^4.4.4"
+ "typedoc": "^0.22.10",
+ "typescript": "^4.5.4"
},
"dependencies": {
"@gnu-taler/idb-bridge": "workspace:*",
"@gnu-taler/taler-util": "workspace:*",
- "@types/node": "^14.14.22",
- "axios": "^0.21.1",
- "big-integer": "^1.6.48",
- "fflate": "^0.6.0",
- "source-map-support": "^0.5.19",
- "tslib": "^2.1.0"
+ "@types/node": "^17.0.8",
+ "axios": "^0.24.0",
+ "big-integer": "^1.6.51",
+ "fflate": "^0.7.2",
+ "source-map-support": "^0.5.21",
+ "tslib": "^2.3.1"
},
"ava": {
"files": [
"lib/**/*test.*"
]
}
-} \ No newline at end of file
+}
diff --git a/packages/taler-wallet-embedded/package.json b/packages/taler-wallet-embedded/package.json
index 632e21e5d..aed135912 100644
--- a/packages/taler-wallet-embedded/package.json
+++ b/packages/taler-wallet-embedded/package.json
@@ -31,17 +31,17 @@
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^11.1.0",
"@rollup/plugin-replace": "^2.3.4",
- "@types/node": "^14.14.22",
+ "@types/node": "^17.0.8",
"prettier": "^2.2.1",
"rimraf": "^3.0.2",
- "rollup": "^2.43.0",
+ "rollup": "^2.63.0",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-terser": "^7.0.2",
- "typescript": "^4.2.3"
+ "typescript": "^4.5.4"
},
"dependencies": {
- "@gnu-taler/taler-wallet-core": "workspace:*",
"@gnu-taler/taler-util": "workspace:*",
- "tslib": "^2.1.0"
+ "@gnu-taler/taler-wallet-core": "workspace:*",
+ "tslib": "^2.3.1"
}
}
diff --git a/packages/taler-wallet-webextension/package.json b/packages/taler-wallet-webextension/package.json
index 179cd94db..b0fb3f12d 100644
--- a/packages/taler-wallet-webextension/package.json
+++ b/packages/taler-wallet-webextension/package.json
@@ -20,12 +20,12 @@
"dependencies": {
"@gnu-taler/taler-util": "workspace:*",
"@gnu-taler/taler-wallet-core": "workspace:*",
- "date-fns": "^2.22.1",
+ "date-fns": "^2.28.0",
"history": "4.10.1",
"preact": "^10.5.13",
"preact-router": "^3.2.1",
"qrcode-generator": "^1.4.4",
- "tslib": "^2.1.0"
+ "tslib": "^2.3.1"
},
"devDependencies": {
"@babel/core": "7.13.16",
@@ -48,10 +48,10 @@
"@storybook/preact": "6.4.9",
"@testing-library/preact": "^2.0.1",
"@testing-library/preact-hooks": "^1.1.0",
- "@types/chrome": "^0.0.128",
+ "@types/chrome": "^0.0.174",
"@types/history": "^4.7.8",
"@types/mocha": "^9.0.0",
- "@types/node": "^14.14.22",
+ "@types/node": "^17.0.8",
"ava": "3.15.0",
"babel-loader": "^8.2.2",
"babel-plugin-transform-react-jsx": "^6.24.1",
@@ -60,13 +60,13 @@
"preact-cli": "^3.0.5",
"preact-render-to-string": "^5.1.19",
"rimraf": "^3.0.2",
- "rollup": "^2.37.1",
+ "rollup": "^2.63.0",
"rollup-plugin-css-only": "^3.1.0",
- "rollup-plugin-ignore": "^1.0.9",
+ "rollup-plugin-ignore": "^1.0.10",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-terser": "^7.0.2",
"storybook-dark-mode": "^1.0.8",
- "typescript": "^4.1.3"
+ "typescript": "^4.5.4"
},
"nyc": {
"include": [
diff --git a/packages/taler-wallet-webextension/src/wxBackend.ts b/packages/taler-wallet-webextension/src/wxBackend.ts
index df3115246..79280b927 100644
--- a/packages/taler-wallet-webextension/src/wxBackend.ts
+++ b/packages/taler-wallet-webextension/src/wxBackend.ts
@@ -239,8 +239,8 @@ function makeSyncWalletRedirect(
}
export type MessageFromBackend = {
- type: NotificationType
-}
+ type: NotificationType;
+};
async function reinitWallet(): Promise<void> {
if (currentWallet) {