- typo fix

This commit is contained in:
Sebastian 2022-06-26 15:52:32 -03:00
parent 1b91d87f4f
commit ccd289904d
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1
12 changed files with 42 additions and 45 deletions

View File

@ -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;

View File

@ -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,

View File

@ -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

View File

@ -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();

View File

@ -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

View File

@ -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;
}

View File

@ -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));

View File

@ -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 ---");

View File

@ -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;

View File

@ -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 () => ({}),

View File

@ -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;
/**

View File

@ -70,8 +70,8 @@ import { platform, MessageFromBackend } from "./platform/api.js";
/**
*
* @autor Florian Dold
* @autor sebasjm
* @author Florian Dold
* @author sebasjm
*/
export interface ExtendedPermissionsResponse {