From d87f3c242c59fa347aa13d1c2e398638e09ed42f Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 23 Oct 2022 19:05:46 +0200 Subject: taler-wallet-embedded: tweak init response, rollup bundling, add test --- packages/taler-wallet-core/src/wallet.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'packages/taler-wallet-core') diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 584129c9c..de7f6f42c 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -84,6 +84,7 @@ import { ExchangeTosStatusDetails, FeeDescription, GetExchangeTosResult, + InitResponse, j2s, KnownBankAccounts, KnownBankAccountsInfo, @@ -415,6 +416,7 @@ async function runTaskLoop( ws.notify({ type: NotificationType.WaitingForRetry, numGivingLiveness, + numDue, numPending: pending.pendingOperations.length, }); // Wait until either the timeout, or we are notified (via the latch) @@ -434,6 +436,7 @@ async function runTaskLoop( }); ws.notify({ type: NotificationType.PendingOperationProcessed, + id: p.id, }); } } @@ -987,7 +990,10 @@ async function dispatchRequestInternal( await fillDefaults(ws); } await maybeInitDevMode(ws); - return {}; + const resp: InitResponse = { + versionInfo: getVersion(ws), + }; + return resp; } case WalletApiOperation.WithdrawTestkudos: { await withdrawTestBalance(ws, { -- cgit v1.2.3