simvyn 2.5.2 → 2.5.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.
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
}
|
|
39
39
|
</style>
|
|
40
40
|
<title>simvyn</title>
|
|
41
|
-
<script type="module" crossorigin src="/assets/index-
|
|
41
|
+
<script type="module" crossorigin src="/assets/index-rWeZ9VzX.js"></script>
|
|
42
42
|
<link rel="stylesheet" crossorigin href="/assets/index-C-atBUQQ.css">
|
|
43
43
|
</head>
|
|
44
44
|
<body>
|
package/dist/index.js
CHANGED
|
@@ -9119,6 +9119,9 @@ ${P} > ^ <${R}
|
|
|
9119
9119
|
process.on("SIGTERM", shutdown);
|
|
9120
9120
|
}
|
|
9121
9121
|
|
|
9122
|
+
// src/commands/start.ts
|
|
9123
|
+
import boxen from "boxen";
|
|
9124
|
+
|
|
9122
9125
|
// src/update-check.ts
|
|
9123
9126
|
function isNewer(latest, current) {
|
|
9124
9127
|
const l = latest.split(".").map(Number);
|
|
@@ -9159,23 +9162,17 @@ async function runStart(cliOpts, ctx) {
|
|
|
9159
9162
|
});
|
|
9160
9163
|
checkForUpdate(ctx.version).then((result) => {
|
|
9161
9164
|
if (!result || !result.needsUpdate) return;
|
|
9162
|
-
const dim = "\x1B[2m";
|
|
9163
9165
|
const yellow = "\x1B[33m";
|
|
9164
9166
|
const green = "\x1B[32m";
|
|
9165
9167
|
const cyan = "\x1B[36m";
|
|
9166
9168
|
const reset = "\x1B[0m";
|
|
9167
|
-
|
|
9168
|
-
|
|
9169
|
-
|
|
9170
|
-
|
|
9171
|
-
`${dim} \u2502${reset} ${yellow}Update available:${reset} ${dim}${ctx.version}${reset} \u2192 ${green}${result.latest}${reset} ${dim}\u2502${reset}`
|
|
9172
|
-
);
|
|
9169
|
+
const msg = [
|
|
9170
|
+
`${yellow}Update available:${reset} ${ctx.version} \u2192 ${green}${result.latest}${reset}`,
|
|
9171
|
+
`Run ${cyan}simvyn upgrade${reset} to update`
|
|
9172
|
+
].join("\n");
|
|
9173
9173
|
console.log(
|
|
9174
|
-
|
|
9174
|
+
"\n" + boxen(msg, { padding: 1, margin: { left: 2 }, borderStyle: "round", dimBorder: true }) + "\n"
|
|
9175
9175
|
);
|
|
9176
|
-
console.log(`${dim} \u2502 \u2502${reset}`);
|
|
9177
|
-
console.log(`${dim} \u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256F${reset}`);
|
|
9178
|
-
console.log();
|
|
9179
9176
|
});
|
|
9180
9177
|
}
|
|
9181
9178
|
function registerStartCommand(program2, ctx) {
|
|
@@ -9218,7 +9215,7 @@ program.command("upgrade").description("Upgrade simvyn to the latest version").a
|
|
|
9218
9215
|
console.log(`Upgrading ${dim}${pkg.version}${reset} \u2192 ${green}${result.latest}${reset}
|
|
9219
9216
|
`);
|
|
9220
9217
|
try {
|
|
9221
|
-
execSync(
|
|
9218
|
+
execSync("npm install -g simvyn@latest", { stdio: "inherit" });
|
|
9222
9219
|
console.log(`
|
|
9223
9220
|
${green}Successfully upgraded to ${result.latest}${reset}`);
|
|
9224
9221
|
} catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "simvyn",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Universal mobile device devtool — control iOS Simulators, Android Emulators, and real devices from a single dashboard and CLI",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"@tmcw/togeojson": "^7.1.2",
|
|
54
54
|
"@xmldom/xmldom": "^0.8.11",
|
|
55
55
|
"better-sqlite3": "^12.6.2",
|
|
56
|
+
"boxen": "^8.0.1",
|
|
56
57
|
"cfonts": "^3.3.1",
|
|
57
58
|
"commander": "^14",
|
|
58
59
|
"fastify": "^5.7.4",
|