[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: auto-format
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: auto-format |
Date: |
Tue, 01 Sep 2020 15:37:19 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new bb369f2e auto-format
bb369f2e is described below
commit bb369f2e2ab7838751ce9aae2e23622be1391586
Author: Florian Dold <florian.dold@gmail.com>
AuthorDate: Tue Sep 1 19:07:14 2020 +0530
auto-format
---
packages/taler-integrationtests/src/helpers.ts | 3 --
.../taler-integrationtests/src/test-bank-api.ts | 16 ++++++++-
.../src/test-exchange-management.ts | 6 +++-
.../src/test-merchant-longpolling.ts | 2 +-
.../taler-integrationtests/src/test-pay-paid.ts | 12 ++++---
.../src/test-payment-claim.ts | 3 +-
.../src/test-payment-fault.ts | 6 +++-
.../src/test-payment-idempotency.ts | 4 ++-
.../taler-integrationtests/src/test-payment.ts | 11 +++++--
.../src/test-paywall-flow.ts | 6 ++--
.../taler-integrationtests/src/test-refund-auto.ts | 6 ++--
.../src/test-refund-incremental.ts | 7 +++-
.../taler-integrationtests/src/test-timetravel.ts | 9 ++---
.../src/test-wallettesting.ts | 5 +--
.../src/test-withdrawal-bank-integrated.ts | 6 +++-
packages/taler-wallet-core/src/TalerErrorCode.ts | 3 --
.../src/crypto/workers/cryptoApi.ts | 5 +--
.../taler-wallet-core/src/headless/NodeHttpLib.ts | 3 +-
packages/taler-wallet-core/src/i18n/index.ts | 7 ++--
packages/taler-wallet-core/src/index.ts | 2 +-
.../taler-wallet-core/src/operations/refund.ts | 7 +++-
packages/taler-wallet-core/src/operations/state.ts | 2 +-
.../taler-wallet-core/src/operations/testing.ts | 11 +++++--
.../src/operations/transactions.ts | 2 +-
.../taler-wallet-core/src/operations/withdraw.ts | 6 +++-
packages/taler-wallet-core/src/types/dbTypes.ts | 2 +-
packages/taler-wallet-core/src/types/talerTypes.ts | 38 +++++++++++++---------
.../taler-wallet-core/src/types/walletTypes.ts | 10 ++++--
.../taler-wallet-core/src/util/RequestThrottler.ts | 2 +-
packages/taler-wallet-core/src/util/http.ts | 2 +-
packages/taler-wallet-core/src/util/query.ts | 1 -
packages/taler-wallet-core/src/wallet.ts | 1 -
32 files changed, 129 insertions(+), 77 deletions(-)
diff --git a/packages/taler-integrationtests/src/helpers.ts
b/packages/taler-integrationtests/src/helpers.ts
index 515ae54b..d47d5f7b 100644
--- a/packages/taler-integrationtests/src/helpers.ts
+++ b/packages/taler-integrationtests/src/helpers.ts
@@ -257,7 +257,6 @@ export async function startWithdrawViaBank(
t.assertTrue(r2.type === "response");
}
-
/**
* Withdraw balance.
*/
@@ -270,7 +269,6 @@ export async function withdrawViaBank(
amount: AmountString;
},
): Promise<void> {
-
const { wallet } = p;
await startWithdrawViaBank(t, p);
@@ -282,4 +280,3 @@ export async function withdrawViaBank(
const balApiResp = await wallet.apiRequest("getBalances", {});
t.assertTrue(balApiResp.type === "response");
}
-
diff --git a/packages/taler-integrationtests/src/test-bank-api.ts
b/packages/taler-integrationtests/src/test-bank-api.ts
index 1c233a55..1088ff6e 100644
--- a/packages/taler-integrationtests/src/test-bank-api.ts
+++ b/packages/taler-integrationtests/src/test-bank-api.ts
@@ -17,7 +17,21 @@
/**
* Imports.
*/
-import { runTest, GlobalTestState, MerchantPrivateApi, WalletCli,
defaultCoinConfig, ExchangeService, setupDb, BankService, MerchantService,
BankApi, BankUser, BankAccessApi, CreditDebitIndicator } from "./harness";
+import {
+ runTest,
+ GlobalTestState,
+ MerchantPrivateApi,
+ WalletCli,
+ defaultCoinConfig,
+ ExchangeService,
+ setupDb,
+ BankService,
+ MerchantService,
+ BankApi,
+ BankUser,
+ BankAccessApi,
+ CreditDebitIndicator,
+} from "./harness";
import { createSimpleTestkudosEnvironment, withdrawViaBank } from "./helpers";
import { createEddsaKeyPair, encodeCrock } from "taler-wallet-core";
diff --git a/packages/taler-integrationtests/src/test-exchange-management.ts
b/packages/taler-integrationtests/src/test-exchange-management.ts
index 7da26097..81d2efb7 100644
--- a/packages/taler-integrationtests/src/test-exchange-management.ts
+++ b/packages/taler-integrationtests/src/test-exchange-management.ts
@@ -234,7 +234,11 @@ runTest(async (t: GlobalTestState) => {
// Create withdrawal operation
const user = await BankApi.createRandomBankUser(bank);
- const wop = await BankAccessApi.createWithdrawalOperation(bank, user,
"TESTKUDOS:10");
+ const wop = await BankAccessApi.createWithdrawalOperation(
+ bank,
+ user,
+ "TESTKUDOS:10",
+ );
// Hand it to the wallet
diff --git a/packages/taler-integrationtests/src/test-merchant-longpolling.ts
b/packages/taler-integrationtests/src/test-merchant-longpolling.ts
index 1470cadf..5189d247 100644
--- a/packages/taler-integrationtests/src/test-merchant-longpolling.ts
+++ b/packages/taler-integrationtests/src/test-merchant-longpolling.ts
@@ -47,7 +47,7 @@ runTest(async (t: GlobalTestState) => {
/**
* =========================================================================
* Create an order and let the wallet pay under a session ID
- *
+ *
* We check along the way that the JSON response to /orders/{order_id}
* returns the right thing.
* =========================================================================
diff --git a/packages/taler-integrationtests/src/test-pay-paid.ts
b/packages/taler-integrationtests/src/test-pay-paid.ts
index eb58fce3..61e8ce80 100644
--- a/packages/taler-integrationtests/src/test-pay-paid.ts
+++ b/packages/taler-integrationtests/src/test-pay-paid.ts
@@ -18,7 +18,11 @@
* Imports.
*/
import { runTest, GlobalTestState, MerchantPrivateApi } from "./harness";
-import { createSimpleTestkudosEnvironment, withdrawViaBank,
createFaultInjectedMerchantTestkudosEnvironment } from "./helpers";
+import {
+ createSimpleTestkudosEnvironment,
+ withdrawViaBank,
+ createFaultInjectedMerchantTestkudosEnvironment,
+} from "./helpers";
import {
PreparePayResultType,
codecForMerchantOrderStatusUnpaid,
@@ -48,7 +52,7 @@ runTest(async (t: GlobalTestState) => {
/**
* =========================================================================
* Create an order and let the wallet pay under a session ID
- *
+ *
* We check along the way that the JSON response to /orders/{order_id}
* returns the right thing.
* =========================================================================
@@ -64,7 +68,6 @@ runTest(async (t: GlobalTestState) => {
},
});
-
let orderStatus = await MerchantPrivateApi.queryPrivateOrderStatus(merchant,
{
orderId: orderResp.order_id,
sessionId: "mysession-one",
@@ -159,7 +162,7 @@ runTest(async (t: GlobalTestState) => {
} else if (url.pathname.endsWith("/paid")) {
numPaidRequested++;
}
- }
+ },
});
// Pay with new taler://pay URI, which should
@@ -175,5 +178,4 @@ runTest(async (t: GlobalTestState) => {
// Make sure the wallet is actually doing the replay properly.
t.assertTrue(numPaidRequested == 1);
t.assertTrue(numPayRequested == 0);
-
});
diff --git a/packages/taler-integrationtests/src/test-payment-claim.ts
b/packages/taler-integrationtests/src/test-payment-claim.ts
index 3755394f..6aed7e9e 100644
--- a/packages/taler-integrationtests/src/test-payment-claim.ts
+++ b/packages/taler-integrationtests/src/test-payment-claim.ts
@@ -102,8 +102,7 @@ runTest(async (t: GlobalTestState) => {
});
t.assertTrue(
- err.operationError.code ===
- TalerErrorCode.WALLET_ORDER_ALREADY_CLAIMED,
+ err.operationError.code === TalerErrorCode.WALLET_ORDER_ALREADY_CLAIMED,
);
await t.shutdown();
diff --git a/packages/taler-integrationtests/src/test-payment-fault.ts
b/packages/taler-integrationtests/src/test-payment-fault.ts
index 85c05457..a29c6237 100644
--- a/packages/taler-integrationtests/src/test-payment-fault.ts
+++ b/packages/taler-integrationtests/src/test-payment-fault.ts
@@ -117,7 +117,11 @@ runTest(async (t: GlobalTestState) => {
// Create withdrawal operation
const user = await BankApi.createRandomBankUser(bank);
- const wop = await BankAccessApi.createWithdrawalOperation(bank, user,
"TESTKUDOS:20");
+ const wop = await BankAccessApi.createWithdrawalOperation(
+ bank,
+ user,
+ "TESTKUDOS:20",
+ );
// Hand it to the wallet
diff --git a/packages/taler-integrationtests/src/test-payment-idempotency.ts
b/packages/taler-integrationtests/src/test-payment-idempotency.ts
index 6c75de6b..85be04d5 100644
--- a/packages/taler-integrationtests/src/test-payment-idempotency.ts
+++ b/packages/taler-integrationtests/src/test-payment-idempotency.ts
@@ -94,7 +94,9 @@ runTest(async (t: GlobalTestState) => {
talerPayUri,
});
- t.assertTrue(preparePayResultAfter.status ===
PreparePayResultType.AlreadyConfirmed);
+ t.assertTrue(
+ preparePayResultAfter.status === PreparePayResultType.AlreadyConfirmed,
+ );
t.assertTrue(preparePayResultAfter.paid === true);
await t.shutdown();
diff --git a/packages/taler-integrationtests/src/test-payment.ts
b/packages/taler-integrationtests/src/test-payment.ts
index d2401e07..a099e9f2 100644
--- a/packages/taler-integrationtests/src/test-payment.ts
+++ b/packages/taler-integrationtests/src/test-payment.ts
@@ -17,7 +17,12 @@
/**
* Imports.
*/
-import { runTest, GlobalTestState, MerchantPrivateApi, WalletCli } from
"./harness";
+import {
+ runTest,
+ GlobalTestState,
+ MerchantPrivateApi,
+ WalletCli,
+} from "./harness";
import { createSimpleTestkudosEnvironment, withdrawViaBank } from "./helpers";
import { PreparePayResultType } from "taler-wallet-core";
@@ -60,7 +65,9 @@ runTest(async (t: GlobalTestState) => {
talerPayUri: orderStatus.taler_pay_uri,
});
- t.assertTrue(preparePayResult.status ===
PreparePayResultType.PaymentPossible);
+ t.assertTrue(
+ preparePayResult.status === PreparePayResultType.PaymentPossible,
+ );
const r2 = await wallet.apiRequest("confirmPay", {
// FIXME: should be validated, don't cast!
diff --git a/packages/taler-integrationtests/src/test-paywall-flow.ts
b/packages/taler-integrationtests/src/test-paywall-flow.ts
index c4c5784e..350a60dd 100644
--- a/packages/taler-integrationtests/src/test-paywall-flow.ts
+++ b/packages/taler-integrationtests/src/test-paywall-flow.ts
@@ -46,7 +46,7 @@ runTest(async (t: GlobalTestState) => {
/**
* =========================================================================
* Create an order and let the wallet pay under a session ID
- *
+ *
* We check along the way that the JSON response to /orders/{order_id}
* returns the right thing.
* =========================================================================
@@ -220,9 +220,7 @@ runTest(async (t: GlobalTestState) => {
});
if (publicOrderStatusResp.status != 402) {
- throw Error(
- `expected status 402, but got ${publicOrderStatusResp.status}`,
- );
+ throw Error(`expected status 402, but got
${publicOrderStatusResp.status}`);
}
pubUnpaidStatus = codecForMerchantOrderStatusUnpaid().decode(
diff --git a/packages/taler-integrationtests/src/test-refund-auto.ts
b/packages/taler-integrationtests/src/test-refund-auto.ts
index ed80c1c3..cd688a2b 100644
--- a/packages/taler-integrationtests/src/test-refund-auto.ts
+++ b/packages/taler-integrationtests/src/test-refund-auto.ts
@@ -46,7 +46,7 @@ runTest(async (t: GlobalTestState) => {
fulfillment_url: "taler://fulfillment-success/thx",
auto_refund: {
d_ms: 3000,
- }
+ },
},
});
@@ -88,8 +88,8 @@ runTest(async (t: GlobalTestState) => {
// The wallet should now automatically pick up the refund.
await wallet.runUntilDone();
-
- const transactions = await wallet.getTransactions()
+
+ const transactions = await wallet.getTransactions();
console.log(JSON.stringify(transactions, undefined, 2));
const transactionTypes = transactions.transactions.map((x) => x.type);
diff --git a/packages/taler-integrationtests/src/test-refund-incremental.ts
b/packages/taler-integrationtests/src/test-refund-incremental.ts
index c3d2b783..e823b40a 100644
--- a/packages/taler-integrationtests/src/test-refund-incremental.ts
+++ b/packages/taler-integrationtests/src/test-refund-incremental.ts
@@ -17,7 +17,12 @@
/**
* Imports.
*/
-import { runTest, GlobalTestState, delayMs, MerchantPrivateApi } from
"./harness";
+import {
+ runTest,
+ GlobalTestState,
+ delayMs,
+ MerchantPrivateApi,
+} from "./harness";
import { createSimpleTestkudosEnvironment, withdrawViaBank } from "./helpers";
/**
diff --git a/packages/taler-integrationtests/src/test-timetravel.ts
b/packages/taler-integrationtests/src/test-timetravel.ts
index 086606b9..b25720c1 100644
--- a/packages/taler-integrationtests/src/test-timetravel.ts
+++ b/packages/taler-integrationtests/src/test-timetravel.ts
@@ -17,18 +17,13 @@
/**
* Imports.
*/
-import {
- runTest,
- GlobalTestState,
- MerchantPrivateApi,
- WalletCli,
-} from "./harness";
+import { runTest, GlobalTestState } from "./harness";
import {
createSimpleTestkudosEnvironment,
withdrawViaBank,
startWithdrawViaBank,
} from "./helpers";
-import { PreparePayResultType, durationMin, Duration, TransactionType } from
"taler-wallet-core";
+import { Duration, TransactionType } from "taler-wallet-core";
/**
* Basic time travel test.
diff --git a/packages/taler-integrationtests/src/test-wallettesting.ts
b/packages/taler-integrationtests/src/test-wallettesting.ts
index 5abfcfcd..a6014a88 100644
--- a/packages/taler-integrationtests/src/test-wallettesting.ts
+++ b/packages/taler-integrationtests/src/test-wallettesting.ts
@@ -81,10 +81,7 @@ runTest(async (t: GlobalTestState) => {
console.log(JSON.stringify(txns, undefined, 2));
txTypes = txns.transactions.map((x) => x.type);
- t.assertDeepEqual(txTypes, [
- "withdrawal",
- "payment",
- ]);
+ t.assertDeepEqual(txTypes, ["withdrawal", "payment"]);
await t.shutdown();
});
diff --git
a/packages/taler-integrationtests/src/test-withdrawal-bank-integrated.ts
b/packages/taler-integrationtests/src/test-withdrawal-bank-integrated.ts
index f2593c80..d54309b3 100644
--- a/packages/taler-integrationtests/src/test-withdrawal-bank-integrated.ts
+++ b/packages/taler-integrationtests/src/test-withdrawal-bank-integrated.ts
@@ -32,7 +32,11 @@ runTest(async (t: GlobalTestState) => {
// Create a withdrawal operation
const user = await BankApi.createRandomBankUser(bank);
- const wop = await BankAccessApi.createWithdrawalOperation(bank, user,
"TESTKUDOS:10");
+ const wop = await BankAccessApi.createWithdrawalOperation(
+ bank,
+ user,
+ "TESTKUDOS:10",
+ );
// Hand it to the wallet
diff --git a/packages/taler-wallet-core/src/TalerErrorCode.ts
b/packages/taler-wallet-core/src/TalerErrorCode.ts
index a4c4b5a6..8a020b9d 100644
--- a/packages/taler-wallet-core/src/TalerErrorCode.ts
+++ b/packages/taler-wallet-core/src/TalerErrorCode.ts
@@ -22,8 +22,6 @@
*/
export enum TalerErrorCode {
-
-
/**
* Special code to indicate no error (or no "code" present).
* Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0).
@@ -3278,5 +3276,4 @@ export enum TalerErrorCode {
* (A value of 0 indicates that the error is generated client-side).
*/
END = 9999,
-
}
diff --git a/packages/taler-wallet-core/src/crypto/workers/cryptoApi.ts
b/packages/taler-wallet-core/src/crypto/workers/cryptoApi.ts
index 7d322877..44de6b67 100644
--- a/packages/taler-wallet-core/src/crypto/workers/cryptoApi.ts
+++ b/packages/taler-wallet-core/src/crypto/workers/cryptoApi.ts
@@ -203,10 +203,7 @@ export class CryptoApi {
handleWorkerError(ws: WorkerState, e: any): void {
if (ws.currentWorkItem) {
- logger.error(
- `error in worker during ${ws.currentWorkItem.operation}`,
- e,
- );
+ logger.error(`error in worker during ${ws.currentWorkItem.operation}`,
e);
} else {
logger.error("error in worker", e);
}
diff --git a/packages/taler-wallet-core/src/headless/NodeHttpLib.ts
b/packages/taler-wallet-core/src/headless/NodeHttpLib.ts
index 62ab9caf..4fefb5ae 100644
--- a/packages/taler-wallet-core/src/headless/NodeHttpLib.ts
+++ b/packages/taler-wallet-core/src/headless/NodeHttpLib.ts
@@ -63,7 +63,8 @@ export class NodeHttpLib implements HttpRequestLibrary {
requestMethod: method,
requestUrl: url,
throttleStats: this.throttle.getThrottleStats(url),
- });
+ },
+ );
}
let timeout: number | undefined;
if (typeof opt?.timeout?.d_ms === "number") {
diff --git a/packages/taler-wallet-core/src/i18n/index.ts
b/packages/taler-wallet-core/src/i18n/index.ts
index b8788115..a820eaeb 100644
--- a/packages/taler-wallet-core/src/i18n/index.ts
+++ b/packages/taler-wallet-core/src/i18n/index.ts
@@ -85,6 +85,9 @@ export function str(stringSeq: TemplateStringsArray,
...values: any[]): string {
* from a JSON object. Fall back to the default language of the JSON object
* if no match exists.
*/
-export function getJsonI18n<K extends string>(obj: Record<K, string>, key: K):
string {
+export function getJsonI18n<K extends string>(
+ obj: Record<K, string>,
+ key: K,
+): string {
return obj[key];
-}
\ No newline at end of file
+}
diff --git a/packages/taler-wallet-core/src/index.ts
b/packages/taler-wallet-core/src/index.ts
index 193152ab..8d5d46b4 100644
--- a/packages/taler-wallet-core/src/index.ts
+++ b/packages/taler-wallet-core/src/index.ts
@@ -63,4 +63,4 @@ export * from "./util/time";
export * from "./types/talerTypes";
export * from "./types/walletTypes";
export * from "./types/notifications";
-export * from "./types/transactions"
+export * from "./types/transactions";
diff --git a/packages/taler-wallet-core/src/operations/refund.ts
b/packages/taler-wallet-core/src/operations/refund.ts
index 2c7427c0..787d2bb4 100644
--- a/packages/taler-wallet-core/src/operations/refund.ts
+++ b/packages/taler-wallet-core/src/operations/refund.ts
@@ -260,7 +260,12 @@ async function acceptRefunds(
const refreshCoinsPubs = Object.values(refreshCoinsMap);
if (refreshCoinsPubs.length > 0) {
- await createRefreshGroup(ws, tx, refreshCoinsPubs,
RefreshReason.Refund);
+ await createRefreshGroup(
+ ws,
+ tx,
+ refreshCoinsPubs,
+ RefreshReason.Refund,
+ );
}
// Are we done with querying yet, or do we need to do another round
diff --git a/packages/taler-wallet-core/src/operations/state.ts
b/packages/taler-wallet-core/src/operations/state.ts
index 131e9083..c4d5b38f 100644
--- a/packages/taler-wallet-core/src/operations/state.ts
+++ b/packages/taler-wallet-core/src/operations/state.ts
@@ -82,7 +82,7 @@ export class InternalWalletState {
*/
async runSequentialized<T>(tokens: string[], f: () => Promise<T>) {
// Make sure locks are always acquired in the same order
- tokens = [... tokens].sort();
+ tokens = [...tokens].sort();
for (const token of tokens) {
if (this.resourceLocks.has(token)) {
diff --git a/packages/taler-wallet-core/src/operations/testing.ts
b/packages/taler-wallet-core/src/operations/testing.ts
index f1b2d98f..0a83773a 100644
--- a/packages/taler-wallet-core/src/operations/testing.ts
+++ b/packages/taler-wallet-core/src/operations/testing.ts
@@ -33,7 +33,11 @@ import { Wallet } from "../wallet";
import { Amounts } from "../util/amounts";
import { NodeHttpLib } from "../headless/NodeHttpLib";
import { getDefaultNodeWallet } from "../headless/helpers";
-import { TestPayArgs, PreparePayResultType, IntegrationTestArgs } from
"../types/walletTypes";
+import {
+ TestPayArgs,
+ PreparePayResultType,
+ IntegrationTestArgs,
+} from "../types/walletTypes";
const logger = new Logger("operations/testing.ts");
@@ -410,7 +414,10 @@ export async function testPay(
args: TestPayArgs,
) {
logger.trace("creating order");
- const merchant = { apikey: args.merchantApiKey, baseUrl:
args.merchantBaseUrl };
+ const merchant = {
+ apikey: args.merchantApiKey,
+ baseUrl: args.merchantBaseUrl,
+ };
const orderResp = await createOrder(
http,
merchant,
diff --git a/packages/taler-wallet-core/src/operations/transactions.ts
b/packages/taler-wallet-core/src/operations/transactions.ts
index 3115b950..cc569fd2 100644
--- a/packages/taler-wallet-core/src/operations/transactions.ts
+++ b/packages/taler-wallet-core/src/operations/transactions.ts
@@ -165,7 +165,7 @@ export async function getTransactions(
TransactionType.Withdrawal,
wsr.withdrawalGroupId,
),
- ...(wsr.lastError ? { error: wsr.lastError} : {}),
+ ...(wsr.lastError ? { error: wsr.lastError } : {}),
});
}
break;
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts
b/packages/taler-wallet-core/src/operations/withdraw.ts
index 2ab1ea52..c68f1521 100644
--- a/packages/taler-wallet-core/src/operations/withdraw.ts
+++ b/packages/taler-wallet-core/src/operations/withdraw.ts
@@ -48,7 +48,11 @@ import { updateExchangeFromUrl, getExchangeTrust } from
"./exchanges";
import { WALLET_EXCHANGE_PROTOCOL_VERSION } from "./versions";
import * as LibtoolVersion from "../util/libtoolVersion";
-import { guardOperationException, makeErrorDetails, OperationFailedError }
from "./errors";
+import {
+ guardOperationException,
+ makeErrorDetails,
+ OperationFailedError,
+} from "./errors";
import { NotificationType } from "../types/notifications";
import {
getTimestampNow,
diff --git a/packages/taler-wallet-core/src/types/dbTypes.ts
b/packages/taler-wallet-core/src/types/dbTypes.ts
index 28842398..148ec8c3 100644
--- a/packages/taler-wallet-core/src/types/dbTypes.ts
+++ b/packages/taler-wallet-core/src/types/dbTypes.ts
@@ -1274,7 +1274,7 @@ export interface WalletContractData {
/**
* Fulfillment URL, or the empty string if the order has no fulfillment URL.
- *
+ *
* Stored as a non-nullable string as we use this field for IndexedDB
indexing.
*/
fulfillmentUrl: string;
diff --git a/packages/taler-wallet-core/src/types/talerTypes.ts
b/packages/taler-wallet-core/src/types/talerTypes.ts
index 14e1b575..b9e7fae4 100644
--- a/packages/taler-wallet-core/src/types/talerTypes.ts
+++ b/packages/taler-wallet-core/src/types/talerTypes.ts
@@ -963,7 +963,9 @@ export interface WithdrawUriInfoResponse {
possibleExchanges: ExchangeListItem[];
}
-export const codecForWithdrawUriInfoResponse = ():
Codec<WithdrawUriInfoResponse> =>
+export const codecForWithdrawUriInfoResponse = (): Codec<
+ WithdrawUriInfoResponse
+> =>
buildCodecForObject<WithdrawUriInfoResponse>()
.property("amount", codecForAmountString())
.property("defaultExchangeBaseUrl", codecOptional(codecForString()))
@@ -1046,14 +1048,18 @@ export const codecForTax = (): Codec<Tax> =>
.property("tax", codecForString())
.build("Tax");
-export const codecForInternationalizedString = ():
Codec<InternationalizedString> =>
- codecForMap(codecForString());
+export const codecForInternationalizedString = (): Codec<
+ InternationalizedString
+> => codecForMap(codecForString());
export const codecForProduct = (): Codec<Product> =>
buildCodecForObject<Product>()
.property("product_id", codecOptional(codecForString()))
.property("description", codecForString())
- .property("description_i18n",
codecOptional(codecForInternationalizedString()))
+ .property(
+ "description_i18n",
+ codecOptional(codecForInternationalizedString()),
+ )
.property("quantity", codecOptional(codecForNumber()))
.property("unit", codecOptional(codecForString()))
.property("price", codecOptional(codecForString()))
@@ -1066,7 +1072,10 @@ export const codecForContractTerms = ():
Codec<ContractTerms> =>
.property("order_id", codecForString())
.property("fulfillment_url", codecOptional(codecForString()))
.property("fulfillment_message", codecOptional(codecForString()))
- .property("fulfillment_message_i18n",
codecOptional(codecForInternationalizedString()))
+ .property(
+ "fulfillment_message_i18n",
+ codecOptional(codecForInternationalizedString()),
+ )
.property("merchant_base_url", codecForString())
.property("h_wire", codecForString())
.property("auto_refund", codecOptional(codecForDuration))
@@ -1086,10 +1095,7 @@ export const codecForContractTerms = ():
Codec<ContractTerms> =>
.property("merchant", codecForMerchantInfo())
.property("merchant_pub", codecForString())
.property("exchanges", codecForList(codecForExchangeHandle()))
- .property(
- "products",
- codecOptional(codecForList(codecForProduct())),
- )
+ .property("products", codecOptional(codecForList(codecForProduct())))
.property("extra", codecForAny())
.build("ContractTerms");
@@ -1296,13 +1302,13 @@ export const codecForMerchantOrderStatusPaid = ():
Codec<
.build("MerchantOrderStatusPaid");
export const codecForMerchantOrderRefundPickupResponse = (): Codec<
- MerchantOrderRefundResponse
- > =>
- buildCodecForObject<MerchantOrderRefundResponse>()
- .property("merchant_pub", codecForString())
- .property("refund_amount", codecForString())
- .property("refunds", codecForList(codecForMerchantCoinRefundStatus()))
- .build("MerchantOrderRefundPickupResponse");
+ MerchantOrderRefundResponse
+> =>
+ buildCodecForObject<MerchantOrderRefundResponse>()
+ .property("merchant_pub", codecForString())
+ .property("refund_amount", codecForString())
+ .property("refunds", codecForList(codecForMerchantCoinRefundStatus()))
+ .build("MerchantOrderRefundPickupResponse");
export const codecForMerchantOrderStatusUnpaid = (): Codec<
MerchantOrderStatusUnpaid
diff --git a/packages/taler-wallet-core/src/types/walletTypes.ts
b/packages/taler-wallet-core/src/types/walletTypes.ts
index 3182d50b..89c8b4a8 100644
--- a/packages/taler-wallet-core/src/types/walletTypes.ts
+++ b/packages/taler-wallet-core/src/types/walletTypes.ts
@@ -50,7 +50,11 @@ import {
codecForAny,
buildCodecForUnion,
} from "../util/codec";
-import { AmountString, codecForContractTerms, ContractTerms } from
"./talerTypes";
+import {
+ AmountString,
+ codecForContractTerms,
+ ContractTerms,
+} from "./talerTypes";
/**
* Response for the create reserve request to the wallet.
@@ -831,7 +835,9 @@ export const withdrawTestBalanceDefaults = {
exchangeBaseUrl: "https://exchange.test.taler.net/",
};
-export const codecForWithdrawTestBalance = ():
Codec<WithdrawTestBalanceRequest> =>
+export const codecForWithdrawTestBalance = (): Codec<
+ WithdrawTestBalanceRequest
+> =>
buildCodecForObject<WithdrawTestBalanceRequest>()
.property("amount", codecForString())
.property("bankBaseUrl", codecForString())
diff --git a/packages/taler-wallet-core/src/util/RequestThrottler.ts
b/packages/taler-wallet-core/src/util/RequestThrottler.ts
index b56f7476..f01e4395 100644
--- a/packages/taler-wallet-core/src/util/RequestThrottler.ts
+++ b/packages/taler-wallet-core/src/util/RequestThrottler.ts
@@ -146,6 +146,6 @@ export class RequestThrottler {
maxTokensHour: MAX_PER_HOUR,
maxTokensMinute: MAX_PER_MINUTE,
maxTokensSecond: MAX_PER_SECOND,
- }
+ };
}
}
diff --git a/packages/taler-wallet-core/src/util/http.ts
b/packages/taler-wallet-core/src/util/http.ts
index 44c01a4e..58b04d45 100644
--- a/packages/taler-wallet-core/src/util/http.ts
+++ b/packages/taler-wallet-core/src/util/http.ts
@@ -44,7 +44,7 @@ export interface HttpResponse {
export interface HttpRequestOptions {
headers?: { [name: string]: string };
- timeout?: Duration,
+ timeout?: Duration;
}
export enum HttpResponseStatus {
diff --git a/packages/taler-wallet-core/src/util/query.ts
b/packages/taler-wallet-core/src/util/query.ts
index 6571491a..6ebc3bbc 100644
--- a/packages/taler-wallet-core/src/util/query.ts
+++ b/packages/taler-wallet-core/src/util/query.ts
@@ -37,7 +37,6 @@ import {
} from "idb-bridge";
import { Logger } from "./logging";
-
const logger = new Logger("query.ts");
/**
diff --git a/packages/taler-wallet-core/src/wallet.ts
b/packages/taler-wallet-core/src/wallet.ts
index 845c6d71..ccc4e9d2 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -351,7 +351,6 @@ export class Wallet {
await p;
}
-
/**
* Process pending operations and wait for scheduled operations in
* a loop until the wallet is stopped explicitly.
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: auto-format,
gnunet <=