@decentnetwork/peer 0.1.6 → 0.1.7

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.
Files changed (2) hide show
  1. package/dist/peer.js +4 -0
  2. package/package.json +1 -1
package/dist/peer.js CHANGED
@@ -1996,6 +1996,10 @@ export class Peer {
1996
1996
  }
1997
1997
  }
1998
1998
  }
1999
+ // Track the most recent acknowledged-storage count so dhtHealth()
2000
+ // can surface "DHT discovery layer alive but our announce isn't
2001
+ // landing on any node" vs the normal case.
2002
+ this.#lastSelfAnnounceStoredCount = storedNodes.length;
1999
2003
  return storedNodes;
2000
2004
  }
2001
2005
  #ensureSelfAnnounceLoop() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decentnetwork/peer",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Pure TypeScript port of Elastos Carrier (toxcore-derived) P2P messaging. DHT, onion routing, TCP relay, FlatBuffers app payloads, Express offline relay. Wire-compatible with iOS Beagle and the Carrier C SDK.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",