[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated (7b2aa57b1 -> 4859883c9)
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated (7b2aa57b1 -> 4859883c9) |
Date: |
Wed, 24 May 2023 15:21:15 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a change to branch master
in repository wallet-core.
from 7b2aa57b1 -comment
new 9af63d8bc fix test
new 99d6d2acf fix test bank
new 28b8f2eaf fix test merchant backoffce
new 99e248d88 fix test merchant anastasis
new 4859883c9 fix cli tx id type
The 5 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
packages/anastasis-webui/dev.mjs | 5 ++---
packages/anastasis-webui/package.json | 2 +-
packages/anastasis-webui/{build.mjs => test.mjs} | 5 ++++-
packages/demobank-ui/dev.mjs | 3 +--
packages/demobank-ui/package.json | 2 +-
packages/demobank-ui/{build.mjs => test.mjs} | 7 +++++--
packages/exchange-backoffice-ui/dev.mjs | 5 ++---
packages/exchange-backoffice-ui/package.json | 2 +-
packages/exchange-backoffice-ui/{build.mjs => test.mjs} | 7 +++++--
packages/merchant-backoffice-ui/dev.mjs | 5 ++---
packages/merchant-backoffice-ui/package.json | 2 +-
.../merchant-backoffice-ui/src/hooks/reserve.test.ts | 8 ++++----
packages/merchant-backoffice-ui/{build.mjs => test.mjs} | 7 +++++--
packages/taler-wallet-cli/src/index.ts | 17 ++++++++++-------
14 files changed, 44 insertions(+), 33 deletions(-)
copy packages/anastasis-webui/{build.mjs => test.mjs} (85%)
copy packages/demobank-ui/{build.mjs => test.mjs} (82%)
copy packages/exchange-backoffice-ui/{build.mjs => test.mjs} (82%)
copy packages/merchant-backoffice-ui/{build.mjs => test.mjs} (82%)
diff --git a/packages/anastasis-webui/dev.mjs b/packages/anastasis-webui/dev.mjs
index f5f66c77f..32f380e86 100755
--- a/packages/anastasis-webui/dev.mjs
+++ b/packages/anastasis-webui/dev.mjs
@@ -16,10 +16,9 @@
*/
import { serve } from "@gnu-taler/web-util/node";
-import { initializeDev, getFilesInDirectory } from "@gnu-taler/web-util/build";
+import { initializeDev } from "@gnu-taler/web-util/build";
-const allTestFiles = getFilesInDirectory("src", /.test.tsx?$/);
-const devEntryPoints = ["src/stories.tsx", "src/index.ts", ...allTestFiles];
+const devEntryPoints = ["src/stories.tsx", "src/index.ts"];
const build = initializeDev({
source: {
diff --git a/packages/anastasis-webui/package.json
b/packages/anastasis-webui/package.json
index 69707b137..00afa9d41 100644
--- a/packages/anastasis-webui/package.json
+++ b/packages/anastasis-webui/package.json
@@ -10,7 +10,7 @@
"dev": "./dev.mjs",
"prepare": "pnpm compile",
"lint": "eslint 'src/**/*.{js,jsx,ts,tsx}'",
- "test": "mocha --require source-map-support/register --enable-source-maps
'dist/**/*test.js'",
+ "test": "./test.mjs && mocha --require source-map-support/register
--enable-source-maps 'dist/**/*test.js'",
"pretty": "prettier --write src"
},
"dependencies": {
diff --git a/packages/anastasis-webui/build.mjs
b/packages/anastasis-webui/test.mjs
similarity index 85%
copy from packages/anastasis-webui/build.mjs
copy to packages/anastasis-webui/test.mjs
index 9d49a63ee..746c053cb 100755
--- a/packages/anastasis-webui/build.mjs
+++ b/packages/anastasis-webui/test.mjs
@@ -15,10 +15,13 @@
GNU Anastasis; see the file COPYING. If not, see
<http://www.gnu.org/licenses/>
*/
import { build } from "@gnu-taler/web-util/build";
+import { getFilesInDirectory } from "@gnu-taler/web-util/build";
+
+const allTestFiles = getFilesInDirectory("src", /.test.tsx?$/);
await build({
source: {
- js: ["src/index.ts"],
+ js: allTestFiles,
assets: ["src/index.html"],
},
destination: "./dist/prod",
diff --git a/packages/demobank-ui/dev.mjs b/packages/demobank-ui/dev.mjs
index 1471df2f9..0c8289156 100755
--- a/packages/demobank-ui/dev.mjs
+++ b/packages/demobank-ui/dev.mjs
@@ -18,8 +18,7 @@
import { serve } from "@gnu-taler/web-util/node";
import { initializeDev, getFilesInDirectory } from "@gnu-taler/web-util/build";
-const allTestFiles = getFilesInDirectory("src", /.test.tsx?$/);
-const devEntryPoints = ["src/stories.tsx", "src/index.tsx", ...allTestFiles];
+const devEntryPoints = ["src/stories.tsx", "src/index.tsx"];
const build = initializeDev({
source: {
diff --git a/packages/demobank-ui/package.json
b/packages/demobank-ui/package.json
index f23173da4..d5dc6b1fc 100644
--- a/packages/demobank-ui/package.json
+++ b/packages/demobank-ui/package.json
@@ -8,7 +8,7 @@
"build": "./build.mjs",
"check": "tsc",
"compile": "tsc && ./build.mjs",
- "test": "mocha --require source-map-support/register 'dist/**/*.test.js'
'dist/**/test.js'",
+ "test": "./test.mjs && mocha --require source-map-support/register
'dist/test/**/*.test.js' 'dist/test/**/test.js'",
"lint": "eslint 'src/**/*.{js,jsx,ts,tsx}'",
"i18n:extract": "pogen extract",
"i18n:merge": "pogen merge",
diff --git a/packages/demobank-ui/build.mjs b/packages/demobank-ui/test.mjs
similarity index 82%
copy from packages/demobank-ui/build.mjs
copy to packages/demobank-ui/test.mjs
index 028f39b32..73daa6580 100755
--- a/packages/demobank-ui/build.mjs
+++ b/packages/demobank-ui/test.mjs
@@ -16,12 +16,15 @@
*/
import { build } from "@gnu-taler/web-util/build";
+import { getFilesInDirectory } from "@gnu-taler/web-util/build";
+
+const allTestFiles = getFilesInDirectory("src", /.test.tsx?$/);
await build({
source: {
- js: ["src/index.tsx"],
+ js: allTestFiles,
assets: ["src/index.html"],
},
- destination: "./dist/prod",
+ destination: "./dist/test",
css: "sass",
});
diff --git a/packages/exchange-backoffice-ui/dev.mjs
b/packages/exchange-backoffice-ui/dev.mjs
index ced8ee70b..9e2e379e2 100755
--- a/packages/exchange-backoffice-ui/dev.mjs
+++ b/packages/exchange-backoffice-ui/dev.mjs
@@ -16,10 +16,9 @@
*/
import { serve } from "@gnu-taler/web-util/node";
-import { initializeDev, getFilesInDirectory } from "@gnu-taler/web-util/build";
+import { initializeDev } from "@gnu-taler/web-util/build";
-const allTestFiles = getFilesInDirectory("./src", /.test.tsx?$/);
-const devEntryPoints = ["src/stories.tsx", "src/index.tsx", ...allTestFiles];
+const devEntryPoints = ["src/stories.tsx", "src/index.tsx"];
const build = initializeDev({
source: {
diff --git a/packages/exchange-backoffice-ui/package.json
b/packages/exchange-backoffice-ui/package.json
index f8d6e28bf..0de234049 100644
--- a/packages/exchange-backoffice-ui/package.json
+++ b/packages/exchange-backoffice-ui/package.json
@@ -10,7 +10,7 @@
"build": "./build.mjs",
"check": "tsc",
"compile": "tsc && ./build.mjs",
- "test": "mocha --require source-map-support/register 'dist/**/*.test.js'
'dist/**/test.js'",
+ "test": "./test.mjs && mocha --require source-map-support/register
'dist/test/**/*.test.js' 'dist/test/**/test.js'",
"lint": "eslint 'src/**/*.{js,jsx,ts,tsx}'",
"i18n:extract": "pogen extract",
"i18n:merge": "pogen merge",
diff --git a/packages/exchange-backoffice-ui/build.mjs
b/packages/exchange-backoffice-ui/test.mjs
similarity index 82%
copy from packages/exchange-backoffice-ui/build.mjs
copy to packages/exchange-backoffice-ui/test.mjs
index cac751620..8303cc6d9 100755
--- a/packages/exchange-backoffice-ui/build.mjs
+++ b/packages/exchange-backoffice-ui/test.mjs
@@ -16,12 +16,15 @@
*/
import { build } from "@gnu-taler/web-util/build";
+import { getFilesInDirectory } from "@gnu-taler/web-util/build";
+
+const allTestFiles = getFilesInDirectory("./src", /.test.tsx?$/);
await build({
source: {
- js: ["src/index.tsx"],
+ js: allTestFiles,
assets: ["src/index.html"],
},
- destination: "./dist/prod",
+ destination: "./dist/test",
css: "postcss",
});
diff --git a/packages/merchant-backoffice-ui/dev.mjs
b/packages/merchant-backoffice-ui/dev.mjs
index 4e4b2a7cf..a42311bad 100755
--- a/packages/merchant-backoffice-ui/dev.mjs
+++ b/packages/merchant-backoffice-ui/dev.mjs
@@ -16,10 +16,9 @@
*/
import { serve } from "@gnu-taler/web-util/node";
-import { initializeDev, getFilesInDirectory } from "@gnu-taler/web-util/build";
+import { initializeDev } from "@gnu-taler/web-util/build";
-const allTestFiles = getFilesInDirectory("src", /.test.tsx?$/);
-const devEntryPoints = ["src/stories.tsx", "src/index.tsx", ...allTestFiles];
+const devEntryPoints = ["src/stories.tsx", "src/index.tsx"];
const build = initializeDev({
source: {
diff --git a/packages/merchant-backoffice-ui/package.json
b/packages/merchant-backoffice-ui/package.json
index dc5668933..56621e783 100644
--- a/packages/merchant-backoffice-ui/package.json
+++ b/packages/merchant-backoffice-ui/package.json
@@ -9,7 +9,7 @@
"check": "tsc",
"compile": "tsc && ./build.mjs",
"dev": "preact watch --port ${PORT:=8080} --no-sw --no-esm",
- "test": "mocha --require source-map-support/register 'dist/**/*.test.js'
'dist/**/test.js'",
+ "test": "./test.mjs && mocha --require source-map-support/register
'dist/**/*.test.js' 'dist/**/test.js'",
"lint": "eslint 'src/**/*.{js,jsx,ts,tsx}'",
"i18n:extract": "pogen extract",
"i18n:merge": "pogen merge",
diff --git a/packages/merchant-backoffice-ui/src/hooks/reserve.test.ts
b/packages/merchant-backoffice-ui/src/hooks/reserve.test.ts
index 4068ff8bd..d2831ecff 100644
--- a/packages/merchant-backoffice-ui/src/hooks/reserve.test.ts
+++ b/packages/merchant-backoffice-ui/src/hooks/reserve.test.ts
@@ -245,7 +245,7 @@ describe("reserve api interaction with details", () => {
expect(query.ok).true;
if (!query.ok) return;
expect(query.data).deep.equals({
- payto_uri: "payto://here",
+ accounts: [{ payto_uri: "payto://here" }],
tips: [{ reason: "why?", tip_id: "id1", total_amount: "USD:10" }],
});
@@ -293,7 +293,7 @@ describe("reserve api interaction with details", () => {
if (!query.ok) return;
expect(query.data).deep.equals({
- payto_uri: "payto://here",
+ accounts: [{ payto_uri: "payto://here" }],
tips: [
{ reason: "why?", tip_id: "id1", total_amount: "USD:10" },
{ reason: "not", tip_id: "id2", total_amount: "USD:12" },
@@ -340,7 +340,7 @@ describe("reserve api interaction with details", () => {
expect(query.ok).true;
if (!query.ok) return;
expect(query.data).deep.equals({
- payto_uri: "payto://here",
+ accounts: [{ payto_uri: "payto://here" }],
tips: [{ reason: "why?", tip_id: "id1", total_amount: "USD:10" }],
});
@@ -386,7 +386,7 @@ describe("reserve api interaction with details", () => {
if (!query.ok) return;
expect(query.data).deep.equals({
- payto_uri: "payto://here",
+ accounts: [{ payto_uri: "payto://here" }],
tips: [
{ reason: "why?", tip_id: "id1", total_amount: "USD:10" },
{ reason: "not", tip_id: "id2", total_amount: "USD:12" },
diff --git a/packages/merchant-backoffice-ui/build.mjs
b/packages/merchant-backoffice-ui/test.mjs
similarity index 82%
copy from packages/merchant-backoffice-ui/build.mjs
copy to packages/merchant-backoffice-ui/test.mjs
index 10414fa7f..20a95fe61 100755
--- a/packages/merchant-backoffice-ui/build.mjs
+++ b/packages/merchant-backoffice-ui/test.mjs
@@ -16,12 +16,15 @@
*/
import { build } from "@gnu-taler/web-util/build";
+import { getFilesInDirectory } from "@gnu-taler/web-util/build";
+
+const allTestFiles = getFilesInDirectory("src", /.test.tsx?$/);
await build({
source: {
- js: ["src/index.tsx"],
+ js: allTestFiles,
assets: ["src/index.html"],
},
- destination: "./dist/prod",
+ destination: "./dist/test",
css: "sass",
});
diff --git a/packages/taler-wallet-cli/src/index.ts
b/packages/taler-wallet-cli/src/index.ts
index f713635a2..60db5abe8 100644
--- a/packages/taler-wallet-cli/src/index.ts
+++ b/packages/taler-wallet-cli/src/index.ts
@@ -39,6 +39,7 @@ import {
setGlobalLogLevelFromString,
summarizeTalerErrorDetail,
TalerUriAction,
+ TransactionIdStr,
WalletNotification,
} from "@gnu-taler/taler-util";
import { clk } from "@gnu-taler/taler-util/clk";
@@ -423,7 +424,7 @@ transactionsCli
.action(async (args) => {
await withWallet(args, async (wallet) => {
await wallet.client.call(WalletApiOperation.DeleteTransaction, {
- transactionId: args.deleteTransaction.transactionId,
+ transactionId: args.deleteTransaction.transactionId as
TransactionIdStr,
});
});
});
@@ -438,7 +439,8 @@ transactionsCli
.action(async (args) => {
await withWallet(args, async (wallet) => {
await wallet.client.call(WalletApiOperation.SuspendTransaction, {
- transactionId: args.suspendTransaction.transactionId,
+ transactionId: args.suspendTransaction
+ .transactionId as TransactionIdStr,
});
});
});
@@ -453,7 +455,8 @@ transactionsCli
.action(async (args) => {
await withWallet(args, async (wallet) => {
await wallet.client.call(WalletApiOperation.CancelAbortingTransaction, {
- transactionId: args.cancelAbortingTransaction.transactionId,
+ transactionId: args.cancelAbortingTransaction
+ .transactionId as TransactionIdStr,
});
});
});
@@ -468,7 +471,7 @@ transactionsCli
.action(async (args) => {
await withWallet(args, async (wallet) => {
await wallet.client.call(WalletApiOperation.ResumeTransaction, {
- transactionId: args.resumeTransaction.transactionId,
+ transactionId: args.resumeTransaction.transactionId as
TransactionIdStr,
});
});
});
@@ -502,7 +505,7 @@ transactionsCli
.action(async (args) => {
await withWallet(args, async (wallet) => {
await wallet.client.call(WalletApiOperation.AbortTransaction, {
- transactionId: args.abortTransaction.transactionId,
+ transactionId: args.abortTransaction.transactionId as TransactionIdStr,
});
});
});
@@ -529,7 +532,7 @@ transactionsCli
.action(async (args) => {
await withWallet(args, async (wallet) => {
await wallet.client.call(WalletApiOperation.RetryTransaction, {
- transactionId: args.retryTransaction.transactionId,
+ transactionId: args.retryTransaction.transactionId as TransactionIdStr,
});
});
});
@@ -1413,7 +1416,7 @@ advancedCli
.action(async (args) => {
await withWallet(args, async (wallet) => {
await wallet.client.call(WalletApiOperation.StartRefundQuery, {
- transactionId: args.queryRefund.transactionId,
+ transactionId: args.queryRefund.transactionId as TransactionIdStr,
});
});
});
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-wallet-core] branch master updated (7b2aa57b1 -> 4859883c9),
gnunet <=
- [taler-wallet-core] 02/05: fix test bank, gnunet, 2023/05/24
- [taler-wallet-core] 01/05: fix test, gnunet, 2023/05/24
- [taler-wallet-core] 05/05: fix cli tx id type, gnunet, 2023/05/24
- [taler-wallet-core] 03/05: fix test merchant backoffce, gnunet, 2023/05/24
- [taler-wallet-core] 04/05: fix test merchant anastasis, gnunet, 2023/05/24