- typo fix
This commit is contained in:
parent
1b91d87f4f
commit
ccd289904d
@ -96,7 +96,7 @@ export interface ChallengeFeedbackBankTransferRequired {
|
|||||||
state: ChallengeFeedbackStatus.IbanInstructions;
|
state: ChallengeFeedbackStatus.IbanInstructions;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Amount that should be transfered for a successful authentication.
|
* Amount that should be transferred for a successful authentication.
|
||||||
*/
|
*/
|
||||||
challenge_amount: AmountString;
|
challenge_amount: AmountString;
|
||||||
|
|
||||||
|
@ -799,7 +799,7 @@ async function downloadPolicy(
|
|||||||
throw Error("invalid state");
|
throw Error("invalid state");
|
||||||
}
|
}
|
||||||
let policyDownloadResult: PolicyDownloadResult | undefined = undefined;
|
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) {
|
for (const prov of state.selected_version.providers) {
|
||||||
const res = await downloadPolicyFromProvider(state, prov.url, prov.version);
|
const res = await downloadPolicyFromProvider(state, prov.url, prov.version);
|
||||||
if (res) {
|
if (res) {
|
||||||
@ -1946,7 +1946,7 @@ export async function reduceAction(
|
|||||||
*
|
*
|
||||||
* Returns an empty object if provider information is complete.
|
* 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(
|
export async function completeProviderStatus(
|
||||||
providerMap: AuthenticationProviderStatusMap,
|
providerMap: AuthenticationProviderStatusMap,
|
||||||
|
@ -52,7 +52,7 @@ bundle ui-dev
|
|||||||
if [ "WATCH" == "$1" ]; then
|
if [ "WATCH" == "$1" ]; then
|
||||||
|
|
||||||
echo watch mode
|
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 Be sure that the watcher server is running.
|
||||||
echo ./watch/serve.sh
|
echo ./watch/serve.sh
|
||||||
inotifywait -e close_write -r src -q -m | while read line; do
|
inotifywait -e close_write -r src -q -m | while read line; do
|
||||||
|
@ -57,7 +57,7 @@ export function AuthMethodTotpSetup({
|
|||||||
const errors = !name
|
const errors = !name
|
||||||
? "The TOTP name is missing"
|
? "The TOTP name is missing"
|
||||||
: !testCodeMatches
|
: !testCodeMatches
|
||||||
? "The test code doesnt match"
|
? "The test code doesn't match"
|
||||||
: undefined;
|
: undefined;
|
||||||
function goNextIfNoErrors(): void {
|
function goNextIfNoErrors(): void {
|
||||||
if (!errors) addTotpAuth();
|
if (!errors) addTotpAuth();
|
||||||
|
@ -59,15 +59,15 @@ export type DefaultComparable =
|
|||||||
| undefined
|
| undefined
|
||||||
| (number | string)[]
|
| (number | string)[]
|
||||||
| {
|
| {
|
||||||
valueOf: () =>
|
valueOf: () =>
|
||||||
| number
|
| number
|
||||||
| string
|
| string
|
||||||
| Date
|
| Date
|
||||||
| boolean
|
| boolean
|
||||||
| null
|
| null
|
||||||
| undefined
|
| undefined
|
||||||
| (number | string)[];
|
| (number | string)[];
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Compares DefaultComparables to form a strict partial ordering.
|
* 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;
|
: leaf.indexOf(lowestKey, 0, this._compare) - 1;
|
||||||
|
|
||||||
return iterator<[K, V]>(() => {
|
return iterator<[K, V]>(() => {
|
||||||
jump: for (;;) {
|
jump: for (; ;) {
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case 0:
|
case 0:
|
||||||
if (++i < leaf.keys.length)
|
if (++i < leaf.keys.length)
|
||||||
@ -550,7 +550,7 @@ export default class BTree<K = any, V = any>
|
|||||||
state = 2;
|
state = 2;
|
||||||
case 2:
|
case 2:
|
||||||
// Advance to the next leaf node
|
// Advance to the next leaf node
|
||||||
for (var level = -1; ; ) {
|
for (var level = -1; ;) {
|
||||||
if (++level >= nodequeue.length) {
|
if (++level >= nodequeue.length) {
|
||||||
state = 3;
|
state = 3;
|
||||||
continue jump;
|
continue jump;
|
||||||
@ -606,7 +606,7 @@ export default class BTree<K = any, V = any>
|
|||||||
var state = reusedArray !== undefined ? 1 : 0;
|
var state = reusedArray !== undefined ? 1 : 0;
|
||||||
|
|
||||||
return iterator<[K, V]>(() => {
|
return iterator<[K, V]>(() => {
|
||||||
jump: for (;;) {
|
jump: for (; ;) {
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case 0:
|
case 0:
|
||||||
if (--i >= 0)
|
if (--i >= 0)
|
||||||
@ -622,7 +622,7 @@ export default class BTree<K = any, V = any>
|
|||||||
state = 2;
|
state = 2;
|
||||||
case 2:
|
case 2:
|
||||||
// Advance to the next leaf node
|
// Advance to the next leaf node
|
||||||
for (var level = -1; ; ) {
|
for (var level = -1; ;) {
|
||||||
if (++level >= nodequeue.length) {
|
if (++level >= nodequeue.length) {
|
||||||
state = 3;
|
state = 3;
|
||||||
continue jump;
|
continue jump;
|
||||||
@ -763,7 +763,7 @@ export default class BTree<K = any, V = any>
|
|||||||
thisLeaf.values[thisLevelIndices[thisLevelIndices.length - 1]];
|
thisLeaf.values[thisLevelIndices[thisLevelIndices.length - 1]];
|
||||||
const valOther =
|
const valOther =
|
||||||
otherLeaf.values[
|
otherLeaf.values[
|
||||||
otherLevelIndices[otherLevelIndices.length - 1]
|
otherLevelIndices[otherLevelIndices.length - 1]
|
||||||
];
|
];
|
||||||
if (!Object.is(valThis, valOther)) {
|
if (!Object.is(valThis, valOther)) {
|
||||||
const result = different(
|
const result = different(
|
||||||
@ -782,7 +782,7 @@ export default class BTree<K = any, V = any>
|
|||||||
if (otherLeaf && onlyOther) {
|
if (otherLeaf && onlyOther) {
|
||||||
const otherVal =
|
const otherVal =
|
||||||
otherLeaf.values[
|
otherLeaf.values[
|
||||||
otherLevelIndices[otherLevelIndices.length - 1]
|
otherLevelIndices[otherLevelIndices.length - 1]
|
||||||
];
|
];
|
||||||
const result = onlyOther(otherCursor.currentKey, otherVal);
|
const result = onlyOther(otherCursor.currentKey, otherVal);
|
||||||
if (result && result.break) return result.break;
|
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.
|
* 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
|
||||||
|
@ -22,7 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|||||||
SOFTWARE.
|
SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const NOOP = () => {};
|
const NOOP = () => { };
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A token that can be passed around to inform consumers of the token that a
|
* 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.
|
* Whether the token can be cancelled.
|
||||||
*/
|
*/
|
||||||
private _canBeCancelled: boolean,
|
private _canBeCancelled: boolean,
|
||||||
) {}
|
) { }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a {CancellationTokenSource}.
|
* Create a {CancellationTokenSource}.
|
||||||
@ -260,7 +260,7 @@ namespace CancellationToken {
|
|||||||
cancel(reason?: any): void;
|
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;
|
dispose(): void;
|
||||||
}
|
}
|
||||||
|
@ -560,7 +560,7 @@ export async function csUnblind(
|
|||||||
* @param hm message signed
|
* @param hm message signed
|
||||||
* @param csSig unblinded signature
|
* @param csSig unblinded signature
|
||||||
* @param csPub denomination publick key
|
* @param csPub denomination publick key
|
||||||
* @returns true if valid, false if unvalid
|
* @returns true if valid, false if invalid
|
||||||
*/
|
*/
|
||||||
export async function csVerify(
|
export async function csVerify(
|
||||||
hm: Uint8Array,
|
hm: Uint8Array,
|
||||||
@ -679,8 +679,7 @@ export function hashDenomPub(pub: DenominationPubKey): Uint8Array {
|
|||||||
return nacl.hash(uint8ArrayBuf);
|
return nacl.hash(uint8ArrayBuf);
|
||||||
} else {
|
} else {
|
||||||
throw Error(
|
throw Error(
|
||||||
`unsupported cipher (${
|
`unsupported cipher (${(pub as DenominationPubKey).cipher
|
||||||
(pub as DenominationPubKey).cipher
|
|
||||||
}), unable to hash`,
|
}), unable to hash`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -784,7 +783,7 @@ export enum TalerSignaturePurpose {
|
|||||||
export class SignaturePurposeBuilder {
|
export class SignaturePurposeBuilder {
|
||||||
private chunks: Uint8Array[] = [];
|
private chunks: Uint8Array[] = [];
|
||||||
|
|
||||||
constructor(private purposeNum: number) {}
|
constructor(private purposeNum: number) { }
|
||||||
|
|
||||||
put(bytes: Uint8Array): SignaturePurposeBuilder {
|
put(bytes: Uint8Array): SignaturePurposeBuilder {
|
||||||
this.chunks.push(Uint8Array.from(bytes));
|
this.chunks.push(Uint8Array.from(bytes));
|
||||||
|
@ -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(
|
export async function pingProc(
|
||||||
proc: ProcessWrapper | undefined,
|
proc: ProcessWrapper | undefined,
|
||||||
@ -478,7 +478,7 @@ class BankServiceBase {
|
|||||||
protected globalTestState: GlobalTestState,
|
protected globalTestState: GlobalTestState,
|
||||||
protected bankConfig: BankConfig,
|
protected bankConfig: BankConfig,
|
||||||
protected configFile: string,
|
protected configFile: string,
|
||||||
) {}
|
) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -923,7 +923,7 @@ export class FakeBankService {
|
|||||||
private globalTestState: GlobalTestState,
|
private globalTestState: GlobalTestState,
|
||||||
private bankConfig: FakeBankConfig,
|
private bankConfig: FakeBankConfig,
|
||||||
private configFile: string,
|
private configFile: string,
|
||||||
) {}
|
) { }
|
||||||
|
|
||||||
async start(): Promise<void> {
|
async start(): Promise<void> {
|
||||||
this.proc = this.globalTestState.spawnService(
|
this.proc = this.globalTestState.spawnService(
|
||||||
@ -1189,7 +1189,7 @@ export class ExchangeService implements ExchangeServiceInterface {
|
|||||||
private exchangeConfig: ExchangeConfig,
|
private exchangeConfig: ExchangeConfig,
|
||||||
private configFilename: string,
|
private configFilename: string,
|
||||||
private keyPair: EddsaKeyPair,
|
private keyPair: EddsaKeyPair,
|
||||||
) {}
|
) { }
|
||||||
|
|
||||||
get name() {
|
get name() {
|
||||||
return this.exchangeConfig.name;
|
return this.exchangeConfig.name;
|
||||||
@ -1412,7 +1412,7 @@ export class MerchantApiClient {
|
|||||||
constructor(
|
constructor(
|
||||||
private baseUrl: string,
|
private baseUrl: string,
|
||||||
public readonly auth: MerchantAuthConfiguration,
|
public readonly auth: MerchantAuthConfiguration,
|
||||||
) {}
|
) { }
|
||||||
|
|
||||||
async changeAuth(auth: MerchantAuthConfiguration): Promise<void> {
|
async changeAuth(auth: MerchantAuthConfiguration): Promise<void> {
|
||||||
const url = new URL("private/auth", this.baseUrl);
|
const url = new URL("private/auth", this.baseUrl);
|
||||||
@ -1605,7 +1605,7 @@ export class MerchantService implements MerchantServiceInterface {
|
|||||||
private globalState: GlobalTestState,
|
private globalState: GlobalTestState,
|
||||||
private merchantConfig: MerchantConfig,
|
private merchantConfig: MerchantConfig,
|
||||||
private configFilename: string,
|
private configFilename: string,
|
||||||
) {}
|
) { }
|
||||||
|
|
||||||
private currentTimetravel: Duration | undefined;
|
private currentTimetravel: Duration | undefined;
|
||||||
|
|
||||||
@ -1917,10 +1917,8 @@ export class WalletCli {
|
|||||||
const resp = await sh(
|
const resp = await sh(
|
||||||
self.globalTestState,
|
self.globalTestState,
|
||||||
`wallet-${self.name}`,
|
`wallet-${self.name}`,
|
||||||
`taler-wallet-cli ${
|
`taler-wallet-cli ${self.timetravelArg ?? ""
|
||||||
self.timetravelArg ?? ""
|
} --no-throttle -LTRACE --wallet-db '${self.dbfile
|
||||||
} --no-throttle -LTRACE --wallet-db '${
|
|
||||||
self.dbfile
|
|
||||||
}' api '${op}' ${shellWrap(JSON.stringify(payload))}`,
|
}' api '${op}' ${shellWrap(JSON.stringify(payload))}`,
|
||||||
);
|
);
|
||||||
console.log("--- wallet core response ---");
|
console.log("--- wallet core response ---");
|
||||||
|
@ -1227,7 +1227,7 @@ export interface PurchaseRecord {
|
|||||||
* Timestamp of the first time that sending a payment to the merchant
|
* Timestamp of the first time that sending a payment to the merchant
|
||||||
* for this purchase was successful.
|
* 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;
|
timestampFirstSuccessfulPay: TalerProtocolTimestamp | undefined;
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ describe("Refund CTA states", () => {
|
|||||||
name: "the merchant name",
|
name: "the merchant name",
|
||||||
},
|
},
|
||||||
orderId: "orderId1",
|
orderId: "orderId1",
|
||||||
summary: "the sumary",
|
summary: "the summary",
|
||||||
},
|
},
|
||||||
} as PrepareRefundResult as any),
|
} as PrepareRefundResult as any),
|
||||||
applyRefund: async () => ({}),
|
applyRefund: async () => ({}),
|
||||||
@ -131,7 +131,7 @@ describe("Refund CTA states", () => {
|
|||||||
name: "the merchant name",
|
name: "the merchant name",
|
||||||
},
|
},
|
||||||
orderId: "orderId1",
|
orderId: "orderId1",
|
||||||
summary: "the sumary",
|
summary: "the summary",
|
||||||
},
|
},
|
||||||
} as PrepareRefundResult as any),
|
} as PrepareRefundResult as any),
|
||||||
applyRefund: async () => ({}),
|
applyRefund: async () => ({}),
|
||||||
@ -207,7 +207,7 @@ describe("Refund CTA states", () => {
|
|||||||
name: "the merchant name",
|
name: "the merchant name",
|
||||||
},
|
},
|
||||||
orderId: "orderId1",
|
orderId: "orderId1",
|
||||||
summary: "the sumary",
|
summary: "the summary",
|
||||||
},
|
},
|
||||||
} as PrepareRefundResult as any),
|
} as PrepareRefundResult as any),
|
||||||
applyRefund: async () => ({}),
|
applyRefund: async () => ({}),
|
||||||
|
@ -57,7 +57,7 @@ export interface WalletVersion {
|
|||||||
*/
|
*/
|
||||||
export interface PlatformAPI {
|
export interface PlatformAPI {
|
||||||
/**
|
/**
|
||||||
* Garantee that the
|
* Guarantee that the service workers don't die
|
||||||
*/
|
*/
|
||||||
keepAlive(cb: VoidFunction): void;
|
keepAlive(cb: VoidFunction): void;
|
||||||
/**
|
/**
|
||||||
|
@ -70,8 +70,8 @@ import { platform, MessageFromBackend } from "./platform/api.js";
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @autor Florian Dold
|
* @author Florian Dold
|
||||||
* @autor sebasjm
|
* @author sebasjm
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export interface ExtendedPermissionsResponse {
|
export interface ExtendedPermissionsResponse {
|
||||||
|
Loading…
Reference in New Issue
Block a user