fix spelling issues
This commit is contained in:
parent
7b87f01968
commit
9b89387535
@ -2512,7 +2512,7 @@ export class BridgeIDBTransaction
|
|||||||
this._db._upgradeTransaction = null;
|
this._db._upgradeTransaction = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// All steps before happend synchronously. Now
|
// All steps before happened synchronously. Now
|
||||||
// we asynchronously roll back the backend transaction,
|
// we asynchronously roll back the backend transaction,
|
||||||
// if necessary/possible.
|
// if necessary/possible.
|
||||||
|
|
||||||
|
@ -206,7 +206,7 @@ test("WPT idbobjectstore-rename-store.html (subtest 3)", async (t) => {
|
|||||||
await checkStoreIndexes(
|
await checkStoreIndexes(
|
||||||
t,
|
t,
|
||||||
store,
|
store,
|
||||||
"The object store index should have the expected contens before " +
|
"The object store index should have the expected contents before " +
|
||||||
"any renaming",
|
"any renaming",
|
||||||
);
|
);
|
||||||
return database.close();
|
return database.close();
|
||||||
|
@ -128,7 +128,7 @@ export interface Event {
|
|||||||
*/
|
*/
|
||||||
readonly currentTarget: EventTarget | null;
|
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;
|
readonly defaultPrevented: boolean;
|
||||||
/**
|
/**
|
||||||
|
@ -836,7 +836,7 @@ export default class BTree<K = any, V = any>
|
|||||||
/**
|
/**
|
||||||
* Scans and potentially modifies values for a subsequence of keys.
|
* Scans and potentially modifies values for a subsequence of keys.
|
||||||
* Note: the callback `onFound` should ideally be a pure function.
|
* 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
|
* the collection except via return value; out-of-band editing may
|
||||||
* cause an exception or may cause incorrect data to be sent to
|
* cause an exception or may cause incorrect data to be sent to
|
||||||
* the callback (duplicate or missed items). It must not cause a
|
* the callback (duplicate or missed items). It must not cause a
|
||||||
|
@ -58,7 +58,7 @@ function foo(...args: any[]) {
|
|||||||
console.log(foo`Another string, must be excluded`);
|
console.log(foo`Another string, must be excluded`);
|
||||||
|
|
||||||
|
|
||||||
// First occurence
|
// First occurrence
|
||||||
console.log(i18n`This message appears twice`);
|
console.log(i18n`This message appears twice`);
|
||||||
// Second occurence
|
// Second occurrence
|
||||||
console.log(i18n`This message appears twice`);
|
console.log(i18n`This message appears twice`);
|
||||||
|
@ -975,7 +975,7 @@ export interface BackupReserve {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Wire information (as payto URI) for the bank account that
|
* Wire information (as payto URI) for the bank account that
|
||||||
* transfered funds for this reserve.
|
* transferred funds for this reserve.
|
||||||
*/
|
*/
|
||||||
sender_wire?: string;
|
sender_wire?: string;
|
||||||
|
|
||||||
|
@ -264,7 +264,7 @@ export interface AuditorHandle {
|
|||||||
url: string;
|
url: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delivery location, losely modeled as a subset of
|
// Delivery location, loosely modeled as a subset of
|
||||||
// ISO20022's PostalAddress25.
|
// ISO20022's PostalAddress25.
|
||||||
export interface Location {
|
export interface Location {
|
||||||
// Nation with its own government.
|
// 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 {
|
export class WireFeesJson {
|
||||||
/**
|
/**
|
||||||
|
@ -478,12 +478,12 @@ export class CommandGroup<GN extends keyof any, TG> {
|
|||||||
try {
|
try {
|
||||||
r = this.myAction(parsedArgs);
|
r = this.myAction(parsedArgs);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(`An error occured while running ${currentName}`);
|
console.error(`An error occurred while running ${currentName}`);
|
||||||
console.error(e);
|
console.error(e);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
Promise.resolve(r).catch((e) => {
|
Promise.resolve(r).catch((e) => {
|
||||||
console.error(`An error occured while running ${currentName}`);
|
console.error(`An error occurred while running ${currentName}`);
|
||||||
console.error(e);
|
console.error(e);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
});
|
});
|
||||||
|
@ -155,7 +155,7 @@ export class FaultProxy {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (faultRespContext.responseBody) {
|
if (faultRespContext.responseBody) {
|
||||||
// We must accomodate for potentially changed content length
|
// We must accommodate for potentially changed content length
|
||||||
faultRespContext.responseHeaders[
|
faultRespContext.responseHeaders[
|
||||||
"content-length"
|
"content-length"
|
||||||
] = `${faultRespContext.responseBody.byteLength}`;
|
] = `${faultRespContext.responseBody.byteLength}`;
|
||||||
|
@ -130,7 +130,7 @@ export async function sh(
|
|||||||
command: string,
|
command: string,
|
||||||
env: { [index: string]: string | undefined } = process.env,
|
env: { [index: string]: string | undefined } = process.env,
|
||||||
): Promise<string> {
|
): Promise<string> {
|
||||||
console.log("runing command", command);
|
console.log("running command", command);
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const stdoutChunks: Buffer[] = [];
|
const stdoutChunks: Buffer[] = [];
|
||||||
const proc = spawn(command, {
|
const proc = spawn(command, {
|
||||||
@ -188,7 +188,7 @@ export async function runCommand(
|
|||||||
args: string[],
|
args: string[],
|
||||||
env: { [index: string]: string | undefined } = process.env,
|
env: { [index: string]: string | undefined } = process.env,
|
||||||
): Promise<string> {
|
): Promise<string> {
|
||||||
console.log("runing command", shellescape([command, ...args]));
|
console.log("running command", shellescape([command, ...args]));
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const stdoutChunks: Buffer[] = [];
|
const stdoutChunks: Buffer[] = [];
|
||||||
const proc = spawn(command, args, {
|
const proc = spawn(command, args, {
|
||||||
@ -882,7 +882,7 @@ export class ExchangeService implements ExchangeServiceInterface {
|
|||||||
"${TALER_DATA_HOME}/exchange/live-keys/",
|
"${TALER_DATA_HOME}/exchange/live-keys/",
|
||||||
);
|
);
|
||||||
config.setString(
|
config.setString(
|
||||||
"exchage",
|
"exchange",
|
||||||
"revocation_dir",
|
"revocation_dir",
|
||||||
"${TALER_DATA_HOME}/exchange/revocations",
|
"${TALER_DATA_HOME}/exchange/revocations",
|
||||||
);
|
);
|
||||||
@ -1589,7 +1589,7 @@ export async function runTestWithState(
|
|||||||
|
|
||||||
const handleSignal = (s: string) => {
|
const handleSignal = (s: string) => {
|
||||||
console.warn(
|
console.warn(
|
||||||
`**** received fatal proces event, terminating test ${testName}`,
|
`**** received fatal process event, terminating test ${testName}`,
|
||||||
);
|
);
|
||||||
gc.shutdownSync();
|
gc.shutdownSync();
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
|
@ -211,7 +211,7 @@ export interface TransactionWireTransfer {
|
|||||||
// execution time of the wire transfer
|
// execution time of the wire transfer
|
||||||
execution_time: Timestamp;
|
execution_time: Timestamp;
|
||||||
|
|
||||||
// Total amount that has been wire transfered
|
// Total amount that has been wire transferred
|
||||||
// to the merchant
|
// to the merchant
|
||||||
amount: AmountString;
|
amount: AmountString;
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ export interface SyncConfig {
|
|||||||
httpPort: number;
|
httpPort: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Database connection string (ony postgres is supported).
|
* Database connection string (only postgres is supported).
|
||||||
*/
|
*/
|
||||||
database: string;
|
database: string;
|
||||||
|
|
||||||
|
@ -264,7 +264,7 @@ export interface ReserveRecord {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Wire information (as payto URI) for the bank account that
|
* Wire information (as payto URI) for the bank account that
|
||||||
* transfered funds for this reserve.
|
* transferred funds for this reserve.
|
||||||
*/
|
*/
|
||||||
senderWire?: string;
|
senderWire?: string;
|
||||||
|
|
||||||
@ -1528,7 +1528,7 @@ export interface RecoupGroupRecord {
|
|||||||
retryInfo: RetryInfo;
|
retryInfo: RetryInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Last error that occured, if any.
|
* Last error that occurred, if any.
|
||||||
*/
|
*/
|
||||||
lastError: TalerErrorDetails | undefined;
|
lastError: TalerErrorDetails | undefined;
|
||||||
}
|
}
|
||||||
@ -1598,7 +1598,7 @@ export interface BackupProviderRecord {
|
|||||||
retryInfo: RetryInfo;
|
retryInfo: RetryInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Last error that occured, if any.
|
* Last error that occurred, if any.
|
||||||
*/
|
*/
|
||||||
lastError: TalerErrorDetails | undefined;
|
lastError: TalerErrorDetails | undefined;
|
||||||
}
|
}
|
||||||
|
@ -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.
|
* responsible for recording the failure in the database.
|
||||||
*/
|
*/
|
||||||
export class OperationFailedError extends Error {
|
export class OperationFailedError extends Error {
|
||||||
|
@ -1218,7 +1218,7 @@ export async function checkPaymentByProposalId(
|
|||||||
|
|
||||||
proposalId = proposal.proposalId;
|
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);
|
const purchase = await ws.db.get(Stores.purchases, proposalId);
|
||||||
|
|
||||||
if (!purchase) {
|
if (!purchase) {
|
||||||
|
@ -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.
|
* then deplete the reserve, withdrawing coins until it is empty.
|
||||||
*
|
*
|
||||||
* The returned promise resolves once the reserve is set to the
|
* 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
|
* 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
|
* If the reserve have funds that are not allocated in a withdrawal group yet
|
||||||
* and are big enough to withdraw with available denominations,
|
* and are big enough to withdraw with available denominations,
|
||||||
|
@ -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(
|
export async function getTransactions(
|
||||||
ws: InternalWalletState,
|
ws: InternalWalletState,
|
||||||
|
@ -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
|
* should *only* be reported for problems in the wallet, not when
|
||||||
* a problem with a merchant/exchange/etc. occurs.
|
* a problem with a merchant/exchange/etc. occurs.
|
||||||
*/
|
*/
|
||||||
|
@ -397,7 +397,7 @@ function runWithTransaction<T, StoreTypes extends Store<string, {}>>(
|
|||||||
if (tx.error) {
|
if (tx.error) {
|
||||||
logger.error("Transaction aborted with error:", tx.error);
|
logger.error("Transaction aborted with error:", tx.error);
|
||||||
} else {
|
} else {
|
||||||
logger.error("Trasaction aborted (no error)");
|
logger.error("Transaction aborted (no error)");
|
||||||
}
|
}
|
||||||
reject(TransactionAbort);
|
reject(TransactionAbort);
|
||||||
};
|
};
|
||||||
|
@ -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.
|
* then deplete the reserve, withdrawing coins until it is empty.
|
||||||
*
|
*
|
||||||
* The returned promise resolves once the reserve is set to the
|
* The returned promise resolves once the reserve is set to the
|
||||||
|
@ -48,7 +48,7 @@ export interface ExtendedPermissionsResponse {
|
|||||||
export interface UpgradeResponse {
|
export interface UpgradeResponse {
|
||||||
/**
|
/**
|
||||||
* Is a reset required because of a new DB version
|
* Is a reset required because of a new DB version
|
||||||
* that can't be atomatically upgraded?
|
* that can't be automatically upgraded?
|
||||||
*/
|
*/
|
||||||
dbResetRequired: boolean;
|
dbResetRequired: boolean;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user