taler-typescript-core

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

commit 4a4391be07156fb1d076ebe52620a4bd4a85b870
parent 57547faa12dbd43d0b3a95293406909b0ea217eb
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 22 Dec 2025 18:11:05 +0100

fix misc. typos

Diffstat:
Mpackages/merchant-backoffice-ui/src/hooks/instance.ts | 2+-
Mpackages/merchant-backoffice-ui/src/i18n/taler-merchant-backoffice.pot | 3+--
Mpackages/merchant-backoffice-ui/src/paths/instance/transfers/list/index.tsx | 2+-
Mpackages/pogen/src/potextract.ts | 2+-
Mpackages/taler-util/src/amounts.ts | 2+-
Mpackages/taler-util/src/bech32.ts | 4++--
Mpackages/taler-util/src/http-client/README.md | 4++--
Mpackages/taler-util/src/http-client/exchange-client.ts | 2+-
Mpackages/taler-util/src/payto.ts | 4++--
Mpackages/taler-util/src/taler-crypto.ts | 2+-
Mpackages/taler-util/src/types-taler-mailbox.ts | 2+-
Mpackages/taler-util/src/types-taler-merchant.ts | 8++++----
Mpackages/taler-util/src/types-taler-wire-gateway.ts | 2+-
Mpackages/taler-wallet-core/src/donau.ts | 4++--
14 files changed, 21 insertions(+), 22 deletions(-)

