@decentnetwork/lan 0.1.231 → 0.1.232

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.
@@ -2972,14 +2972,9 @@ function DkApp() {
2972
2972
  if (!activeId || !text || !text.trim()) return;
2973
2973
  dkApi.send(activeId, text.trim()).then(() => data.loadThread(activeId)).then(data.refresh);
2974
2974
  };
2975
- const onSendFile = (file, onProgress) => {
2975
+ const onSendFile = (file) => {
2976
2976
  if (!activeId || !file) return Promise.resolve({ ok: false });
2977
- return rtcFileCtl.sendFile(activeId, file, onProgress).then((r) => {
2978
- if (r && r.ok && r.via === "webrtc") {
2979
- return dkApi.send(activeId, (t.lang === "zh" ? "\u5DF2\u901A\u8FC7 WebRTC \u53D1\u9001\u6587\u4EF6: " : "sent file via WebRTC: ") + file.name).then(() => ({ ok: true, via: "webrtc" }));
2980
- }
2981
- return dkApi.sendFile(activeId, file);
2982
- }).then((r) => {
2977
+ return dkApi.sendFile(activeId, file).then((r) => {
2983
2978
  data.loadThread(activeId);
2984
2979
  data.refresh();
2985
2980
  return r;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decentnetwork/lan",
3
- "version": "0.1.231",
3
+ "version": "0.1.232",
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",