@hive-p2p/browser 1.0.104 → 1.0.106
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/hive-p2p.min.js +3 -3
- package/index.mjs +3 -3
- package/package.json +1 -1
- package/services/cryptos.mjs +2 -2
package/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { CryptoCodex } from "./core/crypto-codex.mjs";
|
|
|
3
3
|
import { CLOCK } from "./services/clock.mjs";
|
|
4
4
|
import CONFIG from "./core/config.mjs";
|
|
5
5
|
import { Converter } from "./services/converter.mjs";
|
|
6
|
-
import { ed25519, x25519, chacha20poly1305, randomBytes, Argon2Unified } from "./services/cryptos.mjs";
|
|
6
|
+
import { ed25519, x25519, chacha20poly1305, xchacha20poly1305, randomBytes, Argon2Unified } from "./services/cryptos.mjs";
|
|
7
7
|
import { xxHash32 } from "./libs/xxhash32.mjs';
|
|
8
8
|
|
|
9
9
|
// FOR IDE COMPLETION
|
|
@@ -24,8 +24,8 @@ function mergeConfig(target, source) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
const HiveP2P = { CLOCK, CONFIG, Converter, mergeConfig, Node, createNode, CryptoCodex, ed25519, x25519, chacha20poly1305, randomBytes, Argon2Unified, xxHash32 };
|
|
28
|
-
export { CLOCK, CONFIG, Converter, mergeConfig, Node, createNode, CryptoCodex, ed25519, x25519, chacha20poly1305, randomBytes, Argon2Unified, xxHash32 };
|
|
27
|
+
const HiveP2P = { CLOCK, CONFIG, Converter, mergeConfig, Node, createNode, CryptoCodex, ed25519, x25519, chacha20poly1305, xchacha20poly1305, randomBytes, Argon2Unified, xxHash32 };
|
|
28
|
+
export { CLOCK, CONFIG, Converter, mergeConfig, Node, createNode, CryptoCodex, ed25519, x25519, chacha20poly1305, xchacha20poly1305, randomBytes, Argon2Unified, xxHash32 };
|
|
29
29
|
export default HiveP2P;
|
|
30
30
|
|
|
31
31
|
if (typeof window !== 'undefined') window.HiveP2P = HiveP2P;
|
package/package.json
CHANGED
package/services/cryptos.mjs
CHANGED
|
@@ -3,10 +3,10 @@ const IS_BROWSER = typeof self !== 'undefined';
|
|
|
3
3
|
|
|
4
4
|
// ED25519 EXPOSURE NODEJS/BROWSER COMPATIBLE ---------------------------------
|
|
5
5
|
const { ed25519, x25519 } = await import('@noble/curves/ed25519.js');
|
|
6
|
-
const { chacha20poly1305 } = await import('@noble/ciphers/chacha.js');
|
|
6
|
+
const { chacha20poly1305, xchacha20poly1305 } = await import('@noble/ciphers/chacha.js');
|
|
7
7
|
const { randomBytes } = await import('@noble/ciphers/utils.js');
|
|
8
8
|
|
|
9
|
-
export { ed25519, x25519, chacha20poly1305, randomBytes };
|
|
9
|
+
export { ed25519, x25519, chacha20poly1305, xchacha20poly1305, randomBytes };
|
|
10
10
|
|
|
11
11
|
//-----------------------------------------------------------------------------
|
|
12
12
|
|