hive-p2p 1.0.42 → 1.0.43

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 CHANGED
@@ -56,10 +56,8 @@ export async function createNode(options = {}) {
56
56
  export class Node {
57
57
  started = false;
58
58
  id; cryptoCodex; verbose;
59
- /** @type {import('./ice-offer-manager.mjs').OfferManager} */
60
- offerManager;
61
- /** @type {import('./arbiter.mjs').Arbiter} */
62
- arbiter;
59
+ /** @type {OfferManager} */ offerManager;
60
+ /** @type {Arbiter} */ arbiter;
63
61
  /** @type {PeerStore} */ peerStore;
64
62
  /** @type {UnicastMessager} */ messager;
65
63
  /** @type {Gossip} */ gossip;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hive-p2p",
3
- "version": "1.0.42",
3
+ "version": "1.0.43",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -3,6 +3,9 @@ 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
 
6
+ // FOR IDE COMPLETION
7
+ import { Arbiter } from "../../core/arbiter.mjs";
8
+
6
9
  async function runSimulation() {
7
10
  const simulator = await import("../../simulation/simulator.mjs");
8
11
  return simulator.default;
@@ -16,19 +19,7 @@ function mergeConfig(target, source) {
16
19
  } else target[key] = source[key];
17
20
  }
18
21
 
19
- /**
20
- * @typedef {Object} HiveP2PNamespace
21
- * @property {typeof CLOCK} CLOCK
22
- * @property {typeof CONFIG} CONFIG
23
- * @property {typeof mergeConfig} mergeConfig
24
- * @property {typeof CryptoCodex} CryptoCodex
25
- * @property {typeof Node} Node
26
- * @property {typeof createNode} createNode
27
- * @property {typeof createPublicNode} createPublicNode
28
- * @property {typeof runSimulation} runSimulation
29
- */
30
22
 
31
- /** @type {HiveP2PNamespace} */
32
23
  const HiveP2P = { CLOCK, CONFIG, mergeConfig, CryptoCodex, Node, createNode, createPublicNode, runSimulation };
33
24
  export { CLOCK, CONFIG, mergeConfig, CryptoCodex, Node, createNode, createPublicNode, runSimulation };
34
25
  export default HiveP2P;