diff options
author | Florian Dold <florian@dold.me> | 2022-11-01 12:39:52 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-11-01 12:39:52 +0100 |
commit | a121fbe5deabac38cd6e264fc77619caf1425600 (patch) | |
tree | beb6db1fa51783ca61aa2d130cf14be16fb5de5e /packages/taler-wallet-cli | |
parent | b513665408ad1490c1f4c3e8831f264cc489de34 (diff) |
remove source-map-support usage, as node supports it natively
We can just use NODE_OPTIONS=--enable-source-maps now.
Diffstat (limited to 'packages/taler-wallet-cli')
4 files changed, 2 insertions, 19 deletions
diff --git a/packages/taler-wallet-cli/bin/taler-wallet-cli.mjs b/packages/taler-wallet-cli/bin/taler-wallet-cli.mjs index a06b0f637..e3378471c 100755 --- a/packages/taler-wallet-cli/bin/taler-wallet-cli.mjs +++ b/packages/taler-wallet-cli/bin/taler-wallet-cli.mjs @@ -16,16 +16,4 @@ */ import { main } from '../dist/taler-wallet-cli.mjs'; -import { createRequire } from "module"; -const require = createRequire(import.meta.url); - -const doLog = process.env["TALER_DEBUG_SOURCEMAPS"] == "1"; - -try { - require("source-map-support"); - doLog && console.error("source map support installed"); -} catch (e) { - // Do nothing. - doLog && console.error("source map support not installed", e); -} main(); diff --git a/packages/taler-wallet-cli/package.json b/packages/taler-wallet-cli/package.json index c25923121..455c5d0cb 100644 --- a/packages/taler-wallet-cli/package.json +++ b/packages/taler-wallet-cli/package.json @@ -48,7 +48,6 @@ "@gnu-taler/taler-util": "workspace:*", "@gnu-taler/taler-wallet-core": "workspace:*", "axios": "^0.27.2", - "source-map-support": "^0.5.21", "tslib": "^2.4.0" } } diff --git a/packages/taler-wallet-cli/src/integrationtests/test-exchange-management.ts b/packages/taler-wallet-cli/src/integrationtests/test-exchange-management.ts index a3c076515..f0b4ac8c9 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-exchange-management.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-exchange-management.ts @@ -35,6 +35,7 @@ import { ExchangesListResponse, URL, TalerErrorCode, + j2s, } from "@gnu-taler/taler-util"; import { FaultInjectedExchangeService, @@ -129,6 +130,7 @@ export async function runExchangeManagementTest( WalletApiOperation.ListExchanges, {}, ); + console.log("exchanges list:", j2s(exchangesList)); t.assertTrue(exchangesList.exchanges.length === 0); // Try before fault is injected diff --git a/packages/taler-wallet-cli/src/integrationtests/testrunner.ts b/packages/taler-wallet-cli/src/integrationtests/testrunner.ts index c75cff7c0..1cbb549ff 100644 --- a/packages/taler-wallet-cli/src/integrationtests/testrunner.ts +++ b/packages/taler-wallet-cli/src/integrationtests/testrunner.ts @@ -450,12 +450,6 @@ if (runTestInstrStr && process.argv.includes("__TWCLI_TESTWORKER")) { process.exit(3); }); - try { - require("source-map-support").install(); - } catch (e) { - // Do nothing. - } - const runTest = async () => { let testMain: TestMainFunction | undefined; for (const t of allTests) { |