diff --git a/packages/merchant-backoffice-ui/src/hooks/instance.ts b/packages/merchant-backoffice-ui/src/hooks/instance.ts @@ -117,7 +117,7 @@ export function useAsyncWithRetry<Res>( }, [fetcher, retryCounter]); // retry on result or error - // FIXME: why we need a secund useEffect? this should be merged with the one above + // FIXME: why we need a second useEffect? this should be merged with the one above useEffect(() => { if (retry && retry(result, error)) { setRetryCounter((c) => c + 1); diff --git a/packages/merchant-backoffice-ui/src/i18n/taler-merchant-backoffice.pot b/packages/merchant-backoffice-ui/src/i18n/taler-merchant-backoffice.pot @@ -4524,7 +4524,7 @@ msgstr "" #, c-format msgid "" "The wire transfer has been sent and should be in your bank account in any time. " -"You can manually confirm the reception usign the information below." +"You can manually confirm the reception using the information below." msgstr "" #: packages/merchant-backoffice-ui/src/paths/instance/transfers/list/index.tsx:214 @@ -5686,4 +5686,3 @@ msgstr "" #, c-format msgid "There are no statistics to list" msgstr "" - diff --git a/packages/merchant-backoffice-ui/src/paths/instance/transfers/list/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/transfers/list/index.tsx @@ -197,7 +197,7 @@ export default function ListTransfer({}: Props): VNode { <p style={{ paddingTop: 0 }}> <i18n.Translate> The wire transfer has been sent and should be in your bank account - in any time. You can manually confirm the reception usign the + in any time. You can manually confirm the reception using the information below. </i18n.Translate> </p> diff --git a/packages/pogen/src/potextract.ts b/packages/pogen/src/potextract.ts @@ -748,7 +748,7 @@ export function potextract() { if (SCREEN_INFO.missing.size) { console.error( - `There are some files with translation strings that doesnt have a constant TALER_SCREEN_ID on the root. This constant should be a unquie integer number to facilitate the identification from other locations. Add a "const TALER_SCREEN_ID = <number>;" after the last import. It doesn't need to be exported and it can be removed from runtime. Files:`, + `There are some files with translation strings that do not have a constant TALER_SCREEN_ID on the root. This constant should be a unique integer number to facilitate the identification from other locations. Add a "const TALER_SCREEN_ID = <number>;" after the last import. It does not need to be exported and it can be removed from runtime. Files:`, ); SCREEN_INFO.missing.forEach((fileName) => { console.error(` * ${fileName}`); diff --git a/packages/taler-util/src/amounts.ts b/packages/taler-util/src/amounts.ts @@ -194,7 +194,7 @@ export enum AmountParseError { */ CURRENCY_TOO_LONG, /** - * Currency shoul be only letter from a to z + * Currency should be only letter from a to z */ BAD_CURRENCY, /** diff --git a/packages/taler-util/src/bech32.ts b/packages/taler-util/src/bech32.ts @@ -57,7 +57,7 @@ function getEncodingConst(enc: BitcoinBech32.Encodings): number { return 1; case BitcoinBech32.Encodings.BECH32M: return 0x2bc830a3; - + default: { assertUnreachable(enc); } @@ -124,7 +124,7 @@ export namespace BitcoinBech32 { */ TOO_LONG, /** - * Addr should be greather or equal to 6 chars + * Addr should be greater or equal to 6 chars */ TOO_SHORT, WRONG_CHECKSUM, diff --git a/packages/taler-util/src/http-client/README.md b/packages/taler-util/src/http-client/README.md @@ -18,7 +18,7 @@ These API defines: for failed HTTP requests, including logging and potentially user notifications for critical failures. 5. **Data Validation**: Before sending requests, it could validate the data to ensure it meets the API's expected format, types, and value ranges, reducing the likelihood of errors and improving system reliability. -## Design desicions +## Design decisions The https clients follows this decisions for consistency. @@ -28,7 +28,7 @@ To make it easier to keep track with the spec: * All functions should be in order as described in the spec To make it easier to spot incomatible usage use strong typing: - * If the request ended succesfully (the operation is commited or the data return is the expected) then return OperationOk + * If the request ended successfully (the operation is committed or the data return is the expected) then return OperationOk * If the operation fail with an error code documented in the spec then return OperationFail (or OperationAlternative if the failure contains a body) * If the response contains any other error or the response is unreadable then throw an TalerError with all the information * Function arguments should use types from the protocol when possible diff --git a/packages/taler-util/src/http-client/exchange-client.ts b/packages/taler-util/src/http-client/exchange-client.ts @@ -605,7 +605,7 @@ export class TalerExchangeHttpClient { switch (resp.status) { case HttpStatusCode.Ok: // means there are voluntary checks - case HttpStatusCode.Accepted: // means there are requried checks + case HttpStatusCode.Accepted: // means there are required checks return opKnownAlternativeHttpFailure( resp, resp.status, diff --git a/packages/taler-util/src/payto.ts b/packages/taler-util/src/payto.ts @@ -156,7 +156,7 @@ export namespace Paytos { export interface PaytoTalerBank extends PaytoGeneric { targetType: PaytoType.TalerBank; /** - * this is kept to keep compatiblity with old parser + * this is kept to keep compatibility with old parser * @deprecated use URL */ host: string; @@ -242,7 +242,7 @@ export namespace Paytos { * Return the canonical form. * * FIXME: new need a function that only takes una string: host+port+path and - * parse it without using URL to prevent parsing unnecesary components and + * parse it without using URL to prevent parsing unnecessary components and * better error reporting * https://bugs.gnunet.org/view.php?id=10467 * diff --git a/packages/taler-util/src/taler-crypto.ts b/packages/taler-util/src/taler-crypto.ts @@ -1737,7 +1737,7 @@ export type HpkeEncapsulation = Uint8Array // This makes sure that sender confusion is // avoided. // In a non-oneshot API (currently not implemented) -// this is a requried input. +// this is a required input. export enum HpkeRole { Sender, Receiver, diff --git a/packages/taler-util/src/types-taler-mailbox.ts b/packages/taler-util/src/types-taler-mailbox.ts @@ -138,7 +138,7 @@ export interface MailboxRegisterRequest { mailbox_metadata: MailboxMetadata; // Signature by the mailbox's signing key affirming - // the update of keys, of purpuse + // the update of keys, of purpose // TALER_SIGNATURE_WALLET_MAILBOX_UPDATE_KEYS. // The signature is created over the SHA-512 hash // of (encryptionKeyType||encryptionKey||expiration) diff --git a/packages/taler-util/src/types-taler-merchant.ts b/packages/taler-util/src/types-taler-merchant.ts @@ -1217,7 +1217,7 @@ export interface MerchantVersionResponse { currency: string; // Which Persona should be used by default by new clients in the SPA. - // Can be changed locally per browers under "Personalization". + // Can be changed locally per browser under "Personalization". // Possible values include "expert", "offline-vending-machine", // "point-of-sale", "digital-publishing", "e-commerce" and "developer". // @since **v23**. @@ -1254,7 +1254,7 @@ export interface MerchantVersionResponse { // Tan channels that are required // to be confirmed for an instance to - // be useable. + // be usable. // @since **v21** mandatory_tan_channels: TanChannel[]; @@ -1596,7 +1596,7 @@ export interface GetStatisticsRequestParams { // be returned. If set to “INTERVAL”, only statistics kept by // interval will be returned. // If not set or set to “ANY”, both will be returned. - by?: "INTEVAL" | "BUCKET" | undefined; + by?: "INTERVAL" | "BUCKET" | undefined; } export interface PayRequest { @@ -4990,7 +4990,7 @@ export interface ChallengeRequestResponse { solve_expiration?: Timestamp; /** - * What is the earlist time at which the client may request a new challenge to be transmitted? + * What is the earliest time at which the client may request a new challenge to be transmitted? */ earliest_retransmission?: Timestamp; } diff --git a/packages/taler-util/src/types-taler-wire-gateway.ts b/packages/taler-util/src/types-taler-wire-gateway.ts @@ -74,7 +74,7 @@ export interface WireConfig { // @since v0, may become mandatory in the future. implementation?: string; - // Wether implementation support account existence check + // Whether implementation support account existence check support_account_check: boolean; } diff --git a/packages/taler-wallet-core/src/donau.ts b/packages/taler-wallet-core/src/donau.ts @@ -305,7 +305,7 @@ export async function handleSetDonau( oldRec.value.donauBaseUrl === req.donauBaseUrl && oldRec.value.donauTaxId === req.taxPayerId ) { - // Be idempotent, re-use old salt. + // Be idempotent, reuse old salt. return; } await tx.config.put({ @@ -426,7 +426,7 @@ export async function generateDonauPlanchets( return undefined; } if (!rec.donauAmount) { - throw Error("db consistency error: donau amout not set"); + throw Error("db consistency error: donau amount not set"); } if (typeof rec.donauYear !== "number") { throw Error("db consistency error: donau year not a number");