@swmansion/argent 0.26.1-next.3 → 0.26.1-next.5

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.3";
21880
+ return "0.26.1-next.5";
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.3";
16733
+ return "0.26.1-next.5";
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.3";
94814
+ return "0.26.1-next.5";
94815
94815
  }
94816
94816
  return "0.0.0";
94817
94817
  }
@@ -120560,14 +120560,15 @@ var reactProfilerSessionBlueprint = {
120560
120560
  disposeSession: () => events.emit("terminated")
120561
120561
  };
120562
120562
  await cdp.send("Profiler.enable").catch(warnOnError("Profiler.enable"));
120563
- cdp.events.on("scriptParsed", (script) => {
120563
+ const onScriptParsed = (script) => {
120564
120564
  if (script.sourceMapURL) {
120565
120565
  state3.scriptSources.set(script.scriptId, {
120566
120566
  url: script.url,
120567
120567
  sourceMapURL: script.sourceMapURL
120568
120568
  });
120569
120569
  }
120570
- });
120570
+ };
120571
+ cdp.events.on("scriptParsed", onScriptParsed);
120571
120572
  await cdp.evaluate(FIBER_ROOT_TRACKER_SCRIPT).catch(warnOnError("FIBER_ROOT_TRACKER_SCRIPT"));
120572
120573
  try {
120573
120574
  const archJson = await cdp.evaluate(
@@ -120603,7 +120604,7 @@ var reactProfilerSessionBlueprint = {
120603
120604
  } catch (err) {
120604
120605
  warnOnError("Hermes version probe")(err);
120605
120606
  }
120606
- cdp.events.on("disconnected", (error52) => {
120607
+ const onDisconnected = (error52) => {
120607
120608
  if (state3.profilingActive) {
120608
120609
  clearCachedProfilerPaths(state3.port, state3.deviceId);
120609
120610
  }
@@ -120616,10 +120617,13 @@ var reactProfilerSessionBlueprint = {
120616
120617
  error_kind: "network"
120617
120618
  })
120618
120619
  );
120619
- });
120620
+ };
120621
+ cdp.events.on("disconnected", onDisconnected);
120620
120622
  return {
120621
120623
  api: state3,
120622
120624
  dispose: async () => {
120625
+ cdp.events.off("scriptParsed", onScriptParsed);
120626
+ cdp.events.off("disconnected", onDisconnected);
120623
120627
  if (state3.profilingActive) {
120624
120628
  state3.profilingActive = false;
120625
120629
  await cdp.send("Runtime.evaluate", {
@@ -147087,7 +147091,7 @@ var MAX_ENTRY_RENDER_CHARS = 200;
147087
147091
  function badEntry(raw, detail) {
147088
147092
  let rendered;
147089
147093
  try {
147090
- rendered = JSON.stringify(raw);
147094
+ rendered = JSON.stringify(raw) ?? String(raw);
147091
147095
  } catch {
147092
147096
  rendered = "[cyclic entry]";
147093
147097
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.26.1-next.3",
3
+ "version": "0.26.1-next.5",
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",