@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.umd.cjs
CHANGED
|
@@ -1183,6 +1183,14 @@ function slimDOMExcluded(sn, slimDOMOptions) {
|
|
|
1183
1183
|
}
|
|
1184
1184
|
const DEFAULT_MAX_DEPTH = 50;
|
|
1185
1185
|
let _maxDepthWarned = false;
|
|
1186
|
+
let _maxDepthReached = false;
|
|
1187
|
+
function wasMaxDepthReached() {
|
|
1188
|
+
return _maxDepthReached;
|
|
1189
|
+
}
|
|
1190
|
+
function resetMaxDepthState() {
|
|
1191
|
+
_maxDepthReached = false;
|
|
1192
|
+
_maxDepthWarned = false;
|
|
1193
|
+
}
|
|
1186
1194
|
function serializeNodeWithId(n2, options) {
|
|
1187
1195
|
const {
|
|
1188
1196
|
doc,
|
|
@@ -1213,6 +1221,7 @@ function serializeNodeWithId(n2, options) {
|
|
|
1213
1221
|
let { needsMask } = options;
|
|
1214
1222
|
let { preserveWhiteSpace = true } = options;
|
|
1215
1223
|
if (depth >= maxDepth) {
|
|
1224
|
+
_maxDepthReached = true;
|
|
1216
1225
|
if (!_maxDepthWarned) {
|
|
1217
1226
|
_maxDepthWarned = true;
|
|
1218
1227
|
console.warn(
|
|
@@ -18181,8 +18190,10 @@ exports.addCustomEvent = addCustomEvent;
|
|
|
18181
18190
|
exports.canvasMutation = canvasMutation;
|
|
18182
18191
|
exports.freezePage = freezePage;
|
|
18183
18192
|
exports.record = record;
|
|
18193
|
+
exports.resetMaxDepthState = resetMaxDepthState;
|
|
18184
18194
|
exports.takeFullSnapshot = takeFullSnapshot;
|
|
18185
18195
|
exports.utils = utils;
|
|
18196
|
+
exports.wasMaxDepthReached = wasMaxDepthReached;
|
|
18186
18197
|
;if (typeof module.exports == "object" && typeof exports == "object") {
|
|
18187
18198
|
var __cp = (to, from, except, desc) => {
|
|
18188
18199
|
if ((from && typeof from === "object") || typeof from === "function") {
|