@jsenv/core 37.1.2 → 37.1.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.
@@ -18732,9 +18732,13 @@ const jsenvPluginRibbon = ({
18732
18732
  appliesDuring: "dev",
18733
18733
  transformUrlContent: {
18734
18734
  html: (urlInfo) => {
18735
+ const jsenvToolbarHtmlClientFileUrl = urlInfo.context.getPluginMeta(
18736
+ "jsenvToolbarHtmlClientFileUrl",
18737
+ );
18735
18738
  if (
18736
- urlInfo.url ===
18737
- urlInfo.context.getPluginMeta("jsenvToolbarHtmlClientFileUrl")
18739
+ jsenvToolbarHtmlClientFileUrl &&
18740
+ // startsWith to ignore search params
18741
+ urlInfo.url.startsWith(jsenvToolbarHtmlClientFileUrl)
18738
18742
  ) {
18739
18743
  return null;
18740
18744
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "37.1.2",
3
+ "version": "37.1.3",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -25,9 +25,13 @@ export const jsenvPluginRibbon = ({
25
25
  appliesDuring: "dev",
26
26
  transformUrlContent: {
27
27
  html: (urlInfo) => {
28
+ const jsenvToolbarHtmlClientFileUrl = urlInfo.context.getPluginMeta(
29
+ "jsenvToolbarHtmlClientFileUrl",
30
+ );
28
31
  if (
29
- urlInfo.url ===
30
- urlInfo.context.getPluginMeta("jsenvToolbarHtmlClientFileUrl")
32
+ jsenvToolbarHtmlClientFileUrl &&
33
+ // startsWith to ignore search params
34
+ urlInfo.url.startsWith(jsenvToolbarHtmlClientFileUrl)
31
35
  ) {
32
36
  return null;
33
37
  }