@meltstudio/meltctl 4.98.0 → 4.100.0
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 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var CLI_VERSION;
|
|
|
14
14
|
var init_version = __esm({
|
|
15
15
|
"src/utils/version.ts"() {
|
|
16
16
|
"use strict";
|
|
17
|
-
CLI_VERSION = "4.
|
|
17
|
+
CLI_VERSION = "4.100.0";
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
|
|
@@ -1691,8 +1691,19 @@ function printBanner() {
|
|
|
1691
1691
|
// src/commands/login.ts
|
|
1692
1692
|
var LOGIN_TIMEOUT_MS = 6e4;
|
|
1693
1693
|
function openBrowser(url) {
|
|
1694
|
-
|
|
1695
|
-
|
|
1694
|
+
let command;
|
|
1695
|
+
if (process.platform === "darwin") {
|
|
1696
|
+
command = `open "${url}"`;
|
|
1697
|
+
} else if (process.platform === "win32") {
|
|
1698
|
+
command = `start "" "${url}"`;
|
|
1699
|
+
} else {
|
|
1700
|
+
command = `xdg-open "${url}"`;
|
|
1701
|
+
}
|
|
1702
|
+
exec(command, (err) => {
|
|
1703
|
+
if (err) {
|
|
1704
|
+
console.log(chalk5.dim(` Couldn't auto-open browser: ${err.message}`));
|
|
1705
|
+
}
|
|
1706
|
+
});
|
|
1696
1707
|
}
|
|
1697
1708
|
function findFreePort() {
|
|
1698
1709
|
return new Promise((resolve, reject) => {
|
package/package.json
CHANGED