gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: backwards compat with nodejs<


From: gnunet
Subject: [taler-wallet-core] branch master updated: backwards compat with nodejs<0.11
Date: Mon, 24 Feb 2020 18:40:45 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new e1168fbe backwards compat with nodejs<0.11
e1168fbe is described below

commit e1168fbec00396a6ccb6d49c9405615a8a22cb72
Author: Florian Dold <address@hidden>
AuthorDate: Mon Feb 24 23:10:36 2020 +0530

    backwards compat with nodejs<0.11
---
 package.json                     | 2 +-
 src/headless/taler-wallet-cli.ts | 8 +++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/package.json b/package.json
index 4f495580..6d1edeac 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "taler-wallet",
-  "version": "0.6.10",
+  "version": "0.6.11",
   "description": "",
   "main": "dist/node/index.js",
   "repository": {
diff --git a/src/headless/taler-wallet-cli.ts b/src/headless/taler-wallet-cli.ts
index d741d7c9..9abdb05d 100644
--- a/src/headless/taler-wallet-cli.ts
+++ b/src/headless/taler-wallet-cli.ts
@@ -29,6 +29,12 @@ import { decodeCrock } from "../crypto/talerCrypto";
 import { OperationFailedAndReportedError } from "../operations/errors";
 import { Bank } from "./bank";
 import { classifyTalerUri, TalerUriType } from "../util/taleruri";
+import util = require("util");
+
+// Backwards compatibility with nodejs<0.11, where TextEncoder and TextDecoder
+// are not globals yet.
+(global as any).TextEncoder = util.TextEncoder;
+(global as any).TextDecoder = util.TextDecoder;
 
 const logger = new Logger("taler-wallet-cli.ts");
 
@@ -418,7 +424,7 @@ testCli
   .requiredOption("bank", ["-b", "--bank"], clk.STRING, {
     default: "https://bank.test.taler.net/";,
   })
-  .requiredOption("withdrawAmount", ["-a", "--amount"], clk.STRING, {
+  .requiredOption("withdrawAmount", ["-w", "--amount"], clk.STRING, {
     default: "TESTKUDOS:10",
   })
   .requiredOption("spendAmount", ["-s", "--spend-amount"], clk.STRING, {

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]