@highlight-run/rrweb 2.1.3 → 2.1.4
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/plugins/console-record.js +0 -0
- package/dist/plugins/console-record.min.js +0 -0
- package/dist/plugins/console-record.min.js.map +1 -1
- package/dist/plugins/console-replay.js +0 -0
- package/dist/plugins/console-replay.min.js +0 -0
- package/dist/plugins/console-replay.min.js.map +1 -1
- package/dist/plugins/sequential-id-record.js +0 -0
- package/dist/plugins/sequential-id-record.min.js +0 -0
- package/dist/plugins/sequential-id-record.min.js.map +0 -0
- package/dist/plugins/sequential-id-replay.js +0 -0
- package/dist/plugins/sequential-id-replay.min.js +0 -0
- package/dist/plugins/sequential-id-replay.min.js.map +0 -0
- package/dist/record/rrweb-record-pack.js +0 -0
- package/dist/record/rrweb-record-pack.min.js +0 -0
- package/dist/record/rrweb-record-pack.min.js.map +1 -1
- package/dist/record/rrweb-record.js +3 -3
- package/dist/record/rrweb-record.min.js +3 -3
- package/dist/record/rrweb-record.min.js.map +1 -1
- package/dist/replay/rrweb-replay-unpack.css +0 -0
- package/dist/replay/rrweb-replay-unpack.js +0 -0
- package/dist/replay/rrweb-replay-unpack.min.css +0 -0
- package/dist/replay/rrweb-replay-unpack.min.css.map +0 -0
- package/dist/replay/rrweb-replay-unpack.min.js +0 -0
- package/dist/replay/rrweb-replay-unpack.min.js.map +1 -1
- package/dist/replay/rrweb-replay.css +0 -0
- package/dist/replay/rrweb-replay.js +3 -3
- package/dist/replay/rrweb-replay.min.css +0 -0
- package/dist/replay/rrweb-replay.min.css.map +0 -0
- package/dist/replay/rrweb-replay.min.js +3 -3
- package/dist/replay/rrweb-replay.min.js.map +1 -1
- package/dist/rrweb-all.css +0 -0
- package/dist/rrweb-all.js +10 -10
- package/dist/rrweb-all.min.css +0 -0
- package/dist/rrweb-all.min.css.map +0 -0
- package/dist/rrweb-all.min.js +10 -10
- package/dist/rrweb-all.min.js.map +1 -1
- package/dist/rrweb.css +0 -0
- package/dist/rrweb.js +5 -5
- package/dist/rrweb.min.css +0 -0
- package/dist/rrweb.min.css.map +0 -0
- package/dist/rrweb.min.js +5 -5
- package/dist/rrweb.min.js.map +1 -1
- package/es/rrweb/_virtual/_rollup-plugin-web-worker-loader__helper__auto__createBase64WorkerFactory.js +0 -0
- package/es/rrweb/_virtual/_rollup-plugin-web-worker-loader__helper__auto__isNodeJS.js +0 -0
- package/es/rrweb/_virtual/_rollup-plugin-web-worker-loader__helper__browser__createBase64WorkerFactory.js +0 -0
- package/es/rrweb/_virtual/_rollup-plugin-web-worker-loader__helper__node__WorkerClass.js +0 -0
- package/es/rrweb/_virtual/_rollup-plugin-web-worker-loader__helper__node__createBase64WorkerFactory.js +0 -0
- package/es/rrweb/_virtual/image-bitmap-data-url-worker.js +0 -0
- package/es/rrweb/all.css +0 -0
- package/es/rrweb/ext/@xstate/fsm/es/index.js +0 -0
- package/es/rrweb/ext/base64-arraybuffer/dist/base64-arraybuffer.es5.js +0 -0
- package/es/rrweb/ext/fflate/esm/browser.js +0 -0
- package/es/rrweb/ext/mitt/dist/mitt.mjs.js +0 -0
- package/es/rrweb/ext/tslib/tslib.es6.js +0 -0
- package/es/rrweb/packages/rrdom/es/rrdom.js +0 -0
- package/es/rrweb/packages/rrweb/src/entries/all.js +0 -0
- package/es/rrweb/packages/rrweb/src/index.js +0 -0
- package/es/rrweb/packages/rrweb/src/packer/base.js +0 -0
- package/es/rrweb/packages/rrweb/src/packer/pack.js +0 -0
- package/es/rrweb/packages/rrweb/src/packer/unpack.js +0 -0
- package/es/rrweb/packages/rrweb/src/plugins/console/record/error-stack-parser.js +0 -0
- package/es/rrweb/packages/rrweb/src/plugins/console/record/index.js +0 -0
- package/es/rrweb/packages/rrweb/src/plugins/console/record/stringify.js +0 -0
- package/es/rrweb/packages/rrweb/src/plugins/console/replay/index.js +0 -0
- package/es/rrweb/packages/rrweb/src/plugins/sequential-id/record/index.js +0 -0
- package/es/rrweb/packages/rrweb/src/plugins/sequential-id/replay/index.js +0 -0
- package/es/rrweb/packages/rrweb/src/record/iframe-manager.js +0 -0
- package/es/rrweb/packages/rrweb/src/record/index.js +0 -0
- package/es/rrweb/packages/rrweb/src/record/mutation.js +0 -0
- package/es/rrweb/packages/rrweb/src/record/observer.js +0 -0
- package/es/rrweb/packages/rrweb/src/record/observers/canvas/2d.js +0 -0
- package/es/rrweb/packages/rrweb/src/record/observers/canvas/canvas-manager.js +0 -0
- package/es/rrweb/packages/rrweb/src/record/observers/canvas/canvas.js +0 -0
- package/es/rrweb/packages/rrweb/src/record/observers/canvas/serialize-args.js +0 -0
- package/es/rrweb/packages/rrweb/src/record/observers/canvas/webgl.js +0 -0
- package/es/rrweb/packages/rrweb/src/record/shadow-dom-manager.js +0 -0
- package/es/rrweb/packages/rrweb/src/record/stylesheet-manager.js +0 -0
- package/es/rrweb/packages/rrweb/src/replay/canvas/2d.js +0 -0
- package/es/rrweb/packages/rrweb/src/replay/canvas/deserialize-args.js +0 -0
- package/es/rrweb/packages/rrweb/src/replay/canvas/index.js +0 -0
- package/es/rrweb/packages/rrweb/src/replay/canvas/webgl.js +0 -0
- package/es/rrweb/packages/rrweb/src/replay/index.js +0 -0
- package/es/rrweb/packages/rrweb/src/replay/machine.js +0 -0
- package/es/rrweb/packages/rrweb/src/replay/smoothscroll.js +0 -0
- package/es/rrweb/packages/rrweb/src/replay/styles/inject-style.js +0 -0
- package/es/rrweb/packages/rrweb/src/replay/timer.js +0 -0
- package/es/rrweb/packages/rrweb/src/types.js +0 -0
- package/es/rrweb/packages/rrweb/src/utils.js +0 -0
- package/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js +10 -4
- package/lib/plugins/console-record.js +0 -0
- package/lib/plugins/console-replay.js +0 -0
- package/lib/plugins/sequential-id-record.js +0 -0
- package/lib/plugins/sequential-id-replay.js +0 -0
- package/lib/record/rrweb-record-pack.js +0 -0
- package/lib/record/rrweb-record.js +10 -4
- package/lib/replay/rrweb-replay-unpack.css +0 -0
- package/lib/replay/rrweb-replay-unpack.js +0 -0
- package/lib/replay/rrweb-replay.css +0 -0
- package/lib/replay/rrweb-replay.js +0 -0
- package/lib/rrweb-all.css +0 -0
- package/lib/rrweb-all.js +10 -4
- package/lib/rrweb.css +0 -0
- package/lib/rrweb.js +10 -4
- package/package.json +3 -3
- package/typings/entries/all.d.ts +0 -0
- package/typings/entries/record-pack.d.ts +0 -0
- package/typings/entries/replay-unpack.d.ts +0 -0
- package/typings/index.d.ts +0 -0
- package/typings/packer/base.d.ts +0 -0
- package/typings/packer/index.d.ts +0 -0
- package/typings/packer/pack.d.ts +0 -0
- package/typings/packer/unpack.d.ts +0 -0
- package/typings/plugins/console/record/error-stack-parser.d.ts +0 -0
- package/typings/plugins/console/record/index.d.ts +0 -0
- package/typings/plugins/console/record/stringify.d.ts +0 -0
- package/typings/plugins/console/replay/index.d.ts +0 -0
- package/typings/plugins/sequential-id/record/index.d.ts +0 -0
- package/typings/plugins/sequential-id/replay/index.d.ts +0 -0
- package/typings/record/iframe-manager.d.ts +0 -0
- package/typings/record/index.d.ts +0 -0
- package/typings/record/mutation.d.ts +0 -0
- package/typings/record/observer.d.ts +0 -0
- package/typings/record/observers/canvas/2d.d.ts +0 -0
- package/typings/record/observers/canvas/canvas-manager.d.ts +0 -0
- package/typings/record/observers/canvas/canvas.d.ts +0 -0
- package/typings/record/observers/canvas/serialize-args.d.ts +0 -0
- package/typings/record/observers/canvas/webgl.d.ts +0 -0
- package/typings/record/shadow-dom-manager.d.ts +0 -0
- package/typings/record/stylesheet-manager.d.ts +0 -0
- package/typings/record/workers/image-bitmap-data-url-worker.d.ts +0 -0
- package/typings/replay/canvas/2d.d.ts +0 -0
- package/typings/replay/canvas/deserialize-args.d.ts +0 -0
- package/typings/replay/canvas/index.d.ts +0 -0
- package/typings/replay/canvas/webgl.d.ts +0 -0
- package/typings/replay/index.d.ts +0 -0
- package/typings/replay/machine.d.ts +0 -0
- package/typings/replay/smoothscroll.d.ts +0 -0
- package/typings/replay/styles/inject-style.d.ts +0 -0
- package/typings/replay/timer.d.ts +0 -0
- package/typings/rrdom/index.d.ts +0 -0
- package/typings/rrdom/tree-node.d.ts +0 -0
- package/typings/types.d.ts +0 -0
- package/typings/utils.d.ts +0 -0
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/es/rrweb/all.css
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -572,7 +572,7 @@ function serializeTextNode(n, options) {
|
|
|
572
572
|
function serializeElementNode(n, options) {
|
|
573
573
|
var doc = options.doc, blockClass = options.blockClass, blockSelector = options.blockSelector, inlineStylesheet = options.inlineStylesheet, _a = options.maskInputOptions, maskInputOptions = _a === void 0 ? {} : _a, maskInputFn = options.maskInputFn, maskTextClass = options.maskTextClass, _b = options.dataURLOptions, dataURLOptions = _b === void 0 ? {} : _b, inlineImages = options.inlineImages, recordCanvas = options.recordCanvas, keepIframeSrcFn = options.keepIframeSrcFn, _c = options.newlyAddedElement, newlyAddedElement = _c === void 0 ? false : _c, enableStrictPrivacy = options.enableStrictPrivacy, rootId = options.rootId;
|
|
574
574
|
var needBlock = _isBlockedElement(n, blockClass, blockSelector) ||
|
|
575
|
-
_isBlockedElement(n, maskTextClass,
|
|
575
|
+
_isBlockedElement(n, maskTextClass, null);
|
|
576
576
|
var tagName = getValidTagName(n);
|
|
577
577
|
var attributes = {};
|
|
578
578
|
var len = n.attributes.length;
|
|
@@ -646,7 +646,7 @@ function serializeElementNode(n, options) {
|
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
if (tagName === 'img' && inlineImages) {
|
|
649
|
+
if (tagName === 'img' && inlineImages && !needBlock) {
|
|
650
650
|
if (!canvasService) {
|
|
651
651
|
canvasService = doc.createElement('canvas');
|
|
652
652
|
canvasCtx = canvasService.getContext('2d');
|
|
@@ -702,6 +702,9 @@ function serializeElementNode(n, options) {
|
|
|
702
702
|
}
|
|
703
703
|
delete attributes.src;
|
|
704
704
|
}
|
|
705
|
+
if (needBlock && tagName === 'img') {
|
|
706
|
+
delete attributes.src;
|
|
707
|
+
}
|
|
705
708
|
return {
|
|
706
709
|
type: NodeType.Element,
|
|
707
710
|
tagName: tagName,
|
|
@@ -839,9 +842,12 @@ function serializeNodeWithId(n, options) {
|
|
|
839
842
|
onSerialize(n);
|
|
840
843
|
}
|
|
841
844
|
var recordChild = !skipChild;
|
|
845
|
+
var strictPrivacy = enableStrictPrivacy;
|
|
842
846
|
if (serializedNode.type === NodeType.Element) {
|
|
843
847
|
recordChild = recordChild && !serializedNode.needBlock;
|
|
844
|
-
|
|
848
|
+
strictPrivacy = !!serializedNode.needBlock;
|
|
849
|
+
console.log('vadim strictPrivacy', { strictPrivacy: strictPrivacy, enableStrictPrivacy: enableStrictPrivacy });
|
|
850
|
+
if (strictPrivacy && serializedNode.tagName === 'img') {
|
|
845
851
|
var clone = n.cloneNode();
|
|
846
852
|
clone.src = '';
|
|
847
853
|
mirror.add(clone, serializedNode);
|
|
@@ -882,7 +888,7 @@ function serializeNodeWithId(n, options) {
|
|
|
882
888
|
onStylesheetLoad: onStylesheetLoad,
|
|
883
889
|
stylesheetLoadTimeout: stylesheetLoadTimeout,
|
|
884
890
|
keepIframeSrcFn: keepIframeSrcFn,
|
|
885
|
-
enableStrictPrivacy:
|
|
891
|
+
enableStrictPrivacy: strictPrivacy
|
|
886
892
|
};
|
|
887
893
|
for (var _i = 0, _m = Array.from(n.childNodes); _i < _m.length; _i++) {
|
|
888
894
|
var childN = _m[_i];
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -574,7 +574,7 @@ function serializeTextNode(n, options) {
|
|
|
574
574
|
function serializeElementNode(n, options) {
|
|
575
575
|
var doc = options.doc, blockClass = options.blockClass, blockSelector = options.blockSelector, inlineStylesheet = options.inlineStylesheet, _a = options.maskInputOptions, maskInputOptions = _a === void 0 ? {} : _a, maskInputFn = options.maskInputFn, maskTextClass = options.maskTextClass, _b = options.dataURLOptions, dataURLOptions = _b === void 0 ? {} : _b, inlineImages = options.inlineImages, recordCanvas = options.recordCanvas, keepIframeSrcFn = options.keepIframeSrcFn, _c = options.newlyAddedElement, newlyAddedElement = _c === void 0 ? false : _c, enableStrictPrivacy = options.enableStrictPrivacy, rootId = options.rootId;
|
|
576
576
|
var needBlock = _isBlockedElement(n, blockClass, blockSelector) ||
|
|
577
|
-
_isBlockedElement(n, maskTextClass,
|
|
577
|
+
_isBlockedElement(n, maskTextClass, null);
|
|
578
578
|
var tagName = getValidTagName(n);
|
|
579
579
|
var attributes = {};
|
|
580
580
|
var len = n.attributes.length;
|
|
@@ -648,7 +648,7 @@ function serializeElementNode(n, options) {
|
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
|
-
if (tagName === 'img' && inlineImages) {
|
|
651
|
+
if (tagName === 'img' && inlineImages && !needBlock) {
|
|
652
652
|
if (!canvasService) {
|
|
653
653
|
canvasService = doc.createElement('canvas');
|
|
654
654
|
canvasCtx = canvasService.getContext('2d');
|
|
@@ -704,6 +704,9 @@ function serializeElementNode(n, options) {
|
|
|
704
704
|
}
|
|
705
705
|
delete attributes.src;
|
|
706
706
|
}
|
|
707
|
+
if (needBlock && tagName === 'img') {
|
|
708
|
+
delete attributes.src;
|
|
709
|
+
}
|
|
707
710
|
return {
|
|
708
711
|
type: NodeType.Element,
|
|
709
712
|
tagName: tagName,
|
|
@@ -841,9 +844,12 @@ function serializeNodeWithId(n, options) {
|
|
|
841
844
|
onSerialize(n);
|
|
842
845
|
}
|
|
843
846
|
var recordChild = !skipChild;
|
|
847
|
+
var strictPrivacy = enableStrictPrivacy;
|
|
844
848
|
if (serializedNode.type === NodeType.Element) {
|
|
845
849
|
recordChild = recordChild && !serializedNode.needBlock;
|
|
846
|
-
|
|
850
|
+
strictPrivacy = !!serializedNode.needBlock;
|
|
851
|
+
console.log('vadim strictPrivacy', { strictPrivacy: strictPrivacy, enableStrictPrivacy: enableStrictPrivacy });
|
|
852
|
+
if (strictPrivacy && serializedNode.tagName === 'img') {
|
|
847
853
|
var clone = n.cloneNode();
|
|
848
854
|
clone.src = '';
|
|
849
855
|
mirror.add(clone, serializedNode);
|
|
@@ -884,7 +890,7 @@ function serializeNodeWithId(n, options) {
|
|
|
884
890
|
onStylesheetLoad: onStylesheetLoad,
|
|
885
891
|
stylesheetLoadTimeout: stylesheetLoadTimeout,
|
|
886
892
|
keepIframeSrcFn: keepIframeSrcFn,
|
|
887
|
-
enableStrictPrivacy:
|
|
893
|
+
enableStrictPrivacy: strictPrivacy
|
|
888
894
|
};
|
|
889
895
|
for (var _i = 0, _m = Array.from(n.childNodes); _i < _m.length; _i++) {
|
|
890
896
|
var childN = _m[_i];
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/rrweb-all.css
CHANGED
|
File without changes
|
package/lib/rrweb-all.js
CHANGED
|
@@ -576,7 +576,7 @@ function serializeTextNode(n, options) {
|
|
|
576
576
|
function serializeElementNode(n, options) {
|
|
577
577
|
var doc = options.doc, blockClass = options.blockClass, blockSelector = options.blockSelector, inlineStylesheet = options.inlineStylesheet, _a = options.maskInputOptions, maskInputOptions = _a === void 0 ? {} : _a, maskInputFn = options.maskInputFn, maskTextClass = options.maskTextClass, _b = options.dataURLOptions, dataURLOptions = _b === void 0 ? {} : _b, inlineImages = options.inlineImages, recordCanvas = options.recordCanvas, keepIframeSrcFn = options.keepIframeSrcFn, _c = options.newlyAddedElement, newlyAddedElement = _c === void 0 ? false : _c, enableStrictPrivacy = options.enableStrictPrivacy, rootId = options.rootId;
|
|
578
578
|
var needBlock = _isBlockedElement(n, blockClass, blockSelector) ||
|
|
579
|
-
_isBlockedElement(n, maskTextClass,
|
|
579
|
+
_isBlockedElement(n, maskTextClass, null);
|
|
580
580
|
var tagName = getValidTagName$1(n);
|
|
581
581
|
var attributes = {};
|
|
582
582
|
var len = n.attributes.length;
|
|
@@ -650,7 +650,7 @@ function serializeElementNode(n, options) {
|
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
|
-
if (tagName === 'img' && inlineImages) {
|
|
653
|
+
if (tagName === 'img' && inlineImages && !needBlock) {
|
|
654
654
|
if (!canvasService) {
|
|
655
655
|
canvasService = doc.createElement('canvas');
|
|
656
656
|
canvasCtx = canvasService.getContext('2d');
|
|
@@ -706,6 +706,9 @@ function serializeElementNode(n, options) {
|
|
|
706
706
|
}
|
|
707
707
|
delete attributes.src;
|
|
708
708
|
}
|
|
709
|
+
if (needBlock && tagName === 'img') {
|
|
710
|
+
delete attributes.src;
|
|
711
|
+
}
|
|
709
712
|
return {
|
|
710
713
|
type: NodeType$2.Element,
|
|
711
714
|
tagName: tagName,
|
|
@@ -843,9 +846,12 @@ function serializeNodeWithId(n, options) {
|
|
|
843
846
|
onSerialize(n);
|
|
844
847
|
}
|
|
845
848
|
var recordChild = !skipChild;
|
|
849
|
+
var strictPrivacy = enableStrictPrivacy;
|
|
846
850
|
if (serializedNode.type === NodeType$2.Element) {
|
|
847
851
|
recordChild = recordChild && !serializedNode.needBlock;
|
|
848
|
-
|
|
852
|
+
strictPrivacy = !!serializedNode.needBlock;
|
|
853
|
+
console.log('vadim strictPrivacy', { strictPrivacy: strictPrivacy, enableStrictPrivacy: enableStrictPrivacy });
|
|
854
|
+
if (strictPrivacy && serializedNode.tagName === 'img') {
|
|
849
855
|
var clone = n.cloneNode();
|
|
850
856
|
clone.src = '';
|
|
851
857
|
mirror.add(clone, serializedNode);
|
|
@@ -886,7 +892,7 @@ function serializeNodeWithId(n, options) {
|
|
|
886
892
|
onStylesheetLoad: onStylesheetLoad,
|
|
887
893
|
stylesheetLoadTimeout: stylesheetLoadTimeout,
|
|
888
894
|
keepIframeSrcFn: keepIframeSrcFn,
|
|
889
|
-
enableStrictPrivacy:
|
|
895
|
+
enableStrictPrivacy: strictPrivacy
|
|
890
896
|
};
|
|
891
897
|
for (var _i = 0, _m = Array.from(n.childNodes); _i < _m.length; _i++) {
|
|
892
898
|
var childN = _m[_i];
|
package/lib/rrweb.css
CHANGED
|
File without changes
|
package/lib/rrweb.js
CHANGED
|
@@ -576,7 +576,7 @@ function serializeTextNode(n, options) {
|
|
|
576
576
|
function serializeElementNode(n, options) {
|
|
577
577
|
var doc = options.doc, blockClass = options.blockClass, blockSelector = options.blockSelector, inlineStylesheet = options.inlineStylesheet, _a = options.maskInputOptions, maskInputOptions = _a === void 0 ? {} : _a, maskInputFn = options.maskInputFn, maskTextClass = options.maskTextClass, _b = options.dataURLOptions, dataURLOptions = _b === void 0 ? {} : _b, inlineImages = options.inlineImages, recordCanvas = options.recordCanvas, keepIframeSrcFn = options.keepIframeSrcFn, _c = options.newlyAddedElement, newlyAddedElement = _c === void 0 ? false : _c, enableStrictPrivacy = options.enableStrictPrivacy, rootId = options.rootId;
|
|
578
578
|
var needBlock = _isBlockedElement(n, blockClass, blockSelector) ||
|
|
579
|
-
_isBlockedElement(n, maskTextClass,
|
|
579
|
+
_isBlockedElement(n, maskTextClass, null);
|
|
580
580
|
var tagName = getValidTagName$1(n);
|
|
581
581
|
var attributes = {};
|
|
582
582
|
var len = n.attributes.length;
|
|
@@ -650,7 +650,7 @@ function serializeElementNode(n, options) {
|
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
|
-
if (tagName === 'img' && inlineImages) {
|
|
653
|
+
if (tagName === 'img' && inlineImages && !needBlock) {
|
|
654
654
|
if (!canvasService) {
|
|
655
655
|
canvasService = doc.createElement('canvas');
|
|
656
656
|
canvasCtx = canvasService.getContext('2d');
|
|
@@ -706,6 +706,9 @@ function serializeElementNode(n, options) {
|
|
|
706
706
|
}
|
|
707
707
|
delete attributes.src;
|
|
708
708
|
}
|
|
709
|
+
if (needBlock && tagName === 'img') {
|
|
710
|
+
delete attributes.src;
|
|
711
|
+
}
|
|
709
712
|
return {
|
|
710
713
|
type: NodeType$2.Element,
|
|
711
714
|
tagName: tagName,
|
|
@@ -843,9 +846,12 @@ function serializeNodeWithId(n, options) {
|
|
|
843
846
|
onSerialize(n);
|
|
844
847
|
}
|
|
845
848
|
var recordChild = !skipChild;
|
|
849
|
+
var strictPrivacy = enableStrictPrivacy;
|
|
846
850
|
if (serializedNode.type === NodeType$2.Element) {
|
|
847
851
|
recordChild = recordChild && !serializedNode.needBlock;
|
|
848
|
-
|
|
852
|
+
strictPrivacy = !!serializedNode.needBlock;
|
|
853
|
+
console.log('vadim strictPrivacy', { strictPrivacy: strictPrivacy, enableStrictPrivacy: enableStrictPrivacy });
|
|
854
|
+
if (strictPrivacy && serializedNode.tagName === 'img') {
|
|
849
855
|
var clone = n.cloneNode();
|
|
850
856
|
clone.src = '';
|
|
851
857
|
mirror.add(clone, serializedNode);
|
|
@@ -886,7 +892,7 @@ function serializeNodeWithId(n, options) {
|
|
|
886
892
|
onStylesheetLoad: onStylesheetLoad,
|
|
887
893
|
stylesheetLoadTimeout: stylesheetLoadTimeout,
|
|
888
894
|
keepIframeSrcFn: keepIframeSrcFn,
|
|
889
|
-
enableStrictPrivacy:
|
|
895
|
+
enableStrictPrivacy: strictPrivacy
|
|
890
896
|
};
|
|
891
897
|
for (var _i = 0, _m = Array.from(n.childNodes); _i < _m.length; _i++) {
|
|
892
898
|
var childN = _m[_i];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@highlight-run/rrweb",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "record and replay the web",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepare": "npm run prepack",
|
|
@@ -76,12 +76,12 @@
|
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
78
|
"@highlight-run/rrdom": "0.1.17",
|
|
79
|
-
"@highlight-run/rrweb-snapshot": "1.1.
|
|
79
|
+
"@highlight-run/rrweb-snapshot": "1.1.27",
|
|
80
80
|
"@types/css-font-loading-module": "0.0.7",
|
|
81
81
|
"@xstate/fsm": "^1.4.0",
|
|
82
82
|
"base64-arraybuffer": "^1.0.1",
|
|
83
83
|
"fflate": "^0.4.4",
|
|
84
84
|
"mitt": "^3.0.0"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "ee5ef112cb3c2d2bd70078d428985ba8507ec070"
|
|
87
87
|
}
|
package/typings/entries/all.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/typings/index.d.ts
CHANGED
|
File without changes
|
package/typings/packer/base.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/typings/packer/pack.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/typings/rrdom/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/typings/types.d.ts
CHANGED
|
File without changes
|
package/typings/utils.d.ts
CHANGED
|
File without changes
|