From 1cde390c23f2668a3777752632c48febd10a28ee Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 14 Jun 2021 16:08:58 +0200 Subject: fix up imports, no more esm in tests --- packages/taler-wallet-core/src/crypto/primitives/kdf.ts | 4 ++-- packages/taler-wallet-core/src/crypto/talerCrypto-test.ts | 6 +++--- packages/taler-wallet-core/src/crypto/talerCrypto.ts | 4 ++-- packages/taler-wallet-core/src/crypto/workers/cryptoApi.ts | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'packages/taler-wallet-core/src/crypto') diff --git a/packages/taler-wallet-core/src/crypto/primitives/kdf.ts b/packages/taler-wallet-core/src/crypto/primitives/kdf.ts index edc681bc1..af4d05035 100644 --- a/packages/taler-wallet-core/src/crypto/primitives/kdf.ts +++ b/packages/taler-wallet-core/src/crypto/primitives/kdf.ts @@ -14,8 +14,8 @@ GNU Taler; see the file COPYING. If not, see */ -import * as nacl from "./nacl-fast"; -import { sha256 } from "./sha256"; +import * as nacl from "./nacl-fast.js"; +import { sha256 } from "./sha256.js"; export function sha512(data: Uint8Array): Uint8Array { return nacl.hash(data); diff --git a/packages/taler-wallet-core/src/crypto/talerCrypto-test.ts b/packages/taler-wallet-core/src/crypto/talerCrypto-test.ts index 99a0e12c0..3718290d7 100644 --- a/packages/taler-wallet-core/src/crypto/talerCrypto-test.ts +++ b/packages/taler-wallet-core/src/crypto/talerCrypto-test.ts @@ -30,9 +30,9 @@ import { stringToBytes, bytesToString, rsaVerify, -} from "./talerCrypto"; -import { sha512, kdf } from "./primitives/kdf"; -import * as nacl from "./primitives/nacl-fast"; +} from "./talerCrypto.js"; +import { sha512, kdf } from "./primitives/kdf.js"; +import * as nacl from "./primitives/nacl-fast.js"; test("encoding", (t) => { const s = "Hello, World"; diff --git a/packages/taler-wallet-core/src/crypto/talerCrypto.ts b/packages/taler-wallet-core/src/crypto/talerCrypto.ts index 381896858..5739bc464 100644 --- a/packages/taler-wallet-core/src/crypto/talerCrypto.ts +++ b/packages/taler-wallet-core/src/crypto/talerCrypto.ts @@ -18,9 +18,9 @@ * Native implementation of GNU Taler crypto. */ -import * as nacl from "./primitives/nacl-fast"; +import * as nacl from "./primitives/nacl-fast.js"; import bigint from "big-integer"; -import { kdf } from "./primitives/kdf"; +import { kdf } from "./primitives/kdf.js"; // @ts-ignore const decoder = new TextDecoder(); diff --git a/packages/taler-wallet-core/src/crypto/workers/cryptoApi.ts b/packages/taler-wallet-core/src/crypto/workers/cryptoApi.ts index a38441067..546099777 100644 --- a/packages/taler-wallet-core/src/crypto/workers/cryptoApi.ts +++ b/packages/taler-wallet-core/src/crypto/workers/cryptoApi.ts @@ -22,9 +22,9 @@ /** * Imports. */ -import { CoinRecord, DenominationRecord, WireFee } from "../../db"; +import { CoinRecord, DenominationRecord, WireFee } from "../../db.js"; -import { CryptoWorker } from "./cryptoWorker"; +import { CryptoWorker } from "./cryptoWorker.js"; import { RecoupRequest, CoinDepositPermission } from "@gnu-taler/taler-util"; @@ -36,7 +36,7 @@ import { MakeSyncSignatureRequest, } from "@gnu-taler/taler-util"; -import * as timer from "../../util/timer"; +import * as timer from "../../util/timer.js"; import { Logger } from "@gnu-taler/taler-util"; import { DerivedRefreshSession, -- cgit v1.2.3