taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 5538ad877af052e46c91f75d489958b24c419061
parent 7544ded9595a75b0432fe137638ec42da27cd229
Author: Florian Dold <florian@dold.me>
Date:   Wed, 28 Jan 2026 19:34:22 +0100

fix import path issue via tsconfig

Diffstat:
Mpackages/taler-harness/src/integrationtests/test-withdrawal-idempotent.ts | 2+-
Mpackages/taler-wallet-core/src/index.ts | 5++++-
Mpackages/taler-wallet-webextension/src/wxBackend.ts | 3+--
Mtsconfig.defaults.json | 3++-
4 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/packages/taler-harness/src/integrationtests/test-withdrawal-idempotent.ts b/packages/taler-harness/src/integrationtests/test-withdrawal-idempotent.ts @@ -30,6 +30,7 @@ import { import { HttpRequestLibrary } from "@gnu-taler/taler-util/http"; import { CryptoDispatcher, + DenominationRecord, SynchronousCryptoWorkerFactoryPlain, TalerCryptoInterface, } from "@gnu-taler/taler-wallet-core"; @@ -41,7 +42,6 @@ import { ReserveKeypair, topupReserveWithBank, } from "@gnu-taler/taler-wallet-core/dbless"; -import { DenominationRecord } from "../../../taler-wallet-core/src/db.js"; import { createSimpleTestkudosEnvironmentV2 } from "../harness/environments.js"; import { GlobalTestState, harnessHttpLib } from "../harness/harness.js"; diff --git a/packages/taler-wallet-core/src/index.ts b/packages/taler-wallet-core/src/index.ts @@ -39,9 +39,12 @@ export { createPairTimeline } from "./denominations.js"; // FIXME: Should these really be exported?! export { - WalletStoresV1, deleteTalerDatabase, exportDb, importDb, + WalletStoresV1, } from "./db.js"; export { DbAccess } from "./query.js"; + +// FIXME: Required for a test in harness, but we should remove it. +export { DenominationRecord } from "./db.js"; diff --git a/packages/taler-wallet-webextension/src/wxBackend.ts b/packages/taler-wallet-webextension/src/wxBackend.ts @@ -56,7 +56,6 @@ import { importDb, } from "@gnu-taler/taler-wallet-core"; import { BrowserFetchHttpLib } from "@gnu-taler/web-util/browser"; -import { BridgeIDBFactory } from "../../idb-bridge/src/bridge-idb.js"; import { MessageFromFrontend } from "./platform/api.js"; import { platform } from "./platform/background.js"; import { BackgroundOperations } from "./wxApi.js"; @@ -479,7 +478,7 @@ async function reinitWallet(): Promise<void> { logger.info("Setting up wallet"); const wallet = await Wallet.create( { - idbFactory: indexedDB as any as BridgeIDBFactory, + idbFactory: indexedDB as any, readBackupJson(path) { throw Error("DB file export not supported for platform webext"); }, diff --git a/tsconfig.defaults.json b/tsconfig.defaults.json @@ -24,6 +24,7 @@ "target": "ES2020", "module": "Node16", "moduleResolution": "Node16", - "esModuleInterop": true + "esModuleInterop": true, + "preserveSymlinks": true } }