@posthog/rrweb 0.0.41 → 0.0.42
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/dist/rrweb.cjs +11 -0
- package/dist/rrweb.cjs.map +1 -1
- package/dist/rrweb.d.cts +6 -0
- package/dist/rrweb.d.ts +6 -0
- package/dist/rrweb.js +12 -1
- package/dist/rrweb.js.map +1 -1
- package/dist/rrweb.umd.cjs +11 -0
- package/dist/rrweb.umd.cjs.map +4 -4
- package/dist/rrweb.umd.min.cjs +19 -19
- package/dist/rrweb.umd.min.cjs.map +4 -4
- package/package.json +5 -5
package/dist/rrweb.cjs
CHANGED
|
@@ -1150,6 +1150,14 @@ function slimDOMExcluded(sn, slimDOMOptions) {
|
|
|
1150
1150
|
}
|
|
1151
1151
|
const DEFAULT_MAX_DEPTH = 50;
|
|
1152
1152
|
let _maxDepthWarned = false;
|
|
1153
|
+
let _maxDepthReached = false;
|
|
1154
|
+
function wasMaxDepthReached() {
|
|
1155
|
+
return _maxDepthReached;
|
|
1156
|
+
}
|
|
1157
|
+
function resetMaxDepthState() {
|
|
1158
|
+
_maxDepthReached = false;
|
|
1159
|
+
_maxDepthWarned = false;
|
|
1160
|
+
}
|
|
1153
1161
|
function serializeNodeWithId(n2, options) {
|
|
1154
1162
|
const {
|
|
1155
1163
|
doc,
|
|
@@ -1180,6 +1188,7 @@ function serializeNodeWithId(n2, options) {
|
|
|
1180
1188
|
let { needsMask } = options;
|
|
1181
1189
|
let { preserveWhiteSpace = true } = options;
|
|
1182
1190
|
if (depth >= maxDepth) {
|
|
1191
|
+
_maxDepthReached = true;
|
|
1183
1192
|
if (!_maxDepthWarned) {
|
|
1184
1193
|
_maxDepthWarned = true;
|
|
1185
1194
|
console.warn(
|
|
@@ -18202,6 +18211,8 @@ exports.addCustomEvent = addCustomEvent;
|
|
|
18202
18211
|
exports.canvasMutation = canvasMutation;
|
|
18203
18212
|
exports.freezePage = freezePage;
|
|
18204
18213
|
exports.record = record;
|
|
18214
|
+
exports.resetMaxDepthState = resetMaxDepthState;
|
|
18205
18215
|
exports.takeFullSnapshot = takeFullSnapshot;
|
|
18206
18216
|
exports.utils = utils;
|
|
18217
|
+
exports.wasMaxDepthReached = wasMaxDepthReached;
|
|
18207
18218
|
//# sourceMappingURL=rrweb.cjs.map
|