summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/headless
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2021-06-17 12:40:42 -0300
committerSebastian <sebasjm@gmail.com>2021-06-17 12:49:47 -0300
commit1c7423dbad6c7a7d8efffadb3c854d961da17336 (patch)
tree8e98a834e092f2c72f0f8f10934f696e52800165 /packages/taler-wallet-core/src/headless
parent46f3fcbbfbf6869128e1c596b620af63b770eb93 (diff)
downloadwallet-core-1c7423dbad6c7a7d8efffadb3c854d961da17336.tar.gz
wallet-core-1c7423dbad6c7a7d8efffadb3c854d961da17336.tar.bz2
wallet-core-1c7423dbad6c7a7d8efffadb3c854d961da17336.zip
fix support with webpack{4,5} in browser environment
added missing .js extension to the imports split index use browser field in package json
Diffstat (limited to 'packages/taler-wallet-core/src/headless')
-rw-r--r--packages/taler-wallet-core/src/headless/NodeHttpLib.ts10
-rw-r--r--packages/taler-wallet-core/src/headless/helpers.ts10
2 files changed, 10 insertions, 10 deletions
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";