@adobe/helix-rum-enhancer 2.3.0 → 2.3.1
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 +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [2.3.1](https://github.com/adobe/helix-rum-enhancer/compare/v2.3.0...v2.3.1) (2024-03-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add json type header to beacon ([a1e0807](https://github.com/adobe/helix-rum-enhancer/commit/a1e0807f735a7c8097c588f401efdb9aac08dfc7))
|
|
7
|
+
|
|
1
8
|
# [2.3.0](https://github.com/adobe/helix-rum-enhancer/compare/v2.2.0...v2.3.0) (2024-03-06)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -82,7 +82,8 @@ function trackCheckpoint(checkpoint, data, t) {
|
|
|
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
84
|
const url = new URL(`.rum/${weight}`, sampleRUM.collectBaseURL || sampleRUM.baseURL).href;
|
|
85
|
-
|
|
85
|
+
const headers = { type: 'application/json' };
|
|
86
|
+
navigator.sendBeacon(url, new Blob([body], headers));
|
|
86
87
|
// eslint-disable-next-line no-console
|
|
87
88
|
console.debug(`ping:${checkpoint}`, pdata);
|
|
88
89
|
};
|