rails-profiler 0.30.2 → 0.30.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 400b12a8527057594d35b1edbdfb6cd06d62cd3556dcee3735f1cace187af4a3
4
- data.tar.gz: a87676ad05e5834ce146e0f911e38b79e0920c9586a31c491bd152963390b30d
3
+ metadata.gz: 3cc97292b89b1be664408c01611a72768b1212467b9149268ab1d16c8d90219e
4
+ data.tar.gz: f9b2cc7d021b18d65dd0b5232269c4cf1657071d6b0c9416f90ed5df75f16ed3
5
5
  SHA512:
6
- metadata.gz: 307071e40ae04a427453cbfc51ad5dc74f302be27d1b8153439e0d295b6911af386a10bc055b28a8ecf429bb5542bb276ce85208522ba2ad2fb13aa805bd2720
7
- data.tar.gz: cab5b9b209c5e802c6fd1a682ad79683ecc6faa31a832d8a5d128cc23f713299bb504144ebe37cf101166c1fe87effaedef2566a70ea2466f45414cff93591bf
6
+ metadata.gz: '06952a2a976fbd59b49016384d11150b0a394e4e4c902446740e0d328b4c6fbaf7474277e0341ae87dd479de064aa7d80cbac2d289b66a2b886baa3d08b452b2'
7
+ data.tar.gz: 4dc610ff0b4f4aea0f52c76539bb06bfd068f1ebbad87840e2b8448239da77f38fc7ee4e977040f616137bdc06f04e8cfd7936fcf62e80f3d37d36a8016a873a
@@ -9611,20 +9611,28 @@ Duration: ${event.duration.toFixed(2)}ms`;
9611
9611
  const profile = JSON.parse(dataEl.textContent);
9612
9612
  const tab = new URLSearchParams(location.search).get("tab") || "request";
9613
9613
  const embedded = showEl.dataset.embedded === "true";
9614
+ let dashboard;
9614
9615
  if (profile.profile_type === "job") {
9615
- J(/* @__PURE__ */ u3(JobProfileDashboard, { profile, initialTab: tab, embedded }), showEl);
9616
+ dashboard = /* @__PURE__ */ u3(JobProfileDashboard, { profile, initialTab: tab, embedded });
9616
9617
  } else if (profile.profile_type === "console") {
9617
- J(/* @__PURE__ */ u3(ConsoleProfileDashboard, { profile, initialTab: tab, embedded }), showEl);
9618
+ dashboard = /* @__PURE__ */ u3(ConsoleProfileDashboard, { profile, initialTab: tab, embedded });
9618
9619
  } else if (profile.profile_type === "test") {
9619
- J(/* @__PURE__ */ u3(TestProfileDashboard, { profile, initialTab: tab, embedded }), showEl);
9620
+ dashboard = /* @__PURE__ */ u3(TestProfileDashboard, { profile, initialTab: tab, embedded });
9620
9621
  } else {
9621
- J(/* @__PURE__ */ u3(ProfileDashboard, { profile, initialTab: tab, embedded }), showEl);
9622
+ dashboard = /* @__PURE__ */ u3(ProfileDashboard, { profile, initialTab: tab, embedded });
9622
9623
  }
9624
+ J(
9625
+ /* @__PURE__ */ u3(QueryClientProvider, { client: queryClient, children: dashboard }),
9626
+ showEl
9627
+ );
9623
9628
  }
9624
9629
  }
9625
9630
  const testRunnerEl = document.getElementById("profiler-test-runner");
9626
9631
  if (testRunnerEl) {
9627
- J(/* @__PURE__ */ u3(TestRunnerPage, {}), testRunnerEl);
9632
+ J(
9633
+ /* @__PURE__ */ u3(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ u3(TestRunnerPage, {}) }),
9634
+ testRunnerEl
9635
+ );
9628
9636
  }
9629
9637
  if (!indexEl && !showEl && !testRunnerEl) {
9630
9638
  const header = document.querySelector(".header, .profiler-detail");
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Profiler
4
- VERSION = "0.30.2"
4
+ VERSION = "0.30.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-profiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.30.2
4
+ version: 0.30.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Duplessy