@adobe/helix-rum-enhancer 2.2.0 → 2.3.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/package.json +1 -1
- package/src/index.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [2.3.0](https://github.com/adobe/helix-rum-enhancer/compare/v2.2.0...v2.3.0) (2024-03-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **minirum:** allow different base urls for collection and extra scripts ([c32c7b9](https://github.com/adobe/helix-rum-enhancer/commit/c32c7b9c3f7838ced71e372889fb618b3befe098))
|
|
7
|
+
|
|
1
8
|
# [2.2.0](https://github.com/adobe/helix-rum-enhancer/compare/v2.1.1...v2.2.0) (2024-03-04)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -81,7 +81,7 @@ function trackCheckpoint(checkpoint, data, t) {
|
|
|
81
81
|
const sendPing = (pdata = data) => {
|
|
82
82
|
// eslint-disable-next-line object-curly-newline, max-len
|
|
83
83
|
const body = JSON.stringify({ weight, id, sanitizeURL: urlSanitizers[window.hlx.RUM_MASK_URL || 'path'], checkpoint, t, ...data }, KNOWN_PROPERTIES);
|
|
84
|
-
const url = new URL(`.rum/${weight}`, sampleRUM.baseURL).href;
|
|
84
|
+
const url = new URL(`.rum/${weight}`, sampleRUM.collectBaseURL || sampleRUM.baseURL).href;
|
|
85
85
|
navigator.sendBeacon(url, body);
|
|
86
86
|
// eslint-disable-next-line no-console
|
|
87
87
|
console.debug(`ping:${checkpoint}`, pdata);
|