gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated (cf55f3f37 -> 2f072a4c1)


From: gnunet
Subject: [taler-wallet-core] branch master updated (cf55f3f37 -> 2f072a4c1)
Date: Mon, 10 Jul 2023 14:44:23 +0200

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

sebasjm pushed a change to branch master
in repository wallet-core.

    from cf55f3f37 bump versions to 0.9.3-dev.17
     new e0c4c2155 do not expose the noncePriv
     new f6b63a691 fix node20 bug
     new bf3e99ea2 show testing tag
     new 2f072a4c1 mark proposalid as depreacted

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 packages/demobank-ui/src/pages/BankFrame.tsx       | 23 +++++++++++++++++++++-
 packages/demobank-ui/src/pages/LoginForm.tsx       |  2 ++
 packages/taler-util/src/http-impl.node.ts          | 15 ++++++++++++++
 packages/taler-util/src/wallet-types.ts            | 10 ++++++++--
 .../src/operations/pay-merchant.ts                 |  1 -
 5 files changed, 47 insertions(+), 4 deletions(-)

diff --git a/packages/demobank-ui/src/pages/BankFrame.tsx 
b/packages/demobank-ui/src/pages/BankFrame.tsx
index babc4b867..c7168ac6d 100644
--- a/packages/demobank-ui/src/pages/BankFrame.tsx
+++ b/packages/demobank-ui/src/pages/BankFrame.tsx
@@ -165,7 +165,8 @@ export function BankFrame({
           </div>
           <div style="flex-grow:1" />
           <p>
-            Copyright &copy; 2014&mdash;2022 Taler Systems SA. {versionText}
+            Copyright &copy; 2014&mdash;2022 Taler Systems SA. {versionText}{" 
"}
+            <TestingTag />
           </p>
         </div>
       </section>
@@ -299,3 +300,23 @@ function StatusBanner(): VNode | null {
     </div>
   );
 }
+
+function TestingTag(): VNode {
+  const testingUrl = localStorage.getItem("bank-base-url");
+  if (!testingUrl) return <Fragment />;
+  return (
+    <span style={{ color: "gray" }}>
+      Testing with {testingUrl}{" "}
+      <a
+        href=""
+        onClick={(e) => {
+          e.preventDefault();
+          localStorage.removeItem("bank-base-url");
+          window.location.reload();
+        }}
+      >
+        stop testing
+      </a>
+    </span>
+  );
+}
diff --git a/packages/demobank-ui/src/pages/LoginForm.tsx 
b/packages/demobank-ui/src/pages/LoginForm.tsx
index 54f4fe6f1..d2cb1bd8e 100644
--- a/packages/demobank-ui/src/pages/LoginForm.tsx
+++ b/packages/demobank-ui/src/pages/LoginForm.tsx
@@ -79,6 +79,7 @@ export function LoginForm({ onRegister }: { onRegister?: () 
=> void }): VNode {
               name="username"
               id="username"
               value={username ?? ""}
+              enterkeyhint="next"
               placeholder="Username"
               autocomplete="username"
               required
@@ -98,6 +99,7 @@ export function LoginForm({ onRegister }: { onRegister?: () 
=> void }): VNode {
               name="password"
               id="password"
               autocomplete="current-password"
+              enterkeyhint="send"
               value={password ?? ""}
               placeholder="Password"
               required
diff --git a/packages/taler-util/src/http-impl.node.ts 
b/packages/taler-util/src/http-impl.node.ts
index 4df1feaf0..639043201 100644
--- a/packages/taler-util/src/http-impl.node.ts
+++ b/packages/taler-util/src/http-impl.node.ts
@@ -21,6 +21,7 @@
  */
 import * as http from "node:http";
 import * as https from "node:https";
+import * as net from "node:net";
 import { RequestOptions } from "node:http";
 import { TalerError } from "./errors.js";
 import { encodeBody, getDefaultHeaders, HttpLibArgs } from "./http-common.js";
@@ -39,6 +40,19 @@ import {
   URL,
 } from "./index.js";
 
+// Work around a node v20.0.0, v20.1.0, and v20.2.0 bug. The issue was fixed
+// in v20.3.0.
+// https://github.com/nodejs/node/issues/47822#issuecomment-1564708870
+// Safe to remove once support for Node v20 is dropped.
+if (
+  // check for `node` in case we want to use this in "exotic" JS envs
+  process.versions.node &&
+  process.versions.node.match(/20\.[0-2]\.0/)
+) {
+  //@ts-ignore
+  net.setDefaultAutoSelectFamily(false);
+}
+
 const logger = new Logger("http-impl.node.ts");
 
 const textDecoder = new TextDecoder();
@@ -126,6 +140,7 @@ export class HttpLibImpl implements HttpRequestLibrary {
       method: method,
       path,
       headers: requestHeadersMap,
+      timeout: timeoutMs,
     };
 
     const chunks: Uint8Array[] = [];
diff --git a/packages/taler-util/src/wallet-types.ts 
b/packages/taler-util/src/wallet-types.ts
index f2384ad8e..93653240b 100644
--- a/packages/taler-util/src/wallet-types.ts
+++ b/packages/taler-util/src/wallet-types.ts
@@ -776,7 +776,7 @@ export const codecForPreparePayResultAlreadyConfirmed =
       .property("amountEffective", codecOptional(codecForAmountString()))
       .property("amountRaw", codecForAmountString())
       .property("paid", codecForBoolean())
-      .property("talerUri", codecOptional(codecForString()))
+      .property("talerUri", codecForString())
       .property("contractTerms", codecForAny())
       .property("contractTermsHash", codecForString())
       .property("transactionId", codecForTransactionIdStr())
@@ -828,6 +828,9 @@ export interface PreparePayResultPaymentPossible {
 export interface PreparePayResultInsufficientBalance {
   status: PreparePayResultType.InsufficientBalance;
   transactionId: TransactionIdStr;
+  /**
+   * @deprecated use transactionId
+   */
   proposalId: string;
   contractTerms: MerchantContractTerms;
   amountRaw: string;
@@ -843,8 +846,11 @@ export interface PreparePayResultAlreadyConfirmed {
   amountRaw: string;
   amountEffective: string | undefined;
   contractTermsHash: string;
+  /**
+   * @deprecated use transactionId
+   */
   proposalId: string;
-  talerUri?: string;
+  talerUri: string;
 }
 
 export interface BankWithdrawDetails {
diff --git a/packages/taler-wallet-core/src/operations/pay-merchant.ts 
b/packages/taler-wallet-core/src/operations/pay-merchant.ts
index 080191bfd..e258a0994 100644
--- a/packages/taler-wallet-core/src/operations/pay-merchant.ts
+++ b/packages/taler-wallet-core/src/operations/pay-merchant.ts
@@ -1009,7 +1009,6 @@ export async function checkPaymentByProposalId(
     orderId: proposal.orderId,
     sessionId: proposal.lastSessionId ?? proposal.downloadSessionId ?? "",
     claimToken: proposal.claimToken,
-    noncePriv: proposal.noncePriv,
   });
 
   // First check if we already paid for it.

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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