summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/index.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-06-02 13:56:29 +0200
committerFlorian Dold <florian@dold.me>2021-06-02 13:56:29 +0200
commit5e6cc41b7a8b41aec30a81b787e5e4b5ed60661a (patch)
tree45614dac0fa24a4c3de873226a1c2ffbb14c840f /packages/taler-wallet-core/src/index.ts
parent02f1d4b08116c24f0af1f32cb6d82be292fa6d10 (diff)
downloadwallet-core-5e6cc41b7a8b41aec30a81b787e5e4b5ed60661a.tar.gz
wallet-core-5e6cc41b7a8b41aec30a81b787e5e4b5ed60661a.tar.bz2
wallet-core-5e6cc41b7a8b41aec30a81b787e5e4b5ed60661a.zip
fix issues with circular imports
Parts of this commit are from a patch by sebasjm. The circular imports caused an issue with webpack. While we don't use webpack in the wallet, the wallet should still be importable by webpack. Some packages were importing their dependencies via "index.js", which re-exports public exports of the package. This resulted in circular dependencies which were resolved correctly by rollup, but not by webpack.
Diffstat (limited to 'packages/taler-wallet-core/src/index.ts')
-rw-r--r--packages/taler-wallet-core/src/index.ts18
1 files changed, 9 insertions, 9 deletions
diff --git a/packages/taler-wallet-core/src/index.ts b/packages/taler-wallet-core/src/index.ts
index 1f3901273..26701256c 100644
--- a/packages/taler-wallet-core/src/index.ts
+++ b/packages/taler-wallet-core/src/index.ts
@@ -18,11 +18,16 @@
* Module entry point for the wallet when used as a node module.
*/
-export { Wallet } from "./wallet";
-
// Errors
export * from "./operations/errors";
+// Util functionality
+export { Logger } from "./util/logging";
+export { URL } from "./util/url";
+export * from "./util/promiseUtils";
+export * from "./util/query";
+export * from "./util/http";
+
// Utils for using the wallet under node
export { NodeHttpLib } from "./headless/NodeHttpLib";
export {
@@ -44,13 +49,8 @@ export type { CryptoWorker } from "./crypto/workers/cryptoWorker";
export { CryptoWorkerFactory, CryptoApi } from "./crypto/workers/cryptoApi";
export * from "./crypto/talerCrypto";
-// Util functionality
-export { Logger } from "./util/logging";
-export { URL } from "./util/url";
-export * from "./util/promiseUtils";
-export * from "./util/query";
-export * from "./util/http";
-
export * from "./pending-types";
export * from "./util/debugFlags";
+
+export { Wallet } from "./wallet";