@hive-p2p/server 1.0.62 → 1.0.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hive-p2p/server",
3
- "version": "1.0.62",
3
+ "version": "1.0.63",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -2,14 +2,21 @@ import { Converter } from './converter.mjs';
2
2
  const IS_BROWSER = typeof window !== 'undefined';
3
3
 
4
4
  // ED25519 EXPOSURE NODEJS/BROWSER COMPATIBLE ---------------------------------
5
- const [ed_, {sha512}] = await Promise.all([
5
+ /*const [ed_, {sha512}] = await Promise.all([
6
6
  import(IS_BROWSER ? '../libs/ed25519-custom.min.js' : '@noble/ed25519'),
7
7
  import(IS_BROWSER ? '../libs/ed25519-custom.min.js' : '@noble/hashes/sha2.js')
8
+ ]);*/
9
+ /** @type {import('@noble/ed25519')} */
10
+ //const ed25519 = ed_.default || ed_;
11
+ //ed25519.hashes.sha512 = sha512;
12
+ //export { ed25519, sha512 };
13
+
14
+ const [ed_] = await Promise.all([
15
+ import(IS_BROWSER ? '../libs/ed25519-custom.min.js' : '@noble/ed25519'),
8
16
  ]);
9
17
  /** @type {import('@noble/ed25519')} */
10
18
  const ed25519 = ed_.default || ed_;
11
- ed25519.hashes.sha512 = sha512;
12
- export { ed25519, sha512 };
19
+ export { ed25519 };
13
20
 
14
21
  //-----------------------------------------------------------------------------
15
22