commit f184ecb06bee905bec6884fc11e6e4fe56c7a111 parent eb71c788acfdca2f229e7edb15570c32731b3eb0 Author: Sebastian <sebasjm@gmail.com> Date: Mon, 10 Oct 2022 14:54:00 -0300 pretty Diffstat:
5 files changed, 21 insertions(+), 13 deletions(-)
diff --git a/packages/taler-wallet-core/src/bank-api-client.ts b/packages/taler-wallet-core/src/bank-api-client.ts @@ -34,7 +34,10 @@ import { TalerErrorCode, } from "@gnu-taler/taler-util"; import { TalerError } from "./errors.js"; -import { HttpRequestLibrary, readSuccessResponseJsonOrThrow } from "./util/http.js"; +import { + HttpRequestLibrary, + readSuccessResponseJsonOrThrow, +} from "./util/http.js"; const logger = new Logger("bank-api-client.ts"); diff --git a/packages/taler-wallet-core/src/crypto/workers/synchronousWorkerWeb.ts b/packages/taler-wallet-core/src/crypto/workers/synchronousWorkerWeb.ts @@ -23,9 +23,7 @@ import { TalerCryptoInterfaceR, } from "../cryptoImplementation.js"; import { CryptoWorker } from "./cryptoWorkerInterface.js"; -import { - processRequestWithImpl, -} from "./worker-common.js"; +import { processRequestWithImpl } from "./worker-common.js"; const logger = new Logger("synchronousWorker.ts"); @@ -77,10 +75,7 @@ export class SynchronousCryptoWorker implements CryptoWorker { */ postMessage(msg: any): void { const handleRequest = async () => { - const responseMsg = await processRequestWithImpl( - msg, - this.cryptoImplR, - ); + const responseMsg = await processRequestWithImpl(msg, this.cryptoImplR); try { setTimeout(() => this.dispatchMessage(responseMsg), 0); } catch (e) { diff --git a/packages/taler-wallet-core/src/dbless.ts b/packages/taler-wallet-core/src/dbless.ts @@ -50,9 +50,20 @@ import { } from "@gnu-taler/taler-util"; import { TalerCryptoInterface } from "./crypto/cryptoImplementation.js"; import { DenominationRecord } from "./db.js"; -import { BankAccessApi, BankApi, BankServiceHandle } from "./bank-api-client.js"; -import { HttpRequestLibrary, readSuccessResponseJsonOrThrow } from "./util/http.js"; -import { getBankStatusUrl, getBankWithdrawalInfo, isWithdrawableDenom } from "./operations/withdraw.js"; +import { + BankAccessApi, + BankApi, + BankServiceHandle, +} from "./bank-api-client.js"; +import { + HttpRequestLibrary, + readSuccessResponseJsonOrThrow, +} from "./util/http.js"; +import { + getBankStatusUrl, + getBankWithdrawalInfo, + isWithdrawableDenom, +} from "./operations/withdraw.js"; import { ExchangeInfo } from "./operations/exchanges.js"; import { assembleRefreshRevealRequest } from "./operations/refresh.js"; diff --git a/packages/taler-wallet-core/src/operations/merchants.ts b/packages/taler-wallet-core/src/operations/merchants.ts @@ -40,7 +40,7 @@ export async function getMerchantInfo( return existingInfo; } -const configUrl = new URL("config", canonBaseUrl); + const configUrl = new URL("config", canonBaseUrl); const resp = await ws.http.get(configUrl.href); const configResp = await readSuccessResponseJsonOrThrow( diff --git a/packages/taler-wallet-core/src/operations/pay-merchant.ts b/packages/taler-wallet-core/src/operations/pay-merchant.ts @@ -1796,7 +1796,6 @@ export async function processPurchase( return processPurchaseQueryRefund(ws, proposalId, options); case PurchaseStatus.ProposalDownloadFailed: case PurchaseStatus.Paid: - case PurchaseStatus.AbortingWithRefund: case PurchaseStatus.RepurchaseDetected: return { type: OperationAttemptResultType.Finished,