omnara 0.5.1 → 0.5.2

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/cli.js CHANGED
@@ -8495,8 +8495,13 @@ function waitForOpen(ws) {
8495
8495
  const settle = (error) => {
8496
8496
  cleanup();
8497
8497
  if (error) {
8498
- if (ws.readyState === WebSocket.CONNECTING) {
8499
- ws.terminate();
8498
+ try {
8499
+ if (ws.readyState === WebSocket.CONNECTING) {
8500
+ ws.terminate();
8501
+ } else if (ws.readyState === WebSocket.OPEN) {
8502
+ ws.close();
8503
+ }
8504
+ } catch {
8500
8505
  }
8501
8506
  reject(error);
8502
8507
  } else {
@@ -17764,7 +17769,7 @@ var FALLBACK_NAME = pkg.name ?? "omnara";
17764
17769
  var FALLBACK_VERSION = pkg.version ?? "0.0.0";
17765
17770
  var FALLBACK_DESCRIPTION = pkg.description ?? "Command-line interface for Omnara.";
17766
17771
  var PACKAGE_NAME = true ? "omnara" : FALLBACK_NAME;
17767
- var PACKAGE_VERSION = true ? "0.5.1" : FALLBACK_VERSION;
17772
+ var PACKAGE_VERSION = true ? "0.5.2" : FALLBACK_VERSION;
17768
17773
  var PACKAGE_DESCRIPTION = true ? "Command-line interface for Omnara." : FALLBACK_DESCRIPTION;
17769
17774
 
17770
17775
  // src/daemon/machine-supervisor.ts