livedesk 0.1.472 → 0.1.474
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/client/package.json +5 -5
- package/electron/main.mjs +5 -4
- package/hub/package.json +1 -1
- package/hub/src/transport/relay-hub-control.js +16 -1
- package/package.json +6 -6
- package/web/dist/assets/index-Bp7BPgXO.js +186 -0
- package/web/dist/index.html +1 -1
- package/web/dist/livedesk-build-evidence.json +9 -9
- package/web/dist/assets/index-DokWawMb.js +0 -186
package/client/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livedesk/client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.222",
|
|
4
4
|
"description": "LiveDesk local remote client",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"ws": "^8.18.3"
|
|
42
42
|
},
|
|
43
43
|
"optionalDependencies": {
|
|
44
|
-
"@livedesk/fast-linux-x64": "0.1.
|
|
45
|
-
"@livedesk/fast-osx-arm64": "0.1.
|
|
46
|
-
"@livedesk/fast-osx-x64": "0.1.
|
|
47
|
-
"@livedesk/fast-win-x64": "0.1.
|
|
44
|
+
"@livedesk/fast-linux-x64": "0.1.427",
|
|
45
|
+
"@livedesk/fast-osx-arm64": "0.1.427",
|
|
46
|
+
"@livedesk/fast-osx-x64": "0.1.427",
|
|
47
|
+
"@livedesk/fast-win-x64": "0.1.427"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|
package/electron/main.mjs
CHANGED
|
@@ -775,10 +775,11 @@ function createMainWindow() {
|
|
|
775
775
|
title: APP_NAME,
|
|
776
776
|
icon: existsSync(iconPath) ? iconPath : nativeImage.createFromDataURL(FALLBACK_ICON_DATA_URL),
|
|
777
777
|
webPreferences: {
|
|
778
|
-
preload: appResource('electron', 'preload.cjs'),
|
|
779
|
-
contextIsolation: true,
|
|
780
|
-
nodeIntegration: false,
|
|
781
|
-
sandbox: true
|
|
778
|
+
preload: appResource('electron', 'preload.cjs'),
|
|
779
|
+
contextIsolation: true,
|
|
780
|
+
nodeIntegration: false,
|
|
781
|
+
sandbox: true,
|
|
782
|
+
spellcheck: false
|
|
782
783
|
}
|
|
783
784
|
});
|
|
784
785
|
mainWindow.webContents.on('will-navigate', (event, url) => {
|
package/hub/package.json
CHANGED
|
@@ -511,6 +511,7 @@ export function createHubRelayControl({
|
|
|
511
511
|
let timerOwnerHighWater = 0;
|
|
512
512
|
let awaitingDrain = false;
|
|
513
513
|
let lastError = '';
|
|
514
|
+
let lastDisconnectReason = '';
|
|
514
515
|
let lastConnectedAt = '';
|
|
515
516
|
let lastTransitionAt = '';
|
|
516
517
|
let state = enabled ? 'idle' : 'disabled';
|
|
@@ -982,8 +983,15 @@ export function createHubRelayControl({
|
|
|
982
983
|
return;
|
|
983
984
|
}
|
|
984
985
|
if (message.type === 'relay.close') {
|
|
986
|
+
const reason = safeText(message.reason, 80) || 'relay-server-closed';
|
|
987
|
+
if (!peerId) {
|
|
988
|
+
lastError = reason;
|
|
989
|
+
lastDisconnectReason = reason;
|
|
990
|
+
connection?.destroy();
|
|
991
|
+
return;
|
|
992
|
+
}
|
|
985
993
|
try {
|
|
986
|
-
closePeer(requirePeerId(message.peerId),
|
|
994
|
+
closePeer(requirePeerId(message.peerId), reason, { notify: false });
|
|
987
995
|
} catch {
|
|
988
996
|
// Invalid untrusted routing fields are ignored.
|
|
989
997
|
}
|
|
@@ -1121,6 +1129,12 @@ export function createHubRelayControl({
|
|
|
1121
1129
|
if (connection !== socket || generation !== connectionGeneration) return;
|
|
1122
1130
|
clearConnectAttemptTimer();
|
|
1123
1131
|
connection = null;
|
|
1132
|
+
const disconnectReason = safeText(lastError, 120) || 'relay-socket-closed';
|
|
1133
|
+
lastDisconnectReason = disconnectReason;
|
|
1134
|
+
logWarn(
|
|
1135
|
+
'relay',
|
|
1136
|
+
`Encrypted relay control disconnected reason=${disconnectReason} peers=${peers.size}`
|
|
1137
|
+
);
|
|
1124
1138
|
clearReceiveChunks();
|
|
1125
1139
|
clearQueue();
|
|
1126
1140
|
closeAllPeers('relay-connection-lost');
|
|
@@ -1340,6 +1354,7 @@ export function createHubRelayControl({
|
|
|
1340
1354
|
queueDropCount: counters.queueDrops,
|
|
1341
1355
|
lastConnectedAt,
|
|
1342
1356
|
lastTransitionAt,
|
|
1357
|
+
lastDisconnectReason,
|
|
1343
1358
|
lastError
|
|
1344
1359
|
};
|
|
1345
1360
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "livedesk",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"livedeskClientVersion": "0.1.
|
|
3
|
+
"version": "0.1.474",
|
|
4
|
+
"livedeskClientVersion": "0.1.222",
|
|
5
5
|
"buildFlavor": "production",
|
|
6
6
|
"description": "LiveDesk Hub and client launcher",
|
|
7
7
|
"type": "module",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"ws": "^8.18.3"
|
|
52
52
|
},
|
|
53
53
|
"optionalDependencies": {
|
|
54
|
-
"@livedesk/fast-linux-x64": "0.1.
|
|
55
|
-
"@livedesk/fast-osx-arm64": "0.1.
|
|
56
|
-
"@livedesk/fast-osx-x64": "0.1.
|
|
57
|
-
"@livedesk/fast-win-x64": "0.1.
|
|
54
|
+
"@livedesk/fast-linux-x64": "0.1.427",
|
|
55
|
+
"@livedesk/fast-osx-arm64": "0.1.427",
|
|
56
|
+
"@livedesk/fast-osx-x64": "0.1.427",
|
|
57
|
+
"@livedesk/fast-win-x64": "0.1.427"
|
|
58
58
|
},
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|