fix spelling issues

This commit is contained in:
Christian Grothoff 2021-04-27 23:42:25 +02:00
parent 7b87f01968
commit 9b89387535
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
21 changed files with 32 additions and 32 deletions

View File

@ -2512,7 +2512,7 @@ export class BridgeIDBTransaction
this._db._upgradeTransaction = null;
}
// All steps before happend synchronously. Now
// All steps before happened synchronously. Now
// we asynchronously roll back the backend transaction,
// if necessary/possible.

View File

@ -206,7 +206,7 @@ test("WPT idbobjectstore-rename-store.html (subtest 3)", async (t) => {
await checkStoreIndexes(
t,
store,
"The object store index should have the expected contens before " +
"The object store index should have the expected contents before " +
"any renaming",
);
return database.close();

View File

@ -128,7 +128,7 @@ export interface Event {
*/
readonly currentTarget: EventTarget | null;
/**
* Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
* Returns true if preventDefault() was invoked successfully to indicate cancellation, and false otherwise.
*/
readonly defaultPrevented: boolean;
/**

View File

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

@ -38,7 +38,7 @@ It has multiple lines, and a leading empty line.
*/
console.log(i18n`Hello9," '" World`);
// Comments with space inbetween do not count
// Comments with space in between do not count
console.log(i18n`Hello10
," '" Wo
@ -58,7 +58,7 @@ function foo(...args: any[]) {
console.log(foo`Another string, must be excluded`);
// First occurence
// First occurrence
console.log(i18n`This message appears twice`);
// Second occurence
// Second occurrence
console.log(i18n`This message appears twice`);

View File

@ -975,7 +975,7 @@ export interface BackupReserve {
/**
* Wire information (as payto URI) for the bank account that
* transfered funds for this reserve.
* transferred funds for this reserve.
*/
sender_wire?: string;

View File

@ -264,7 +264,7 @@ export interface AuditorHandle {
url: string;
}
// Delivery location, losely modeled as a subset of
// Delivery location, loosely modeled as a subset of
// ISO20022's PostalAddress25.
export interface Location {
// Nation with its own government.
@ -676,7 +676,7 @@ export class ExchangeKeysJson {
}
/**
* Wire fees as anounced by the exchange.
* Wire fees as announced by the exchange.
*/
export class WireFeesJson {
/**

View File

@ -478,12 +478,12 @@ export class CommandGroup<GN extends keyof any, TG> {
try {
r = this.myAction(parsedArgs);
} catch (e) {
console.error(`An error occured while running ${currentName}`);
console.error(`An error occurred while running ${currentName}`);
console.error(e);
process.exit(1);
}
Promise.resolve(r).catch((e) => {
console.error(`An error occured while running ${currentName}`);
console.error(`An error occurred while running ${currentName}`);
console.error(e);
process.exit(1);
});

View File

@ -155,7 +155,7 @@ export class FaultProxy {
return;
}
if (faultRespContext.responseBody) {
// We must accomodate for potentially changed content length
// We must accommodate for potentially changed content length
faultRespContext.responseHeaders[
"content-length"
] = `${faultRespContext.responseBody.byteLength}`;

View File

@ -130,7 +130,7 @@ export async function sh(
command: string,
env: { [index: string]: string | undefined } = process.env,
): Promise<string> {
console.log("runing command", command);
console.log("running command", command);
return new Promise((resolve, reject) => {
const stdoutChunks: Buffer[] = [];
const proc = spawn(command, {
@ -188,7 +188,7 @@ export async function runCommand(
args: string[],
env: { [index: string]: string | undefined } = process.env,
): Promise<string> {
console.log("runing command", shellescape([command, ...args]));
console.log("running command", shellescape([command, ...args]));
return new Promise((resolve, reject) => {
const stdoutChunks: Buffer[] = [];
const proc = spawn(command, args, {
@ -882,7 +882,7 @@ export class ExchangeService implements ExchangeServiceInterface {
"${TALER_DATA_HOME}/exchange/live-keys/",
);
config.setString(
"exchage",
"exchange",
"revocation_dir",
"${TALER_DATA_HOME}/exchange/revocations",
);
@ -1589,7 +1589,7 @@ export async function runTestWithState(
const handleSignal = (s: string) => {
console.warn(
`**** received fatal proces event, terminating test ${testName}`,
`**** received fatal process event, terminating test ${testName}`,
);
gc.shutdownSync();
process.exit(1);

View File

@ -211,7 +211,7 @@ export interface TransactionWireTransfer {
// execution time of the wire transfer
execution_time: Timestamp;
// Total amount that has been wire transfered
// Total amount that has been wire transferred
// to the merchant
amount: AmountString;

View File

@ -43,7 +43,7 @@ export interface SyncConfig {
httpPort: number;
/**
* Database connection string (ony postgres is supported).
* Database connection string (only postgres is supported).
*/
database: string;

View File

@ -264,7 +264,7 @@ export interface ReserveRecord {
/**
* Wire information (as payto URI) for the bank account that
* transfered funds for this reserve.
* transferred funds for this reserve.
*/
senderWire?: string;
@ -1528,7 +1528,7 @@ export interface RecoupGroupRecord {
retryInfo: RetryInfo;
/**
* Last error that occured, if any.
* Last error that occurred, if any.
*/
lastError: TalerErrorDetails | undefined;
}
@ -1598,7 +1598,7 @@ export interface BackupProviderRecord {
retryInfo: RetryInfo;
/**
* Last error that occured, if any.
* Last error that occurred, if any.
*/
lastError: TalerErrorDetails | undefined;
}

View File

@ -49,7 +49,7 @@ export class OperationFailedAndReportedError extends Error {
}
/**
* This exception is thrown when an error occured and the caller is
* This exception is thrown when an error occurred and the caller is
* responsible for recording the failure in the database.
*/
export class OperationFailedError extends Error {

View File

@ -1218,7 +1218,7 @@ export async function checkPaymentByProposalId(
proposalId = proposal.proposalId;
// First check if we already payed for it.
// First check if we already paid for it.
const purchase = await ws.db.get(Stores.purchases, proposalId);
if (!purchase) {

View File

@ -261,7 +261,7 @@ export async function forceQueryReserve(
}
/**
* First fetch information requred to withdraw from the reserve,
* First fetch information required to withdraw from the reserve,
* then deplete the reserve, withdrawing coins until it is empty.
*
* The returned promise resolves once the reserve is set to the
@ -467,7 +467,7 @@ async function incrementReserveRetry(
/**
* Update the information about a reserve that is stored in the wallet
* by quering the reserve's exchange.
* by querying the reserve's exchange.
*
* If the reserve have funds that are not allocated in a withdrawal group yet
* and are big enough to withdraw with available denominations,

View File

@ -72,7 +72,7 @@ function shouldSkipSearch(
}
/**
* Retrive the full event history for this wallet.
* Retrieve the full event history for this wallet.
*/
export async function getTransactions(
ws: InternalWalletState,

View File

@ -16,7 +16,7 @@
/**
* Type and schema definitions for pending operations in the wallet.
*
*
* These are only used internally, and are not part of the public
* interface to the wallet.
*/
@ -87,7 +87,7 @@ export interface PendingExchangeCheckRefreshOperation {
}
/**
* Some interal error happened in the wallet. This pending operation
* Some internal error happened in the wallet. This pending operation
* should *only* be reported for problems in the wallet, not when
* a problem with a merchant/exchange/etc. occurs.
*/

View File

@ -397,7 +397,7 @@ function runWithTransaction<T, StoreTypes extends Store<string, {}>>(
if (tx.error) {
logger.error("Transaction aborted with error:", tx.error);
} else {
logger.error("Trasaction aborted (no error)");
logger.error("Transaction aborted (no error)");
}
reject(TransactionAbort);
};

View File

@ -522,7 +522,7 @@ export class Wallet {
}
/**
* First fetch information requred to withdraw from the reserve,
* First fetch information required to withdraw from the reserve,
* then deplete the reserve, withdrawing coins until it is empty.
*
* The returned promise resolves once the reserve is set to the

View File

@ -48,7 +48,7 @@ export interface ExtendedPermissionsResponse {
export interface UpgradeResponse {
/**
* Is a reset required because of a new DB version
* that can't be atomatically upgraded?
* that can't be automatically upgraded?
*/
dbResetRequired: boolean;