@hive-p2p/browser 1.0.105 → 1.0.107
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/core/node.mjs +1 -1
- package/hive-p2p.min.js +3 -3
- package/index.mjs +3 -3
- package/package.json +1 -1
- package/services/clock.mjs +1 -1
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/clock.mjs
CHANGED
|
@@ -73,7 +73,7 @@ export class Clock {
|
|
|
73
73
|
// PRIVATE METHODS
|
|
74
74
|
async #fetchTimeSamples() { // Fetch time samples from all sources in parallel
|
|
75
75
|
if (this.proxyUrl) {
|
|
76
|
-
//
|
|
76
|
+
// Proxy mode: fetch from proxy instead of NTP sources
|
|
77
77
|
const sample = await this.#fetchTimeFromProxy();
|
|
78
78
|
return sample ? [sample] : [];
|
|
79
79
|
}
|