diff options
author | Florian Dold <florian@dold.me> | 2022-10-13 15:14:49 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-10-13 15:14:49 +0200 |
commit | 83d4a1addc313f71a71463f7811f1fcc622b51b6 (patch) | |
tree | 6643f8fb7312e8fdeeb7f6f85b07b1a5f2ca376c /packages/taler-wallet-core/src/headless | |
parent | b0223d662add93bf1b2199b51d6290ba5dadf1e7 (diff) | |
download | wallet-core-83d4a1addc313f71a71463f7811f1fcc622b51b6.tar.xz |
use node16 for wallet-core, delete unused taler-config-lib package
Diffstat (limited to 'packages/taler-wallet-core/src/headless')
-rw-r--r-- | packages/taler-wallet-core/src/headless/NodeHttpLib.ts | 4 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/headless/helpers.ts | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/headless/NodeHttpLib.ts b/packages/taler-wallet-core/src/headless/NodeHttpLib.ts index 5290bd441..c1d42796d 100644 --- a/packages/taler-wallet-core/src/headless/NodeHttpLib.ts +++ b/packages/taler-wallet-core/src/headless/NodeHttpLib.ts @@ -27,7 +27,7 @@ import { HttpResponse, } from "../util/http.js"; import { RequestThrottler } from "@gnu-taler/taler-util"; -import Axios, { AxiosResponse } from "axios"; +import axios, { AxiosResponse } from "axios"; import { TalerError } from "../errors.js"; import { Logger, bytesToString } from "@gnu-taler/taler-util"; import { TalerErrorCode, URL } from "@gnu-taler/taler-util"; @@ -75,7 +75,7 @@ export class NodeHttpLib implements HttpRequestLibrary { // FIXME: Use AbortController / etc. to handle cancellation let resp: AxiosResponse; try { - let respPromise = Axios({ + let respPromise = axios.default({ method, url: url, responseType: "arraybuffer", diff --git a/packages/taler-wallet-core/src/headless/helpers.ts b/packages/taler-wallet-core/src/headless/helpers.ts index 2be9be9a1..df4474271 100644 --- a/packages/taler-wallet-core/src/headless/helpers.ts +++ b/packages/taler-wallet-core/src/headless/helpers.ts @@ -29,7 +29,7 @@ import { MemoryBackend, shimIndexedDB, } from "@gnu-taler/idb-bridge"; -import { AccessStats } from "@gnu-taler/idb-bridge/src/MemoryBackend"; +import { AccessStats } from "@gnu-taler/idb-bridge"; import { Logger, WalletNotification } from "@gnu-taler/taler-util"; import * as fs from "fs"; import { NodeThreadCryptoWorkerFactory } from "../crypto/workers/nodeThreadWorker.js"; |