From 1c7423dbad6c7a7d8efffadb3c854d961da17336 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 17 Jun 2021 12:40:42 -0300 Subject: fix support with webpack{4,5} in browser environment added missing .js extension to the imports split index use browser field in package json --- packages/taler-wallet-core/src/headless/NodeHttpLib.ts | 10 +++++----- packages/taler-wallet-core/src/headless/helpers.ts | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'packages/taler-wallet-core/src/headless') diff --git a/packages/taler-wallet-core/src/headless/NodeHttpLib.ts b/packages/taler-wallet-core/src/headless/NodeHttpLib.ts index 525ac8557..1dd207345 100644 --- a/packages/taler-wallet-core/src/headless/NodeHttpLib.ts +++ b/packages/taler-wallet-core/src/headless/NodeHttpLib.ts @@ -24,13 +24,13 @@ import { HttpRequestLibrary, HttpRequestOptions, HttpResponse, -} from "../util/http"; -import { RequestThrottler } from "../util/RequestThrottler"; +} from "../util/http.js"; +import { RequestThrottler } from "../util/RequestThrottler.js"; import Axios, { AxiosResponse } from "axios"; -import { OperationFailedError, makeErrorDetails } from "../errors"; -import { URL } from "../util/url"; +import { OperationFailedError, makeErrorDetails } from "../errors.js"; +import { URL } from "../util/url.js"; import { Logger } from "@gnu-taler/taler-util"; -import { bytesToString } from "../crypto/talerCrypto"; +import { bytesToString } from "../crypto/talerCrypto.js"; import { TalerErrorCode } from "@gnu-taler/taler-util"; const logger = new Logger("NodeHttpLib.ts"); diff --git a/packages/taler-wallet-core/src/headless/helpers.ts b/packages/taler-wallet-core/src/headless/helpers.ts index c05d60497..a0053fc0f 100644 --- a/packages/taler-wallet-core/src/headless/helpers.ts +++ b/packages/taler-wallet-core/src/headless/helpers.ts @@ -27,12 +27,12 @@ import { BridgeIDBFactory, shimIndexedDB, } from "@gnu-taler/idb-bridge"; -import { openTalerDatabase } from "../db"; -import { HttpRequestLibrary } from "../util/http"; -import { NodeThreadCryptoWorkerFactory } from "../crypto/workers/nodeThreadWorker"; -import { NodeHttpLib } from "./NodeHttpLib"; +import { openTalerDatabase } from "../db.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"; +import { SynchronousCryptoWorkerFactory } from "../crypto/workers/synchronousWorker.js"; import type { IDBFactory } from "@gnu-taler/idb-bridge"; import { WalletNotification } from "@gnu-taler/taler-util"; import { InternalWalletState } from "../common.js"; -- cgit v1.2.3