diff options
Diffstat (limited to 'packages/taler-wallet-core/src/headless')
-rw-r--r-- | packages/taler-wallet-core/src/headless/NodeHttpLib.ts | 7 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/headless/helpers.ts | 7 |
2 files changed, 7 insertions, 7 deletions
diff --git a/packages/taler-wallet-core/src/headless/NodeHttpLib.ts b/packages/taler-wallet-core/src/headless/NodeHttpLib.ts index 5eefb24f9..68a549274 100644 --- a/packages/taler-wallet-core/src/headless/NodeHttpLib.ts +++ b/packages/taler-wallet-core/src/headless/NodeHttpLib.ts @@ -31,7 +31,7 @@ import { OperationFailedError, makeErrorDetails } from "../operations/errors"; import { TalerErrorCode } from "../TalerErrorCode"; import { URL } from "../util/url"; import { Logger } from "../util/logging"; -import { bytesToString } from '../crypto/talerCrypto'; +import { bytesToString } from "../crypto/talerCrypto"; const logger = new Logger("NodeHttpLib.ts"); @@ -92,10 +92,10 @@ export class NodeHttpLib implements HttpRequestLibrary { ); } - const makeText = async(): Promise<string> => { + const makeText = async (): Promise<string> => { const respText = new Uint8Array(resp.data); return bytesToString(respText); - } + }; const makeJson = async (): Promise<any> => { let responseJson; @@ -152,7 +152,6 @@ export class NodeHttpLib implements HttpRequestLibrary { json: makeJson, bytes: makeBytes, }; - } async get(url: string, opt?: HttpRequestOptions): Promise<HttpResponse> { return this.fetch(url, { diff --git a/packages/taler-wallet-core/src/headless/helpers.ts b/packages/taler-wallet-core/src/headless/helpers.ts index 09f0ca906..30b670032 100644 --- a/packages/taler-wallet-core/src/headless/helpers.ts +++ b/packages/taler-wallet-core/src/headless/helpers.ts @@ -64,8 +64,7 @@ export interface DefaultNodeWalletArgs { */ function makeId(length: number): string { let result = ""; - const characters = - "abcdefghijklmnopqrstuvwxyz0123456789"; + const characters = "abcdefghijklmnopqrstuvwxyz0123456789"; for (let i = 0; i < length; i++) { result += characters.charAt(Math.floor(Math.random() * characters.length)); } @@ -129,7 +128,9 @@ export async function getDefaultNodeWallet( const myVersionChange = (): Promise<void> => { logger.error("version change requested, should not happen"); - throw Error("BUG: wallet DB version change event can't happen with memory IDB"); + throw Error( + "BUG: wallet DB version change event can't happen with memory IDB", + ); }; shimIndexedDB(myBridgeIdbFactory); |