@adobe/helix-rum-enhancer 2.31.0-beta.3 → 2.31.0-beta.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [2.31.0-beta.4](https://github.com/adobe/helix-rum-enhancer/compare/v2.31.0-beta.3...v2.31.0-beta.4) (2025-01-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * plugin path resolution ([f464652](https://github.com/adobe/helix-rum-enhancer/commit/f464652df5bef5f42e0b32c1f10bebef013dd1b0))
7
+
1
8
  # [2.31.0-beta.3](https://github.com/adobe/helix-rum-enhancer/compare/v2.31.0-beta.2...v2.31.0-beta.3) (2025-01-16)
2
9
 
3
10
 
package/modules/index.js CHANGED
@@ -29,7 +29,7 @@ const [blocksMO, mediaMO] = [blocksMCB, mediaMCB].map(createMO);
29
29
  // Check for the presence of a given cookie
30
30
  const hasCookieKey = (key) => () => document.cookie.split(';').some((c) => c.trim().startsWith(`${key}=`));
31
31
 
32
- const pluginBasePath = new URL(document.currentScript.src).href.replace(/index\.(map\.)js/, 'plugins');
32
+ const pluginBasePath = new URL(document.currentScript.src).href.replace(/index(\.map)?\.js/, 'plugins');
33
33
 
34
34
  const PLUGINS = {
35
35
  cwv: `${pluginBasePath}/cwv.js`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-rum-enhancer",
3
- "version": "2.31.0-beta.3",
3
+ "version": "2.31.0-beta.4",
4
4
  "description": "Helix RUM Enhancer",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/index.js CHANGED
@@ -131,7 +131,7 @@
131
131
  const createMO = cb => window.MutationObserver ? new MutationObserver(cb) : {};
132
132
  const [blocksMO, mediaMO] = [blocksMCB, mediaMCB].map(createMO);
133
133
  const hasCookieKey = key => () => document.cookie.split(';').some(c => c.trim().startsWith(`${key}=`));
134
- const pluginBasePath = new URL(document.currentScript.src).href.replace(/index\.(map\.)js/, 'plugins');
134
+ const pluginBasePath = new URL(document.currentScript.src).href.replace(/index(\.map)?\.js/, 'plugins');
135
135
  const PLUGINS = {
136
136
  cwv: `${pluginBasePath}/cwv.js`,
137
137
  form: {
package/src/index.md5 CHANGED
@@ -1 +1 @@
1
- 14a535c39191de54a3eed8ed6a7f8369
1
+ 4496e739d9016b3ea998093c5552cd22
@@ -1 +1 @@
1
- 089e973dcd9f9b5796c161c18e88647f
1
+ 1c696968df786f64dd52b97922bfd98a
@@ -1 +1 @@
1
- f250974ff3074c5f4981dd374f227d18
1
+ d9971432b874269a8d5c21eafb446ed9