@decentnetwork/peer 0.1.147 → 0.1.148

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.
@@ -54,6 +54,7 @@ export class LegacyExpressClient {
54
54
  await this.#postEncrypted(friendUserId, friendEncrypted);
55
55
  }
56
56
  async pullOnce() {
57
+ this.#debugLog(`pullOnce: ${this.#nodes.length} node(s)`);
57
58
  if (!this.#nodes.length) {
58
59
  return;
59
60
  }
@@ -77,6 +78,9 @@ export class LegacyExpressClient {
77
78
  }
78
79
  const messages = parseExpressResponseFrames(body);
79
80
  if (messages.length === 0) {
81
+ // Silent until now: a body that arrives but parses to nothing looked
82
+ // exactly like an empty inbox.
83
+ this.#debugLog(`pullOnce: ${body.length} byte(s) from ${node.host} parsed to 0 frames`);
80
84
  continue;
81
85
  }
82
86
  this.#debugLog(`pullOnce got ${messages.length} offline frame(s) from ${node.host}:${node.port}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decentnetwork/peer",
3
- "version": "0.1.147",
3
+ "version": "0.1.148",
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",