[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-iono] branch master updated: replace Buffer() with Buffer.from()
From: |
gnunet |
Subject: |
[taler-iono] branch master updated: replace Buffer() with Buffer.from() see <https://nodejs.org/en/docs/guides/buffer-constructor-deprecation/> |
Date: |
Wed, 19 Oct 2022 12:02:45 +0200 |
This is an automated email from the git hooks/post-receive script.
marc-stibane pushed a commit to branch master
in repository iono.
The following commit(s) were added to refs/heads/master by this push:
new 4e58261 replace Buffer() with Buffer.from() see
<https://nodejs.org/en/docs/guides/buffer-constructor-deprecation/>
4e58261 is described below
commit 4e58261b540bd7b2045e3947ab255ccec5568247
Author: Marc Stibane <marc@taler.net>
AuthorDate: Wed Oct 19 12:02:33 2022 +0200
replace Buffer() with Buffer.from()
see <https://nodejs.org/en/docs/guides/buffer-constructor-deprecation/>
---
iono/iono.swift | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/iono/iono.swift b/iono/iono.swift
index 95feb5b..84c1f0e 100644
--- a/iono/iono.swift
+++ b/iono/iono.swift
@@ -170,7 +170,7 @@ public class Iono {
let encoded = message.data(using: .utf8)!.base64EncodedString()
let source = """
if (global.__native_onMessage) {
- const msg = (new Buffer('\(encoded)',
'base64')).toString('ascii');
+ const msg = (new Buffer.from('\(encoded)',
'base64')).toString('ascii');
global.__native_onMessage(msg);
} else {
console.log("WARN: no __native_onMessage defined");
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-iono] branch master updated: replace Buffer() with Buffer.from() see <https://nodejs.org/en/docs/guides/buffer-constructor-deprecation/>,
gnunet <=