@adobe/helix-rum-enhancer
Advanced tools
Comparing version 2.26.1 to 2.26.2
@@ -0,1 +1,8 @@ | ||
## [2.26.2](https://github.com/adobe/helix-rum-enhancer/compare/v2.26.1...v2.26.2) (2024-12-11) | ||
### Bug Fixes | ||
* do not process duplicate navigation checkpoints ([#331](https://github.com/adobe/helix-rum-enhancer/issues/331)) ([4b6843f](https://github.com/adobe/helix-rum-enhancer/commit/4b6843f4cbe7b685ffc0c017a46274e505b26b56)) | ||
## [2.26.1](https://github.com/adobe/helix-rum-enhancer/compare/v2.26.0...v2.26.1) (2024-12-10) | ||
@@ -2,0 +9,0 @@ |
@@ -148,9 +148,12 @@ /* | ||
const processed = new Set(); // avoid processing duplicate types | ||
new PerformanceObserver((list) => list | ||
.getEntries().map((e) => navigate( | ||
.getEntries() | ||
.filter(({ type }) => !processed.has(type)) | ||
.map((e) => [e, processed.add(e.type)]) | ||
.map(([e]) => navigate( | ||
window.hlx.referrer || document.referrer, | ||
e.type, | ||
e.redirectCount, | ||
))) | ||
.observe({ type: 'navigation', buffered: true }); | ||
))).observe({ type: 'navigation', buffered: true }); | ||
} | ||
@@ -157,0 +160,0 @@ |
{ | ||
"name": "@adobe/helix-rum-enhancer", | ||
"version": "2.26.1", | ||
"version": "2.26.2", | ||
"description": "Helix RUM Enhancer", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -296,9 +296,12 @@ /* | ||
}; | ||
const processed = new Set(); | ||
new PerformanceObserver((list) => list | ||
.getEntries().map((e) => navigate( | ||
.getEntries() | ||
.filter(({ type }) => !processed.has(type)) | ||
.map((e) => [e, processed.add(e.type)]) | ||
.map(([e]) => navigate( | ||
window.hlx.referrer || document.referrer, | ||
e.type, | ||
e.redirectCount, | ||
))) | ||
.observe({ type: 'navigation', buffered: true }); | ||
))).observe({ type: 'navigation', buffered: true }); | ||
} | ||
@@ -305,0 +308,0 @@ function addLoadResourceTracking() { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
94545
1204