@staff0rd/assist 0.324.0 → 0.324.1
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/index.js +14 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.324.
|
|
9
|
+
version: "0.324.1",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -20908,11 +20908,21 @@ function windowsDaemonHost() {
|
|
|
20908
20908
|
}
|
|
20909
20909
|
|
|
20910
20910
|
// src/commands/sessions/daemon/connectToWindowsDaemon.ts
|
|
20911
|
+
var CONNECT_TIMEOUT_MS = 2e3;
|
|
20912
|
+
var KEEPALIVE_PROBE_MS = 1e4;
|
|
20911
20913
|
function connectToWindowsDaemon() {
|
|
20912
20914
|
return new Promise((resolve17, reject) => {
|
|
20913
20915
|
const socket = net2.connect(windowsDaemonPort(), windowsDaemonHost());
|
|
20914
|
-
socket.
|
|
20915
|
-
socket.once("
|
|
20916
|
+
socket.setTimeout(CONNECT_TIMEOUT_MS);
|
|
20917
|
+
socket.once("timeout", () => {
|
|
20918
|
+
socket.destroy();
|
|
20919
|
+
reject(new Error("windows daemon connect timed out"));
|
|
20920
|
+
});
|
|
20921
|
+
socket.once("connect", () => {
|
|
20922
|
+
socket.setTimeout(0);
|
|
20923
|
+
socket.setKeepAlive(true, KEEPALIVE_PROBE_MS);
|
|
20924
|
+
resolve17(socket);
|
|
20925
|
+
});
|
|
20916
20926
|
socket.once("error", reject);
|
|
20917
20927
|
});
|
|
20918
20928
|
}
|
|
@@ -21071,7 +21081,7 @@ function versionsMatch(a, b) {
|
|
|
21071
21081
|
|
|
21072
21082
|
// src/commands/sessions/daemon/WindowsProxyState.ts
|
|
21073
21083
|
var MAX_SCROLLBACK2 = 256 * 1024;
|
|
21074
|
-
var DEFAULT_CREATE_TIMEOUT_MS =
|
|
21084
|
+
var DEFAULT_CREATE_TIMEOUT_MS = 5e3;
|
|
21075
21085
|
function createState(broadcast2, onSessionsChanged, onVersionMismatch, createTimeoutMs = DEFAULT_CREATE_TIMEOUT_MS) {
|
|
21076
21086
|
return {
|
|
21077
21087
|
windowsSessions: [],
|