@swmansion/argent 0.25.1-next.17 → 0.25.1-next.18

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-cmds.mjs CHANGED
@@ -21857,7 +21857,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
21857
21857
  var SESSION_ID2 = randomUUID5();
21858
21858
  function readCliVersion() {
21859
21859
  if (true) {
21860
- return "0.25.1-next.17";
21860
+ return "0.25.1-next.18";
21861
21861
  }
21862
21862
  return "0.0.0";
21863
21863
  }
@@ -16710,7 +16710,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
16710
16710
  var SESSION_ID = randomUUID4();
16711
16711
  function readCliVersion() {
16712
16712
  if (true) {
16713
- return "0.25.1-next.17";
16713
+ return "0.25.1-next.18";
16714
16714
  }
16715
16715
  return "0.0.0";
16716
16716
  }
@@ -94704,7 +94704,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
94704
94704
  var SESSION_ID = (0, import_node_crypto3.randomUUID)();
94705
94705
  function readCliVersion() {
94706
94706
  if (true) {
94707
- return "0.25.1-next.17";
94707
+ return "0.25.1-next.18";
94708
94708
  }
94709
94709
  return "0.0.0";
94710
94710
  }
@@ -109055,16 +109055,18 @@ async function browserWebSocketUrl(port, signal) {
109055
109055
  }
109056
109056
  return url2;
109057
109057
  }
109058
+ var CDP_HTTP_TIMEOUT_MS = 5e3;
109058
109059
  async function fetchJson(url2, signal) {
109059
109060
  let res;
109060
109061
  try {
109061
- res = await fetch(url2, { signal });
109062
+ res = await fetch(url2, { signal: signal ?? AbortSignal.timeout(CDP_HTTP_TIMEOUT_MS) });
109062
109063
  } catch (err) {
109063
109064
  if (err instanceof Error && err.name === "AbortError") throw err;
109065
+ const timedOut2 = err instanceof Error && err.name === "TimeoutError";
109064
109066
  const code = err.code ?? err.cause?.code;
109065
- const network_failure = code === "ECONNREFUSED" ? "connection_refused" : code === "ECONNRESET" ? "connection_reset" : code === "ETIMEDOUT" || code === "UND_ERR_CONNECT_TIMEOUT" ? "timeout" : "other";
109067
+ const network_failure = timedOut2 ? "timeout" : code === "ECONNREFUSED" ? "connection_refused" : code === "ECONNRESET" ? "connection_reset" : code === "ETIMEDOUT" || code === "UND_ERR_CONNECT_TIMEOUT" ? "timeout" : "other";
109066
109068
  throw new FailureError(
109067
- `Chromium CDP discovery: GET ${url2} could not connect. Is the app running with --remote-debugging-port?`,
109069
+ timedOut2 ? `Chromium CDP discovery: GET ${url2} timed out. Something is holding port ${new URL(url2).port} without answering CDP.` : `Chromium CDP discovery: GET ${url2} could not connect. Is the app running with --remote-debugging-port?`,
109068
109070
  {
109069
109071
  error_code: FAILURE_CODES.CHROMIUM_CDP_UNREACHABLE,
109070
109072
  failure_stage: "chromium_cdp_discovery_connect",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.25.1-next.17",
3
+ "version": "0.25.1-next.18",
4
4
  "mcpName": "io.github.software-mansion/argent",
5
5
  "description": "MCP server for iOS Simulator and Android Emulator control",
6
6
  "license": "Apache-2.0",