@jsenv/core 37.1.2 → 37.1.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.
@@ -11914,7 +11914,8 @@ const createPluginController = (kitchenContext) => {
11914
11914
  key === "name" ||
11915
11915
  key === "appliesDuring" ||
11916
11916
  key === "init" ||
11917
- key === "serverEvents"
11917
+ key === "serverEvents" ||
11918
+ key === "meta"
11918
11919
  ) {
11919
11920
  return;
11920
11921
  }
@@ -18732,9 +18733,13 @@ const jsenvPluginRibbon = ({
18732
18733
  appliesDuring: "dev",
18733
18734
  transformUrlContent: {
18734
18735
  html: (urlInfo) => {
18736
+ const jsenvToolbarHtmlClientFileUrl = urlInfo.context.getPluginMeta(
18737
+ "jsenvToolbarHtmlClientFileUrl",
18738
+ );
18735
18739
  if (
18736
- urlInfo.url ===
18737
- urlInfo.context.getPluginMeta("jsenvToolbarHtmlClientFileUrl")
18740
+ jsenvToolbarHtmlClientFileUrl &&
18741
+ // startsWith to ignore search params
18742
+ urlInfo.url.startsWith(jsenvToolbarHtmlClientFileUrl)
18738
18743
  ) {
18739
18744
  return null;
18740
18745
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "37.1.2",
3
+ "version": "37.1.4",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -57,7 +57,8 @@ export const createPluginController = (kitchenContext) => {
57
57
  key === "name" ||
58
58
  key === "appliesDuring" ||
59
59
  key === "init" ||
60
- key === "serverEvents"
60
+ key === "serverEvents" ||
61
+ key === "meta"
61
62
  ) {
62
63
  return;
63
64
  }
@@ -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
  }