taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 6647cf86bddc989d9d3e6c85b9e534cbe349f914
parent dc1dfddb48bc042fb6c6487fb6142b202e5525b7
Author: Sebastian <sebasjm@gmail.com>
Date:   Wed, 14 May 2025 16:37:18 -0300

fix spell checker and spelling

Diffstat:
Mcontrib/ci/jobs/0-codespell/job.sh | 2+-
Mpackages/aml-backoffice-ui/src/hooks/decision-request.ts | 6+++---
Mpackages/aml-backoffice-ui/src/pages/decision/Rules.tsx | 8++++----
Mpackages/merchant-backoffice-ui/src/paths/instance/accounts/list/Table.tsx | 2+-
Mpackages/merchant-backoffice-ui/src/paths/instance/token/DetailPage.tsx | 2+-
Mpackages/taler-harness/src/harness/tops.ts | 4++--
Mpackages/taler-util/src/taler-form-attributes.ts | 2+-
Mpackages/taler-util/src/types-taler-exchange.ts | 2+-
Mpackages/taler-wallet-core/src/exchanges.ts | 2+-
Mpackages/taler-wallet-core/src/pay-merchant.ts | 8++++----
10 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/contrib/ci/jobs/0-codespell/job.sh b/contrib/ci/jobs/0-codespell/job.sh @@ -3,4 +3,4 @@ set -exuo pipefail job_dir=$(dirname "${BASH_SOURCE[0]}") -codespell -q 0 -I "${job_dir}"/dictionary.txt -S "*.bib,*.bst,*.cls,*.json,*.png,*.svg,*.wav,*.gz,*/templating/test?/**,**/auditor/*.sql,**/templating/mustach**,*.fees,*key,*.tag,*.info,*.latexmkrc,*.ecc,*.jpg,*.zkey,*.sqlite,*/contrib/hellos/**,*/vpn/tests/**,*.priv,*.file,*.tgz,*.woff,*.gif,*.odt,*.fee,*.deflate,*.dat,*.jpeg,*.eps,*.odg,*/m4/ax_lib_postgresql.m4,*/m4/libgcrypt.m4,*.rpath,config.status,ABOUT-NLS,*/doc/texinfo.tex,*.PNG,*.??.json,*.docx,*.ods,*.doc,*.docx,*.xcf,*.xlsx,*.ecc,*.ttf,*.woff2,*.eot,*.ttf,*.eot,*.mp4,*.pptx,*.epgz,*.min.js,**/*.map,**/fonts/**,*.pack.js,*.po,*.bbl,*/afl-tests/*,*/.git/**,*.pdf,*.epub,**/signing-key.asc,**/pnpm-lock.yaml,**/*.svg,**/*.cls,**/rfc.bib,**/*.bst,*/cbdc-es.tex,*/cbdc-it.tex,**/ExchangeSelection/example.ts,*/testcurl/test_tricky.c,*/i18n/strings.ts,*/src/anastasis-data.ts,**/doc/flows/main.de.tex,*/vendor/**,*/node_modules/**,*.pnpm-store/**,./prebuilt/**" +codespell -q 0 -I "${job_dir}"/dictionary.txt -S "*.bib,*.bst,*.cls,*.json,*.png,*.svg,*.wav,*.gz,*/templating/test?/**,**/auditor/*.sql,**/templating/mustach**,*.fees,*key,*.tag,*.info,*.latexmkrc,*.ecc,*.jpg,*.zkey,*.sqlite,*/contrib/hellos/**,*/vpn/tests/**,*.priv,*.file,*.tgz,*.woff,*.gif,*.odt,*.fee,*.deflate,*.dat,*.jpeg,*.eps,*.odg,*/m4/ax_lib_postgresql.m4,*/m4/libgcrypt.m4,*.rpath,config.status,ABOUT-NLS,*/doc/texinfo.tex,*.PNG,*.??.json,*.docx,*.ods,*.doc,*.docx,*.xcf,*.xlsx,*.ecc,*.ttf,*.woff2,*.eot,*.ttf,*.eot,*.mp4,*.pptx,*.epgz,*.min.js,**/*.map,**/fonts/**,*.pack.js,*.po,*.bbl,*/afl-tests/*,*/.git/**,*.pdf,*.epub,**/signing-key.asc,**/pnpm-lock.yaml,**/*.svg,**/*.cls,**/rfc.bib,**/*.bst,*/cbdc-es.tex,*/cbdc-it.tex,**/ExchangeSelection/example.ts,*/testcurl/test_tricky.c,*/i18n/strings.ts,*/src/anastasis-data.ts,**/doc/flows/main.de.tex,*/vendor/**,*/node_modules/**,*.pnpm-store/**,./prebuilt/**,./packages/*/lib/**,./packages/*/dist/**,./build-system/**,*.ico,*.tff,*.zip,*.sqlite3,./packages/taler-util/src/iso-639.ts" diff --git a/packages/aml-backoffice-ui/src/hooks/decision-request.ts b/packages/aml-backoffice-ui/src/hooks/decision-request.ts @@ -163,7 +163,7 @@ const DECISION_REQUEST_KEY = buildStorageKey( codecForDecisionRequest(), ); /** - * This helpers is used to add support for multple calls on the + * This helpers is used to add support for multiple calls on the * same update function that update and state with partial object. * */ @@ -215,7 +215,7 @@ export function useCurrentDecisionRequest(): [ // const old = mark.getLatestOrDefault(request) // const mergedValue = { ...old, ...newValue }; const { old, merged } = mark.mergeWithLatestOrDefault(request, newValue); - console.log("UPDATING DECISON REQUEST", { + console.log("UPDATING DECISION REQUEST", { logLabel, old, merged, @@ -232,7 +232,7 @@ export function useCurrentDecisionRequest(): [ } function reset() { console.log("RESETTING TO DEFAULT"); - updateValue("reseting", currentDef); + updateValue("resetting", currentDef); } return [request, updateValue, start, reset]; diff --git a/packages/aml-backoffice-ui/src/pages/decision/Rules.tsx b/packages/aml-backoffice-ui/src/pages/decision/Rules.tsx @@ -86,26 +86,26 @@ export function findRuleInconsistency( if (isWallet) { const hasBankRule = ONLY_BANK_RULES.some( - (ot) => OPERATION_TYPE_PRESENT[ot], + (otx) => OPERATION_TYPE_PRESENT[otx], ); if (hasBankRule) { return "shold-not-have-bank-rules"; } const hasAllWalletRules = WALLET_RULES.every( - (ot) => OPERATION_TYPE_PRESENT[ot], + (otx) => OPERATION_TYPE_PRESENT[otx], ); if (!hasAllWalletRules) { return "missing-wallet-rules"; } } else { const hasWalletrule = ONLY_WALLET_RULES.some( - (ot) => OPERATION_TYPE_PRESENT[ot], + (otx) => OPERATION_TYPE_PRESENT[otx], ); if (hasWalletrule) { return "shold-not-have-wallet-rules"; } const hasAllBankRules = BANK_RULES.every( - (ot) => OPERATION_TYPE_PRESENT[ot], + (otx) => OPERATION_TYPE_PRESENT[otx], ); if (!hasAllBankRules) { return "missing-bank-rules"; diff --git a/packages/merchant-backoffice-ui/src/paths/instance/accounts/list/Table.tsx b/packages/merchant-backoffice-ui/src/paths/instance/accounts/list/Table.tsx @@ -136,7 +136,7 @@ function Table({ accounts, onDelete, onSelect }: TableProps): VNode { const ibanAccounts = accountsByType["iban"]; const unknownAccounts = accountsByType["unknown"]; //FIXME: add support for payto://taler-reserve and payto://taler-reserve-http - //FIXME: this code doesn't addapt well on new payto definitions + //FIXME: this code doesn't adapt well on new payto definitions return ( <Fragment> <div class="table-container"> diff --git a/packages/merchant-backoffice-ui/src/paths/instance/token/DetailPage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/token/DetailPage.tsx @@ -118,7 +118,7 @@ export function DetailPage({ <Fragment> <Input<State> name="old_token" - label={i18n.str`Current passowrd`} + label={i18n.str`Current password`} tooltip={i18n.str`Password currently in use`} inputType="password" /> diff --git a/packages/taler-harness/src/harness/tops.ts b/packages/taler-harness/src/harness/tops.ts @@ -291,7 +291,7 @@ FALLBACK = default-investigate TYPE = LINK PROVIDER_ID = email-challenger DESCRIPTION = "Confirm email address via TAN" -DESCRIPTION_I18N = {"de":"Email addresse via TAN bestätigen"} +DESCRIPTION_I18N = {"de":"Email addresses via TAN bestätigen"} OUTPUTS = "CONTACT_EMAIL" FALLBACK = default-investigate @@ -299,7 +299,7 @@ FALLBACK = default-investigate TYPE = LINK PROVIDER_ID = postal-challenger DESCRIPTION = "Register Swiss postal address via TAN letter" -DESCRIPTION_I18N = {"de":"Schweizer Addresse via TAN Brief bestätigen"} +DESCRIPTION_I18N = {"de":"Schweizer Addresses via TAN Brief bestätigen"} OUTPUTS = "CONTACT_NAME ADDRESS_LINES ADDRESS_COUNTRY" FALLBACK = default-investigate diff --git a/packages/taler-util/src/taler-form-attributes.ts b/packages/taler-util/src/taler-form-attributes.ts @@ -231,7 +231,7 @@ export const TalerFormAttributes = { */ PEP_ACCEPTANCE_DATE: "PEP_ACCEPTANCE_DATE" as const, /** - * Description: True if the person is in a country for which FATF requires incresed dilegence. + * Description: True if the person is in a country for which FATF requires increased dilegence. * * GANA Type: Boolean */ diff --git a/packages/taler-util/src/types-taler-exchange.ts b/packages/taler-util/src/types-taler-exchange.ts @@ -3188,7 +3188,7 @@ export interface ExchangeWithdrawRequest { // Array of n hash codes of denomination public keys to order. // The sum of all denomination's values and fees MUST be // at most the balance of the reserve. The balance of - // the reserve will be immediatley reduced by that amount. + // the reserve will be immediately reduced by that amount. // If max_age is set, these denominations MUST support // age restriction as defined in the output to /keys. denoms_h: HashCode[]; diff --git a/packages/taler-wallet-core/src/exchanges.ts b/packages/taler-wallet-core/src/exchanges.ts @@ -2146,7 +2146,7 @@ export async function processTaskExchangeAutoRefresh( return TaskRunResult.runAgainAt(nextRefreshCheckStamp); } - logger.trace("exchange auto-refresh check necesary"); + logger.trace("exchange auto-refresh check necessary"); await fetchFreshExchange(wex, exchangeBaseUrl); diff --git a/packages/taler-wallet-core/src/pay-merchant.ts b/packages/taler-wallet-core/src/pay-merchant.ts @@ -455,12 +455,12 @@ export class PayMerchantTransactionContext implements TransactionContext { await tx.purchases.indexes.byFulfillmentUrl.getAll( rec.download.fulfillmentUrl, ); - for (const ot of otherTransactions) { + for (const otx of otherTransactions) { if ( - ot.purchaseStatus === PurchaseStatus.DoneRepurchaseDetected && - ot.repurchaseProposalId === rec.proposalId + otx.purchaseStatus === PurchaseStatus.DoneRepurchaseDetected && + otx.repurchaseProposalId === rec.proposalId ) { - relatedTransactions.push(ot); + relatedTransactions.push(otx); } } }