diff options
-rw-r--r-- | packages/anastasis-core/src/challenge-feedback-types.ts | 2 | ||||
-rw-r--r-- | packages/anastasis-core/src/index.ts | 4 | ||||
-rwxr-xr-x | packages/anastasis-webui/clean_and_build.sh | 2 | ||||
-rw-r--r-- | packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSetup.tsx | 2 | ||||
-rw-r--r-- | packages/idb-bridge/src/tree/b+tree.ts | 32 | ||||
-rw-r--r-- | packages/taler-util/src/CancellationToken.ts | 6 | ||||
-rw-r--r-- | packages/taler-util/src/talerCrypto.ts | 7 | ||||
-rw-r--r-- | packages/taler-wallet-cli/src/harness/harness.ts | 18 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/db.ts | 2 | ||||
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/Refund.test.ts | 6 | ||||
-rw-r--r-- | packages/taler-wallet-webextension/src/platform/api.ts | 2 | ||||
-rw-r--r-- | packages/taler-wallet-webextension/src/wxApi.ts | 4 |
12 files changed, 42 insertions, 45 deletions
diff --git a/packages/anastasis-core/src/challenge-feedback-types.ts b/packages/anastasis-core/src/challenge-feedback-types.ts index a5fcc6be9..de615b315 100644 --- a/packages/anastasis-core/src/challenge-feedback-types.ts +++ b/packages/anastasis-core/src/challenge-feedback-types.ts @@ -96,7 +96,7 @@ export interface ChallengeFeedbackBankTransferRequired { state: ChallengeFeedbackStatus.IbanInstructions; /** - * Amount that should be transfered for a successful authentication. + * Amount that should be transferred for a successful authentication. */ challenge_amount: AmountString; diff --git a/packages/anastasis-core/src/index.ts b/packages/anastasis-core/src/index.ts index b933c4e74..eb2b41e50 100644 --- a/packages/anastasis-core/src/index.ts +++ b/packages/anastasis-core/src/index.ts @@ -799,7 +799,7 @@ async function downloadPolicy( throw Error("invalid state"); } let policyDownloadResult: PolicyDownloadResult | undefined = undefined; - // FIXME: Do this concurrently/asynchronously so that one slow provider doens't block us. + // FIXME: Do this concurrently/asynchronously so that one slow provider doesn't block us. for (const prov of state.selected_version.providers) { const res = await downloadPolicyFromProvider(state, prov.url, prov.version); if (res) { @@ -1946,7 +1946,7 @@ export async function reduceAction( * * Returns an empty object if provider information is complete. * - * FIXME: Also pass a cancelation token. + * FIXME: Also pass a cancellation token. */ export async function completeProviderStatus( providerMap: AuthenticationProviderStatusMap, diff --git a/packages/anastasis-webui/clean_and_build.sh b/packages/anastasis-webui/clean_and_build.sh index 5f308e67c..25e7bd998 100755 --- a/packages/anastasis-webui/clean_and_build.sh +++ b/packages/anastasis-webui/clean_and_build.sh @@ -52,7 +52,7 @@ bundle ui-dev if [ "WATCH" == "$1" ]; then echo watch mode - echo Writting any file in the src directory will trigger a browser reload. + echo Writing any file in the src directory will trigger a browser reload. echo Be sure that the watcher server is running. echo ./watch/serve.sh inotifywait -e close_write -r src -q -m | while read line; do diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSetup.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSetup.tsx index 0285c87e1..acdcef3ac 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSetup.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSetup.tsx @@ -57,7 +57,7 @@ export function AuthMethodTotpSetup({ const errors = !name ? "The TOTP name is missing" : !testCodeMatches - ? "The test code doesnt match" + ? "The test code doesn't match" : undefined; function goNextIfNoErrors(): void { if (!errors) addTotpAuth(); diff --git a/packages/idb-bridge/src/tree/b+tree.ts b/packages/idb-bridge/src/tree/b+tree.ts index 76dd79dda..fa0823526 100644 --- a/packages/idb-bridge/src/tree/b+tree.ts +++ b/packages/idb-bridge/src/tree/b+tree.ts @@ -59,15 +59,15 @@ export type DefaultComparable = | undefined | (number | string)[] | { - valueOf: () => - | number - | string - | Date - | boolean - | null - | undefined - | (number | string)[]; - }; + valueOf: () => + | number + | string + | Date + | boolean + | null + | undefined + | (number | string)[]; + }; /** * Compares DefaultComparables to form a strict partial ordering. @@ -534,7 +534,7 @@ export default class BTree<K = any, V = any> : leaf.indexOf(lowestKey, 0, this._compare) - 1; return iterator<[K, V]>(() => { - jump: for (;;) { + jump: for (; ;) { switch (state) { case 0: if (++i < leaf.keys.length) @@ -550,7 +550,7 @@ export default class BTree<K = any, V = any> state = 2; case 2: // Advance to the next leaf node - for (var level = -1; ; ) { + for (var level = -1; ;) { if (++level >= nodequeue.length) { state = 3; continue jump; @@ -606,7 +606,7 @@ export default class BTree<K = any, V = any> var state = reusedArray !== undefined ? 1 : 0; return iterator<[K, V]>(() => { - jump: for (;;) { + jump: for (; ;) { switch (state) { case 0: if (--i >= 0) @@ -622,7 +622,7 @@ export default class BTree<K = any, V = any> state = 2; case 2: // Advance to the next leaf node - for (var level = -1; ; ) { + for (var level = -1; ;) { if (++level >= nodequeue.length) { state = 3; continue jump; @@ -763,7 +763,7 @@ export default class BTree<K = any, V = any> thisLeaf.values[thisLevelIndices[thisLevelIndices.length - 1]]; const valOther = otherLeaf.values[ - otherLevelIndices[otherLevelIndices.length - 1] + otherLevelIndices[otherLevelIndices.length - 1] ]; if (!Object.is(valThis, valOther)) { const result = different( @@ -782,7 +782,7 @@ export default class BTree<K = any, V = any> if (otherLeaf && onlyOther) { const otherVal = otherLeaf.values[ - otherLevelIndices[otherLevelIndices.length - 1] + otherLevelIndices[otherLevelIndices.length - 1] ]; const result = onlyOther(otherCursor.currentKey, otherVal); if (result && result.break) return result.break; @@ -1294,7 +1294,7 @@ export default class BTree<K = any, V = any> /** * Scans and potentially modifies values for a subsequence of keys. * Note: the callback `onFound` should ideally be a pure function. - * Specfically, it must not insert items, call clone(), or change + * Specifically, it must not insert items, call clone(), or change * the collection except via return value; out-of-band editing may * cause an exception or may cause incorrect data to be sent to * the callback (duplicate or missed items). It must not cause a diff --git a/packages/taler-util/src/CancellationToken.ts b/packages/taler-util/src/CancellationToken.ts index 134805274..73c092b1d 100644 --- a/packages/taler-util/src/CancellationToken.ts +++ b/packages/taler-util/src/CancellationToken.ts @@ -22,7 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -const NOOP = () => {}; +const NOOP = () => { }; /** * A token that can be passed around to inform consumers of the token that a @@ -136,7 +136,7 @@ class CancellationToken { * Whether the token can be cancelled. */ private _canBeCancelled: boolean, - ) {} + ) { } /** * Create a {CancellationTokenSource}. @@ -260,7 +260,7 @@ namespace CancellationToken { cancel(reason?: any): void; /** - * Dipose of the token and this source and release memory. + * Dispose of the token and this source and release memory. */ dispose(): void; } diff --git a/packages/taler-util/src/talerCrypto.ts b/packages/taler-util/src/talerCrypto.ts index ebbfccda5..c6c1d79ee 100644 --- a/packages/taler-util/src/talerCrypto.ts +++ b/packages/taler-util/src/talerCrypto.ts @@ -560,7 +560,7 @@ export async function csUnblind( * @param hm message signed * @param csSig unblinded signature * @param csPub denomination publick key - * @returns true if valid, false if unvalid + * @returns true if valid, false if invalid */ export async function csVerify( hm: Uint8Array, @@ -679,8 +679,7 @@ export function hashDenomPub(pub: DenominationPubKey): Uint8Array { return nacl.hash(uint8ArrayBuf); } else { throw Error( - `unsupported cipher (${ - (pub as DenominationPubKey).cipher + `unsupported cipher (${(pub as DenominationPubKey).cipher }), unable to hash`, ); } @@ -784,7 +783,7 @@ export enum TalerSignaturePurpose { export class SignaturePurposeBuilder { private chunks: Uint8Array[] = []; - constructor(private purposeNum: number) {} + constructor(private purposeNum: number) { } put(bytes: Uint8Array): SignaturePurposeBuilder { this.chunks.push(Uint8Array.from(bytes)); diff --git a/packages/taler-wallet-cli/src/harness/harness.ts b/packages/taler-wallet-cli/src/harness/harness.ts index b53047e5d..74a523343 100644 --- a/packages/taler-wallet-cli/src/harness/harness.ts +++ b/packages/taler-wallet-cli/src/harness/harness.ts @@ -444,7 +444,7 @@ function setCoin(config: Configuration, c: CoinConfig) { } /** - * Send an HTTP request until it suceeds or the process dies. + * Send an HTTP request until it succeeds or the process dies. */ export async function pingProc( proc: ProcessWrapper | undefined, @@ -478,7 +478,7 @@ class BankServiceBase { protected globalTestState: GlobalTestState, protected bankConfig: BankConfig, protected configFile: string, - ) {} + ) { } } /** @@ -923,7 +923,7 @@ export class FakeBankService { private globalTestState: GlobalTestState, private bankConfig: FakeBankConfig, private configFile: string, - ) {} + ) { } async start(): Promise<void> { this.proc = this.globalTestState.spawnService( @@ -1189,7 +1189,7 @@ export class ExchangeService implements ExchangeServiceInterface { private exchangeConfig: ExchangeConfig, private configFilename: string, private keyPair: EddsaKeyPair, - ) {} + ) { } get name() { return this.exchangeConfig.name; @@ -1412,7 +1412,7 @@ export class MerchantApiClient { constructor( private baseUrl: string, public readonly auth: MerchantAuthConfiguration, - ) {} + ) { } async changeAuth(auth: MerchantAuthConfiguration): Promise<void> { const url = new URL("private/auth", this.baseUrl); @@ -1605,7 +1605,7 @@ export class MerchantService implements MerchantServiceInterface { private globalState: GlobalTestState, private merchantConfig: MerchantConfig, private configFilename: string, - ) {} + ) { } private currentTimetravel: Duration | undefined; @@ -1917,10 +1917,8 @@ export class WalletCli { const resp = await sh( self.globalTestState, `wallet-${self.name}`, - `taler-wallet-cli ${ - self.timetravelArg ?? "" - } --no-throttle -LTRACE --wallet-db '${ - self.dbfile + `taler-wallet-cli ${self.timetravelArg ?? "" + } --no-throttle -LTRACE --wallet-db '${self.dbfile }' api '${op}' ${shellWrap(JSON.stringify(payload))}`, ); console.log("--- wallet core response ---"); diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts index b22bc585e..eefa43113 100644 --- a/packages/taler-wallet-core/src/db.ts +++ b/packages/taler-wallet-core/src/db.ts @@ -1227,7 +1227,7 @@ export interface PurchaseRecord { * Timestamp of the first time that sending a payment to the merchant * for this purchase was successful. * - * FIXME: Does this need to be a timestamp, doensn't boolean suffice? + * FIXME: Does this need to be a timestamp, doesn't boolean suffice? */ timestampFirstSuccessfulPay: TalerProtocolTimestamp | undefined; diff --git a/packages/taler-wallet-webextension/src/cta/Refund.test.ts b/packages/taler-wallet-webextension/src/cta/Refund.test.ts index 78fdc3560..3eff42e90 100644 --- a/packages/taler-wallet-webextension/src/cta/Refund.test.ts +++ b/packages/taler-wallet-webextension/src/cta/Refund.test.ts @@ -82,7 +82,7 @@ describe("Refund CTA states", () => { name: "the merchant name", }, orderId: "orderId1", - summary: "the sumary", + summary: "the summary", }, } as PrepareRefundResult as any), applyRefund: async () => ({}), @@ -131,7 +131,7 @@ describe("Refund CTA states", () => { name: "the merchant name", }, orderId: "orderId1", - summary: "the sumary", + summary: "the summary", }, } as PrepareRefundResult as any), applyRefund: async () => ({}), @@ -207,7 +207,7 @@ describe("Refund CTA states", () => { name: "the merchant name", }, orderId: "orderId1", - summary: "the sumary", + summary: "the summary", }, } as PrepareRefundResult as any), applyRefund: async () => ({}), diff --git a/packages/taler-wallet-webextension/src/platform/api.ts b/packages/taler-wallet-webextension/src/platform/api.ts index 11ad9de7d..21f50196b 100644 --- a/packages/taler-wallet-webextension/src/platform/api.ts +++ b/packages/taler-wallet-webextension/src/platform/api.ts @@ -57,7 +57,7 @@ export interface WalletVersion { */ export interface PlatformAPI { /** - * Garantee that the + * Guarantee that the service workers don't die */ keepAlive(cb: VoidFunction): void; /** diff --git a/packages/taler-wallet-webextension/src/wxApi.ts b/packages/taler-wallet-webextension/src/wxApi.ts index 7ee14261a..f95066954 100644 --- a/packages/taler-wallet-webextension/src/wxApi.ts +++ b/packages/taler-wallet-webextension/src/wxApi.ts @@ -70,8 +70,8 @@ import { platform, MessageFromBackend } from "./platform/api.js"; /** * - * @autor Florian Dold - * @autor sebasjm + * @author Florian Dold + * @author sebasjm */ export interface ExtendedPermissionsResponse { |