@appsurify-testmap/rrweb-snapshot 2.1.0-alpha.2 → 2.1.0-alpha.3
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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/rrweb-snapshot.cjs +5 -0
- package/dist/rrweb-snapshot.cjs.map +1 -1
- package/dist/rrweb-snapshot.js +5 -0
- package/dist/rrweb-snapshot.js.map +1 -1
- package/dist/rrweb-snapshot.umd.cjs +5 -0
- package/dist/rrweb-snapshot.umd.cjs.map +2 -2
- package/dist/rrweb-snapshot.umd.min.cjs +11 -11
- package/dist/rrweb-snapshot.umd.min.cjs.map +3 -3
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -183,6 +183,8 @@ export declare function serializeNodeWithId(n: Node, options: {
|
|
|
183
183
|
cssCaptured?: boolean;
|
|
184
184
|
}): serializedNodeWithId | null;
|
|
185
185
|
|
|
186
|
+
export declare function shouldIgnoreAttribute(ignore: string | RegExp | undefined, name: string): boolean;
|
|
187
|
+
|
|
186
188
|
export declare type SlimDOMOptions = Partial<{
|
|
187
189
|
script: boolean;
|
|
188
190
|
comment: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -183,6 +183,8 @@ export declare function serializeNodeWithId(n: Node, options: {
|
|
|
183
183
|
cssCaptured?: boolean;
|
|
184
184
|
}): serializedNodeWithId | null;
|
|
185
185
|
|
|
186
|
+
export declare function shouldIgnoreAttribute(ignore: string | RegExp | undefined, name: string): boolean;
|
|
187
|
+
|
|
186
188
|
export declare type SlimDOMOptions = Partial<{
|
|
187
189
|
script: boolean;
|
|
188
190
|
comment: boolean;
|
package/dist/rrweb-snapshot.cjs
CHANGED
|
@@ -911,6 +911,10 @@ function cleanAttributes(doc, element, ignoreAttribute) {
|
|
|
911
911
|
}
|
|
912
912
|
return attributes;
|
|
913
913
|
}
|
|
914
|
+
function shouldIgnoreAttribute(ignore, name) {
|
|
915
|
+
if (!ignore) return false;
|
|
916
|
+
return typeof ignore === "string" ? name === ignore : ignore.test(name);
|
|
917
|
+
}
|
|
914
918
|
function _isBlockedElement(element, blockClass, blockSelector) {
|
|
915
919
|
try {
|
|
916
920
|
if (typeof blockClass === "string") {
|
|
@@ -5746,6 +5750,7 @@ exports.needMaskingText = needMaskingText;
|
|
|
5746
5750
|
exports.normalizeCssString = normalizeCssString;
|
|
5747
5751
|
exports.rebuild = rebuild;
|
|
5748
5752
|
exports.serializeNodeWithId = serializeNodeWithId;
|
|
5753
|
+
exports.shouldIgnoreAttribute = shouldIgnoreAttribute;
|
|
5749
5754
|
exports.snapshot = snapshot;
|
|
5750
5755
|
exports.splitCssText = splitCssText;
|
|
5751
5756
|
exports.stringifyRule = stringifyRule;
|