@posthog/rrweb-record 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/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/rrweb-record.cjs +11 -0
- package/dist/rrweb-record.cjs.map +1 -1
- package/dist/rrweb-record.js +12 -1
- package/dist/rrweb-record.js.map +1 -1
- package/dist/rrweb-record.umd.cjs +11 -0
- package/dist/rrweb-record.umd.cjs.map +2 -2
- package/dist/rrweb-record.umd.min.cjs +17 -17
- package/dist/rrweb-record.umd.min.cjs.map +3 -3
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/rrweb-record.cjs
CHANGED
|
@@ -1138,6 +1138,14 @@ function slimDOMExcluded(sn, slimDOMOptions) {
|
|
|
1138
1138
|
}
|
|
1139
1139
|
const DEFAULT_MAX_DEPTH = 50;
|
|
1140
1140
|
let _maxDepthWarned = false;
|
|
1141
|
+
let _maxDepthReached = false;
|
|
1142
|
+
function wasMaxDepthReached() {
|
|
1143
|
+
return _maxDepthReached;
|
|
1144
|
+
}
|
|
1145
|
+
function resetMaxDepthState() {
|
|
1146
|
+
_maxDepthReached = false;
|
|
1147
|
+
_maxDepthWarned = false;
|
|
1148
|
+
}
|
|
1141
1149
|
function serializeNodeWithId(n2, options) {
|
|
1142
1150
|
const {
|
|
1143
1151
|
doc,
|
|
@@ -1168,6 +1176,7 @@ function serializeNodeWithId(n2, options) {
|
|
|
1168
1176
|
let { needsMask } = options;
|
|
1169
1177
|
let { preserveWhiteSpace = true } = options;
|
|
1170
1178
|
if (depth >= maxDepth) {
|
|
1179
|
+
_maxDepthReached = true;
|
|
1171
1180
|
if (!_maxDepthWarned) {
|
|
1172
1181
|
_maxDepthWarned = true;
|
|
1173
1182
|
console.warn(
|
|
@@ -13195,4 +13204,6 @@ const { addCustomEvent } = record;
|
|
|
13195
13204
|
const { freezePage } = record;
|
|
13196
13205
|
const { takeFullSnapshot } = record;
|
|
13197
13206
|
exports.record = record;
|
|
13207
|
+
exports.resetMaxDepthState = resetMaxDepthState;
|
|
13208
|
+
exports.wasMaxDepthReached = wasMaxDepthReached;
|
|
13198
13209
|
//# sourceMappingURL=rrweb-record.cjs.map
|