diff options
author | Sebastian <sebasjm@gmail.com> | 2022-01-16 17:47:43 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-01-16 17:55:00 -0300 |
commit | f8ae2671c176e293843525c4fc5dd4a33653fd10 (patch) | |
tree | f0c6f3e7e8430f1ed52b6ef5be54d84c18939abb /packages/taler-wallet-core/src/headless | |
parent | bf0cb6ab135c2a6d58a0684c17a565ed8422d5a4 (diff) | |
download | wallet-core-f8ae2671c176e293843525c4fc5dd4a33653fd10.tar.xz |
de-duplicating imports and fixing another typescript minor issues
Diffstat (limited to 'packages/taler-wallet-core/src/headless')
-rw-r--r-- | packages/taler-wallet-core/src/headless/helpers.ts | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/packages/taler-wallet-core/src/headless/helpers.ts b/packages/taler-wallet-core/src/headless/helpers.ts index d8616f716..120c4cd46 100644 --- a/packages/taler-wallet-core/src/headless/helpers.ts +++ b/packages/taler-wallet-core/src/headless/helpers.ts @@ -22,22 +22,20 @@ /** * Imports. */ +import type { IDBFactory } from "@gnu-taler/idb-bridge"; +// eslint-disable-next-line no-duplicate-imports import { - MemoryBackend, - BridgeIDBFactory, - shimIndexedDB, + BridgeIDBFactory, MemoryBackend, shimIndexedDB } from "@gnu-taler/idb-bridge"; +import { AccessStats } from "@gnu-taler/idb-bridge/src/MemoryBackend"; +import { Logger, WalletNotification } from "@gnu-taler/taler-util"; +import * as fs from "fs"; +import { NodeThreadCryptoWorkerFactory } from "../crypto/workers/nodeThreadWorker.js"; +import { SynchronousCryptoWorkerFactory } from "../crypto/workers/synchronousWorkerFactory.js"; import { openTalerDatabase } from "../db-utils.js"; import { HttpRequestLibrary } from "../util/http.js"; -import { NodeThreadCryptoWorkerFactory } from "../crypto/workers/nodeThreadWorker.js"; -import { NodeHttpLib } from "./NodeHttpLib.js"; -import { Logger } from "@gnu-taler/taler-util"; -import { SynchronousCryptoWorkerFactory } from "../crypto/workers/synchronousWorker.js"; -import type { IDBFactory } from "@gnu-taler/idb-bridge"; -import { WalletNotification } from "@gnu-taler/taler-util"; import { Wallet } from "../wallet.js"; -import * as fs from "fs"; -import { AccessStats } from "@gnu-taler/idb-bridge/src/MemoryBackend"; +import { NodeHttpLib } from "./NodeHttpLib.js"; const logger = new Logger("headless/helpers.ts"); @@ -165,6 +163,7 @@ export async function getDefaultNodeWallet2( try { // Try if we have worker threads available, fails in older node versions. const _r = "require"; + // eslint-disable-next-line no-unused-vars const worker_threads = module[_r]("worker_threads"); // require("worker_threads"); workerFactory = new NodeThreadCryptoWorkerFactory(); |