replicas-cli 0.2.347 → 0.2.348

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.
Files changed (2) hide show
  1. package/dist/index.mjs +14 -12
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -9601,7 +9601,20 @@ var HOOK_EXEC_MAX_BUFFER_BYTES = 10 * 1024 * 1024;
9601
9601
  var REPLICAS_CONFIG_FILENAMES = ["replicas.json", "replicas.yaml", "replicas.yml"];
9602
9602
 
9603
9603
  // ../shared/src/cli-version.ts
9604
- var CLI_VERSION = "0.2.347";
9604
+ var CLI_VERSION = "0.2.348";
9605
+
9606
+ // ../shared/src/version.ts
9607
+ function compareVersions(v1, v2) {
9608
+ const parts1 = v1.split(".").map(Number);
9609
+ const parts2 = v2.split(".").map(Number);
9610
+ for (let i = 0; i < Math.max(parts1.length, parts2.length); i++) {
9611
+ const num1 = parts1[i] || 0;
9612
+ const num2 = parts2[i] || 0;
9613
+ if (num1 > num2) return 1;
9614
+ if (num1 < num2) return -1;
9615
+ }
9616
+ return 0;
9617
+ }
9605
9618
 
9606
9619
  // ../shared/src/engine/environment.ts
9607
9620
  var DESKTOP_NOVNC_PORT = 6080;
@@ -13094,17 +13107,6 @@ function initCommand(options) {
13094
13107
  import chalk14 from "chalk";
13095
13108
  var MONOLITH_URL2 = process.env.REPLICAS_MONOLITH_URL || "https://api.tryreplicas.com";
13096
13109
  var VERSION_CHECK_TIMEOUT = 2e3;
13097
- function compareVersions(v1, v2) {
13098
- const parts1 = v1.split(".").map(Number);
13099
- const parts2 = v2.split(".").map(Number);
13100
- for (let i = 0; i < Math.max(parts1.length, parts2.length); i++) {
13101
- const num1 = parts1[i] || 0;
13102
- const num2 = parts2[i] || 0;
13103
- if (num1 > num2) return 1;
13104
- if (num1 < num2) return -1;
13105
- }
13106
- return 0;
13107
- }
13108
13110
  async function checkForUpdates(currentVersion) {
13109
13111
  try {
13110
13112
  const controller = new AbortController();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.2.347",
3
+ "version": "0.2.348",
4
4
  "description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
5
5
  "main": "dist/index.mjs",
6
6
  "bin": {