@adobe/helix-rum-enhancer 2.43.0 → 2.44.0
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 +7 -0
- package/modules/index.js +10 -1
- package/package.json +1 -1
- package/src/index.js +9 -1
- package/src/index.md5 +1 -1
- package/src/index.sri +1 -1
- package/src/plugins/cwv.md5 +1 -1
- package/src/plugins/martech.md5 +1 -1
- package/src/plugins/onetrust.md5 +1 -1
- package/src/plugins/trustarc.md5 +1 -1
- package/src/plugins/video.md5 +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [2.44.0](https://github.com/adobe/helix-rum-enhancer/compare/v2.43.0...v2.44.0) (2025-10-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* track js and html resources from external domains ([#503](https://github.com/adobe/helix-rum-enhancer/issues/503)) ([ff512bb](https://github.com/adobe/helix-rum-enhancer/commit/ff512bbb04fc51b442359301480073d9264d57a6))
|
|
7
|
+
|
|
1
8
|
# [2.43.0](https://github.com/adobe/helix-rum-enhancer/compare/v2.42.4...v2.43.0) (2025-10-22)
|
|
2
9
|
|
|
3
10
|
|
package/modules/index.js
CHANGED
|
@@ -250,7 +250,16 @@ function addLoadResourceTracking() {
|
|
|
250
250
|
entries
|
|
251
251
|
.filter((e) => !e.responseStatus || e.responseStatus < 400)
|
|
252
252
|
.filter((e) => window.location.hostname === new URL(e.name).hostname || fflags.has('allresources'))
|
|
253
|
-
.filter((e) =>
|
|
253
|
+
.filter((e) => {
|
|
254
|
+
const { pathname, hostname } = new URL(e.name);
|
|
255
|
+
const extensionMatch = pathname.match(
|
|
256
|
+
hostname !== window.location.hostname
|
|
257
|
+
? '.*(\\.html$|\\.json|\\.js|graphql|api)'
|
|
258
|
+
: '.*(\\.plain\\.html$|\\.json|graphql|api)',
|
|
259
|
+
);
|
|
260
|
+
const isDropIn = fflags.has('allresources') && (pathname.includes('__dropins__/storefront-') || pathname.includes('scripts/dropins/storefront-'));
|
|
261
|
+
return extensionMatch || isDropIn;
|
|
262
|
+
})
|
|
254
263
|
.forEach((e) => {
|
|
255
264
|
sampleRUM('loadresource', { source: e.name, target: Math.round(e.duration) });
|
|
256
265
|
});
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -334,7 +334,15 @@
|
|
|
334
334
|
const observer = new PerformanceObserver(list => {
|
|
335
335
|
try {
|
|
336
336
|
const entries = list.getEntries();
|
|
337
|
-
entries.filter(e => !e.responseStatus || e.responseStatus < 400).filter(e => window.location.hostname === new URL(e.name).hostname || fflags.has('allresources')).filter(e =>
|
|
337
|
+
entries.filter(e => !e.responseStatus || e.responseStatus < 400).filter(e => window.location.hostname === new URL(e.name).hostname || fflags.has('allresources')).filter(e => {
|
|
338
|
+
const {
|
|
339
|
+
pathname,
|
|
340
|
+
hostname
|
|
341
|
+
} = new URL(e.name);
|
|
342
|
+
const extensionMatch = pathname.match(hostname !== window.location.hostname ? '.*(\\.html$|\\.json|\\.js|graphql|api)' : '.*(\\.plain\\.html$|\\.json|graphql|api)');
|
|
343
|
+
const isDropIn = fflags.has('allresources') && (pathname.includes('__dropins__/storefront-') || pathname.includes('scripts/dropins/storefront-'));
|
|
344
|
+
return extensionMatch || isDropIn;
|
|
345
|
+
}).forEach(e => {
|
|
338
346
|
sampleRUM('loadresource', {
|
|
339
347
|
source: e.name,
|
|
340
348
|
target: Math.round(e.duration)
|
package/src/index.md5
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
55b1128ec28268801a506ca3ba02e344
|
package/src/index.sri
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
sha384-
|
|
1
|
+
sha384-VosLASRx7DNO3LKUFFVMgcqlBdUzQp8iYtO5V+vKLBOVwf2vWi2qOQYloBWc++NJ
|
package/src/plugins/cwv.md5
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
ac0a97e1c4b43a11eed0a7c4f50389cf
|
package/src/plugins/martech.md5
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
5a20c1d914d19b130034e4df532b8b4d
|
package/src/plugins/onetrust.md5
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
4b5cf6c41be188be11c519f419592e7e
|
package/src/plugins/trustarc.md5
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
907a29e9b683d52ab45c0fc02038916e
|
package/src/plugins/video.md5
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
20d1f82b8a8c89e965f951484f200f35
|