hive-p2p 1.0.111 → 1.0.113

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",
3
- "version": "1.0.111",
3
+ "version": "1.0.113",
4
4
  "license": "GPL-3.0",
5
5
  "author": "PinkParrot",
6
6
  "description": "P2P networking library for Node.js with WebRTC - Full featured package",
@@ -1,3 +1,4 @@
1
+ // @ts-check
1
2
  import { Node, createNode, createPublicNode } from "../../core/node.mjs";
2
3
  import { CryptoCodex } from "../../core/crypto-codex.mjs";
3
4
  import { CLOCK } from '../../services/clock.mjs';
@@ -10,7 +11,7 @@ import { xxHash32 } from '../../libs/xxhash32.mjs';
10
11
  import { Arbiter } from "../../core/arbiter.mjs";
11
12
  import { OfferManager } from "../../core/ice-offer-manager.mjs";
12
13
  import { PeerStore, KnownPeer, PeerConnection } from "../../core/peer-store.mjs";
13
- import { UnicastMessager, DirectMessage, ReroutedDirectMessage } from "../../core/unicast.mjs";
14
+ import { UnicastMessager, DirectMessage } from "../../core/unicast.mjs";
14
15
  import { Gossip, GossipMessage } from "../../core/gossip.mjs";
15
16
  import { Topologist, OfferQueue } from "../../core/topologist.mjs";
16
17
  import { NodeServices } from "../../core/node-services.mjs";
@@ -20,6 +21,7 @@ async function runSimulation() {
20
21
  return simulator.default;
21
22
  }
22
23
 
24
+ /** @param {any} target @param {any} source */
23
25
  function mergeConfig(target, source) {
24
26
  for (const key in source)
25
27
  if (source[key] && typeof source[key] === 'object' && !Array.isArray(source[key])) {