@decentnetwork/lan 0.1.116 → 0.1.118
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.
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/daemon/server.js
CHANGED
|
@@ -637,7 +637,10 @@ export class DaemonServer {
|
|
|
637
637
|
if (p.sending || !p.data) {
|
|
638
638
|
if (p.sending) {
|
|
639
639
|
// The receiver has ACKed the whole file — now it's truly delivered.
|
|
640
|
-
|
|
640
|
+
const mb = (p.size / 1024 / 1024).toFixed(1);
|
|
641
|
+
const secs = p.durationMs !== undefined ? (p.durationMs / 1000).toFixed(1) : "?";
|
|
642
|
+
const rate = p.mbps !== undefined ? p.mbps.toFixed(1) : "?";
|
|
643
|
+
this.logger.info(`File "${p.name}" (${mb} MB) delivered to ${p.friendId.slice(0, 8)} in ${secs}s (${rate} MB/s)`);
|
|
641
644
|
const t = p.fileId ? this.activeSends.get(p.fileId) : undefined;
|
|
642
645
|
if (t) {
|
|
643
646
|
this.messageStore?.patchFile(t.peer, t.msgId, { status: "sent", sent: p.size });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decentnetwork/lan",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.118",
|
|
4
4
|
"description": "Private virtual LAN for self-hosted services and AI agents, built on Elastos Carrier. NAT-traversal, name service, ACL, all over a peer-to-peer mesh — no public IP required.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
81
|
"@decentnetwork/dora": "^0.1.11",
|
|
82
|
-
"@decentnetwork/peer": "^0.1.
|
|
82
|
+
"@decentnetwork/peer": "^0.1.54",
|
|
83
83
|
"ink": "^5.2.1",
|
|
84
84
|
"js-yaml": "^4.1.0",
|
|
85
85
|
"react": "^18.3.1",
|