@decentnetwork/beagle 0.1.77 → 0.1.79

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.
@@ -1,4 +1,4 @@
1
- window.__DK_UI_VERSION="0.1.76";
1
+ window.__DK_UI_VERSION="0.1.78";
2
2
  "use strict";
3
3
  (() => {
4
4
  // packages/beagle-ui/dist/beagle-ui.js
@@ -3134,6 +3134,7 @@ ${peer.address}`
3134
3134
  }
3135
3135
  }
3136
3136
  }
3137
+ const IDLE_POLL_MS = 400;
3137
3138
  async function pollLoop() {
3138
3139
  let cursor = null;
3139
3140
  while (!stopped) {
@@ -3162,6 +3163,9 @@ ${peer.address}`
3162
3163
  }
3163
3164
  }
3164
3165
  }
3166
+ if (!signals.length) {
3167
+ await new Promise((res) => setTimeout(res, IDLE_POLL_MS));
3168
+ }
3165
3169
  }
3166
3170
  }
3167
3171
  const bus = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decentnetwork/beagle",
3
- "version": "0.1.77",
3
+ "version": "0.1.79",
4
4
  "description": "Beagle — P2P chat, file transfer and calls for regular users, on the Decent Network. No admin privilege required.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -27,14 +27,14 @@
27
27
  "dependencies": {
28
28
  "@decentnetwork/chat-components": "^0.1.3",
29
29
  "@decentnetwork/lan": "^0.1.283",
30
- "@decentnetwork/peer": "^0.1.159",
30
+ "@decentnetwork/peer": "^0.1.160",
31
31
  "@decentnetwork/peer-webrtc": "^0.2.16",
32
32
  "js-yaml": "^4.1.0",
33
33
  "ws": "^8.21.1",
34
34
  "yargs": "^17.7.2"
35
35
  },
36
36
  "devDependencies": {
37
- "@decentnetwork/beagle-ui": "0.2.2",
37
+ "@decentnetwork/beagle-ui": "^0.2.3",
38
38
  "@types/js-yaml": "^4.0.9",
39
39
  "@types/node": "^20.11.0",
40
40
  "@types/yargs": "^17.0.32",