gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated: fix browser packaging


From: gnunet
Subject: [taler-wallet-core] branch master updated: fix browser packaging
Date: Mon, 11 Oct 2021 15:23:05 +0200

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

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

The following commit(s) were added to refs/heads/master by this push:
     new 78fb5f79 fix browser packaging
78fb5f79 is described below

commit 78fb5f79a8690ee490c96b271dadd37f4c9442d6
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Mon Oct 11 10:22:53 2021 -0300

    fix browser packaging
---
 packages/taler-util/package.json            | 4 +++-
 packages/taler-util/src/talerCrypto.ts      | 3 ---
 packages/taler-wallet-core/rollup.config.js | 1 +
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/packages/taler-util/package.json b/packages/taler-util/package.json
index 33942abf..3d92c761 100644
--- a/packages/taler-util/package.json
+++ b/packages/taler-util/package.json
@@ -7,7 +7,9 @@
   },
   "module": "./lib/index.node.js",
   "main": "./lib/index.node.js",
-  "browser": "./lib/index.browser.js",
+  "browser": {
+    "./lib/index.node.js": "./lib/index.browser.js"
+  },
   "type": "module",
   "types": "./lib/index.node.d.ts",
   "typesVersions": {
diff --git a/packages/taler-util/src/talerCrypto.ts 
b/packages/taler-util/src/talerCrypto.ts
index aab7571a..efa92a95 100644
--- a/packages/taler-util/src/talerCrypto.ts
+++ b/packages/taler-util/src/talerCrypto.ts
@@ -24,9 +24,6 @@
 import * as nacl from "./nacl-fast.js";
 import { kdf } from "./kdf.js";
 import bigint from "big-integer";
-import { initNodePrng } from "./prng-node.js";
-
-initNodePrng();
 
 export function getRandomBytes(n: number): Uint8Array {
   return nacl.randomBytes(n);
diff --git a/packages/taler-wallet-core/rollup.config.js 
b/packages/taler-wallet-core/rollup.config.js
index fa5e1905..927cb8a2 100644
--- a/packages/taler-wallet-core/rollup.config.js
+++ b/packages/taler-wallet-core/rollup.config.js
@@ -42,6 +42,7 @@ const browserEntryPoint = {
   external: builtins,
   plugins: [
     nodeResolve({
+      browser: true,
       preferBuiltins: true,
     }),
 

-- 
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]