@decentnetwork/beagle 0.1.72 → 0.1.73
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/dist/server.js +9 -0
- package/package.json +2 -2
package/dist/server.js
CHANGED
|
@@ -1737,6 +1737,15 @@ export function startBeagleServer(opts) {
|
|
|
1737
1737
|
sendJson(res, 200, { ok: true, registered: !!prof, profile: prof });
|
|
1738
1738
|
return;
|
|
1739
1739
|
}
|
|
1740
|
+
// Same payload beagle-web serves at /api/diag. It existed only there,
|
|
1741
|
+
// so a desktop install could not be asked why it was unreachable — the
|
|
1742
|
+
// one question that matters when a friend request does not arrive.
|
|
1743
|
+
// Its own branch, ABOVE /api/desktop: folding it in alongside another
|
|
1744
|
+
// route is how /api/desktop once started returning diag to everyone.
|
|
1745
|
+
if (req.method === "GET" && url === "/api/diag") {
|
|
1746
|
+
sendJson(res, 200, await opts.call({ op: "diag" }));
|
|
1747
|
+
return;
|
|
1748
|
+
}
|
|
1740
1749
|
if (req.method === "GET" && url === "/api/desktop") {
|
|
1741
1750
|
const [diag, pending, flist, ensPub, running] = await Promise.all([
|
|
1742
1751
|
opts.call({ op: "diag" }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decentnetwork/beagle",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.73",
|
|
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,7 +27,7 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@decentnetwork/chat-components": "^0.1.3",
|
|
29
29
|
"@decentnetwork/lan": "^0.1.283",
|
|
30
|
-
"@decentnetwork/peer": "0.1.
|
|
30
|
+
"@decentnetwork/peer": "^0.1.155",
|
|
31
31
|
"@decentnetwork/peer-webrtc": "^0.2.16",
|
|
32
32
|
"js-yaml": "^4.1.0",
|
|
33
33
|
"ws": "^8.21.1",
|