@dashup/connector 0.1.6 → 0.1.7
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 +13 -10
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -4017,7 +4017,7 @@ import * as ui from "@clack/prompts";
|
|
|
4017
4017
|
import { z } from "zod";
|
|
4018
4018
|
|
|
4019
4019
|
// package.json
|
|
4020
|
-
var version = "0.1.
|
|
4020
|
+
var version = "0.1.7";
|
|
4021
4021
|
|
|
4022
4022
|
// src/pair.ts
|
|
4023
4023
|
var Invitation = z.object({
|
|
@@ -19488,6 +19488,9 @@ import { dirname as dirname6, join as join10, relative, sep } from "node:path";
|
|
|
19488
19488
|
var run4 = promisify7(execFile7);
|
|
19489
19489
|
var xml = (value2) => value2.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
|
|
19490
19490
|
var NODE_FLAGS = ["--disable-warning=ExperimentalWarning"];
|
|
19491
|
+
var systemctl = (...args2) => run4("systemctl", ["--user", ...args2], {
|
|
19492
|
+
env: { ...process.env, XDG_RUNTIME_DIR: process.env.XDG_RUNTIME_DIR ?? `/run/user/${userInfo().uid}` }
|
|
19493
|
+
});
|
|
19491
19494
|
var serviceFile = () => process.platform === "darwin" ? join10(homedir6(), "Library/LaunchAgents/com.dashup.connector.plist") : process.platform === "win32" ? join10(
|
|
19492
19495
|
process.env.APPDATA ?? join10(homedir6(), "AppData/Roaming"),
|
|
19493
19496
|
"Microsoft/Windows/Start Menu/Programs/Startup/Dashup.vbs"
|
|
@@ -19549,14 +19552,14 @@ async function installStartup() {
|
|
|
19549
19552
|
} else if (process.platform === "win32") {
|
|
19550
19553
|
spawn6("wscript.exe", [path], { detached: true, stdio: "ignore" }).unref();
|
|
19551
19554
|
} else {
|
|
19552
|
-
await run4("
|
|
19553
|
-
|
|
19554
|
-
|
|
19555
|
-
|
|
19556
|
-
|
|
19557
|
-
|
|
19558
|
-
|
|
19559
|
-
|
|
19555
|
+
const note = process.env.DISPLAY || process.env.WAYLAND_DISPLAY ? void 0 : await run4("loginctl", ["enable-linger"]).then(
|
|
19556
|
+
() => void 0,
|
|
19557
|
+
() => `It stops when you log out. To keep it running, run sudo loginctl enable-linger ${userInfo().username}.`
|
|
19558
|
+
);
|
|
19559
|
+
await systemctl("daemon-reload");
|
|
19560
|
+
await systemctl("enable", "dashup.service");
|
|
19561
|
+
await systemctl("restart", "dashup.service");
|
|
19562
|
+
return note;
|
|
19560
19563
|
}
|
|
19561
19564
|
}
|
|
19562
19565
|
async function uninstallStartup() {
|
|
@@ -19564,7 +19567,7 @@ async function uninstallStartup() {
|
|
|
19564
19567
|
if (process.platform === "darwin") await run4("launchctl", ["unload", path]).catch(() => {
|
|
19565
19568
|
});
|
|
19566
19569
|
else if (process.platform !== "win32")
|
|
19567
|
-
await
|
|
19570
|
+
await systemctl("disable", "dashup.service").catch(() => {
|
|
19568
19571
|
});
|
|
19569
19572
|
await rm(path, { force: true });
|
|
19570
19573
|
await rm(join10(dirname6(configPath()), "app"), { recursive: true, force: true });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dashup/connector",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"dashup": "dist/index.js"
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"tsup": "^8.5.1",
|
|
30
30
|
"tsx": "^4.22.4",
|
|
31
31
|
"typescript": "^5.9.3",
|
|
32
|
-
"@dashup/protocol": "0.1.0",
|
|
33
32
|
"@dashup/typescript-config": "0.0.0",
|
|
34
33
|
"@dashup/models": "0.1.0",
|
|
34
|
+
"@parcae/lynx": "0.1.0",
|
|
35
35
|
"@parcae/sdk": "0.8.1",
|
|
36
|
-
"@
|
|
36
|
+
"@dashup/protocol": "0.1.0"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"dashup": "tsx src/index.ts",
|