Skip to content

Commit 51362b9

Browse files
chore(release): 2.10.3 [skip ci]
## [2.10.3](v2.10.2...v2.10.3) (2025-11-14) ### Bug Fixes * **deps:** update dependency @adobe/helix-rum-js to v2.13.7 ([#192](#192)) ([ee5a6d4](ee5a6d4))
1 parent ee5a6d4 commit 51362b9

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [2.10.3](https://github.com/adobe/aem-lib/compare/v2.10.2...v2.10.3) (2025-11-14)
2+
3+
4+
### Bug Fixes
5+
6+
* **deps:** update dependency @adobe/helix-rum-js to v2.13.7 ([#192](https://github.com/adobe/aem-lib/issues/192)) ([ee5a6d4](https://github.com/adobe/aem-lib/commit/ee5a6d404da4a69a0ff7506a17112925f2d4989f))
7+
18
## [2.10.2](https://github.com/adobe/aem-lib/compare/v2.10.1...v2.10.2) (2025-10-18)
29

310

dist/aem.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,15 @@ function sampleRUM(checkpoint, data) {
4141
const errData = { source: 'undefined error' };
4242
try {
4343
errData.target = error.toString();
44-
errData.source = error.stack
45-
.split('\n')
46-
.filter((line) => line.match(/https?:\/\//))
47-
.shift()
48-
.replace(/at ([^ ]+) \((.+)\)/, '$1@$2')
49-
.replace(/ at /, '@')
50-
.trim();
44+
if (error.stack) {
45+
errData.source = error.stack
46+
.split('\n')
47+
.filter((line) => line.match(/https?:\/\//))
48+
.shift()
49+
.replace(/at ([^ ]+) \((.+)\)/, '$1@$2')
50+
.replace(/ at /, '@')
51+
.trim();
52+
}
5153
} catch (err) {
5254
/* error structure was not as expected */
5355
}

0 commit comments

Comments
 (0)