@swmansion/argent 0.26.1-next.2 → 0.26.1-next.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.
package/dist/cli-cmds.mjs CHANGED
@@ -21877,7 +21877,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
21877
21877
  var SESSION_ID2 = randomUUID5();
21878
21878
  function readCliVersion() {
21879
21879
  if (true) {
21880
- return "0.26.1-next.2";
21880
+ return "0.26.1-next.4";
21881
21881
  }
21882
21882
  return "0.0.0";
21883
21883
  }
@@ -16730,7 +16730,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
16730
16730
  var SESSION_ID = randomUUID4();
16731
16731
  function readCliVersion() {
16732
16732
  if (true) {
16733
- return "0.26.1-next.2";
16733
+ return "0.26.1-next.4";
16734
16734
  }
16735
16735
  return "0.0.0";
16736
16736
  }
@@ -94811,7 +94811,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
94811
94811
  var SESSION_ID = (0, import_node_crypto3.randomUUID)();
94812
94812
  function readCliVersion() {
94813
94813
  if (true) {
94814
- return "0.26.1-next.2";
94814
+ return "0.26.1-next.4";
94815
94815
  }
94816
94816
  return "0.0.0";
94817
94817
  }
@@ -109217,6 +109217,7 @@ init_device_info();
109217
109217
  var fs20 = __toESM(require("node:fs"));
109218
109218
  var os8 = __toESM(require("node:os"));
109219
109219
  var path18 = __toESM(require("node:path"));
109220
+ init_src2();
109220
109221
  init_device_info();
109221
109222
 
109222
109223
  // ../tool-server/src/blueprints/chromium-cdp.ts
@@ -110876,10 +110877,12 @@ async function probePort(port, timeoutMs) {
110876
110877
  browser: version3.Browser ?? null,
110877
110878
  state: "Running"
110878
110879
  };
110879
- } catch {
110880
- TRACKED_PORTS.delete(port);
110881
- if (loadPersistedPorts().includes(port)) {
110882
- persistPorts((ports) => ports.delete(port));
110880
+ } catch (err) {
110881
+ if (getFailureSignal(err)?.error_code === FAILURE_CODES.CHROMIUM_CDP_UNREACHABLE) {
110882
+ TRACKED_PORTS.delete(port);
110883
+ if (loadPersistedPorts().includes(port)) {
110884
+ persistPorts((ports) => ports.delete(port));
110885
+ }
110883
110886
  }
110884
110887
  return null;
110885
110888
  } finally {
@@ -120557,14 +120560,15 @@ var reactProfilerSessionBlueprint = {
120557
120560
  disposeSession: () => events.emit("terminated")
120558
120561
  };
120559
120562
  await cdp.send("Profiler.enable").catch(warnOnError("Profiler.enable"));
120560
- cdp.events.on("scriptParsed", (script) => {
120563
+ const onScriptParsed = (script) => {
120561
120564
  if (script.sourceMapURL) {
120562
120565
  state3.scriptSources.set(script.scriptId, {
120563
120566
  url: script.url,
120564
120567
  sourceMapURL: script.sourceMapURL
120565
120568
  });
120566
120569
  }
120567
- });
120570
+ };
120571
+ cdp.events.on("scriptParsed", onScriptParsed);
120568
120572
  await cdp.evaluate(FIBER_ROOT_TRACKER_SCRIPT).catch(warnOnError("FIBER_ROOT_TRACKER_SCRIPT"));
120569
120573
  try {
120570
120574
  const archJson = await cdp.evaluate(
@@ -120600,7 +120604,7 @@ var reactProfilerSessionBlueprint = {
120600
120604
  } catch (err) {
120601
120605
  warnOnError("Hermes version probe")(err);
120602
120606
  }
120603
- cdp.events.on("disconnected", (error52) => {
120607
+ const onDisconnected = (error52) => {
120604
120608
  if (state3.profilingActive) {
120605
120609
  clearCachedProfilerPaths(state3.port, state3.deviceId);
120606
120610
  }
@@ -120613,10 +120617,13 @@ var reactProfilerSessionBlueprint = {
120613
120617
  error_kind: "network"
120614
120618
  })
120615
120619
  );
120616
- });
120620
+ };
120621
+ cdp.events.on("disconnected", onDisconnected);
120617
120622
  return {
120618
120623
  api: state3,
120619
120624
  dispose: async () => {
120625
+ cdp.events.off("scriptParsed", onScriptParsed);
120626
+ cdp.events.off("disconnected", onDisconnected);
120620
120627
  if (state3.profilingActive) {
120621
120628
  state3.profilingActive = false;
120622
120629
  await cdp.send("Runtime.evaluate", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.26.1-next.2",
3
+ "version": "0.26.1-next.4",
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",