@staff0rd/assist 0.768.2 → 0.768.4
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/commands/sessions/web/bundle.js +284 -284
- 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.768.
|
|
9
|
+
version: "0.768.4",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -15748,9 +15748,14 @@ function linkedRequester(req) {
|
|
|
15748
15748
|
|
|
15749
15749
|
// src/commands/sessions/web/restartMenu/reExecWebServer.ts
|
|
15750
15750
|
import { spawnSync as spawnSync5 } from "child_process";
|
|
15751
|
-
|
|
15752
|
-
|
|
15751
|
+
|
|
15752
|
+
// src/commands/sessions/web/restartMenu/resolveExecve.ts
|
|
15753
|
+
function resolveExecve(platform = process.platform, execve = process.execve?.bind(process)) {
|
|
15754
|
+
if (platform === "win32") return null;
|
|
15755
|
+
return execve ?? null;
|
|
15753
15756
|
}
|
|
15757
|
+
|
|
15758
|
+
// src/commands/sessions/web/restartMenu/reExecWebServer.ts
|
|
15754
15759
|
function withNoOpen(args) {
|
|
15755
15760
|
return args.includes("--no-open") ? args : [...args, "--no-open"];
|
|
15756
15761
|
}
|
|
@@ -15789,7 +15794,12 @@ async function restartWeb(req, res, deps2 = {}) {
|
|
|
15789
15794
|
res.once("finish", resolve28);
|
|
15790
15795
|
respondJson(res, 200, { ok: true });
|
|
15791
15796
|
});
|
|
15792
|
-
|
|
15797
|
+
try {
|
|
15798
|
+
await performRestart(target, deps2);
|
|
15799
|
+
} catch (error) {
|
|
15800
|
+
const message3 = error instanceof Error ? error.message : String(error);
|
|
15801
|
+
console.log(`restart ${target} failed: ${message3}`);
|
|
15802
|
+
}
|
|
15793
15803
|
}
|
|
15794
15804
|
async function performRestart(target, deps2 = {}) {
|
|
15795
15805
|
const { restartDaemonFn = restartDaemon, reExecFn = reExecWebServer } = deps2;
|