Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rrweb-snapshot

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rrweb-snapshot - npm Package Compare versions

Comparing version 0.5.6 to 0.6.0

dist/test.html

107

dist/browser.js

@@ -81,2 +81,5 @@ var rrwebSnapshot = (function (exports) {

}
function isSVGElement(el) {
return el.tagName === 'svg' || el instanceof SVGElement;
}
function serializeNode(n, doc) {

@@ -142,3 +145,4 @@ switch (n.nodeType) {

attributes: attributes_1,
childNodes: []
childNodes: [],
isSVG: isSVGElement(n) || undefined
};

@@ -201,97 +205,2 @@ case n.TEXT_NODE:

var svgTags = [
'altGlyph',
'altGlyphDef',
'altGlyphItem',
'animate',
'animateColor',
'animateMotion',
'animateTransform',
'animation',
'circle',
'clipPath',
'color-profile',
'cursor',
'defs',
'desc',
'discard',
'ellipse',
'feBlend',
'feColorMatrix',
'feComponentTransfer',
'feComposite',
'feConvolveMatrix',
'feDiffuseLighting',
'feDisplacementMap',
'feDistantLight',
'feDropShadow',
'feFlood',
'feFuncA',
'feFuncB',
'feFuncG',
'feFuncR',
'feGaussianBlur',
'feImage',
'feMerge',
'feMergeNode',
'feMorphology',
'feOffset',
'fePointLight',
'feSpecularLighting',
'feSpotLight',
'feTile',
'feTurbulence',
'filter',
'font',
'font-face',
'font-face-format',
'font-face-name',
'font-face-src',
'font-face-uri',
'foreignObject',
'g',
'glyph',
'glyphRef',
'handler',
'hatch',
'hatchpath',
'hkern',
'image',
'line',
'linearGradient',
'listener',
'marker',
'mask',
'mesh',
'meshgradient',
'meshpatch',
'meshrow',
'metadata',
'missing-glyph',
'mpath',
'path',
'pattern',
'polygon',
'polyline',
'prefetch',
'radialGradient',
'rect',
'set',
'solidColor',
'solidcolor',
'stop',
'svg',
'switch',
'symbol',
'tbreak',
'text',
'textArea',
'textPath',
'tref',
'tspan',
'unknown',
'use',
'view',
'vkern',
];
var tagMap = {

@@ -329,7 +238,7 @@ script: 'noscript'

var node = void 0;
if (svgTags.indexOf(tagName) < 0) {
node = doc.createElement(tagName);
if (n.isSVG) {
node = doc.createElementNS('http://www.w3.org/2000/svg', tagName);
}
else {
node = doc.createElementNS('http://www.w3.org/2000/svg', tagName);
node = doc.createElement(tagName);
}

@@ -336,0 +245,0 @@ for (var name in n.attributes) {

@@ -82,2 +82,5 @@ 'use strict';

}
function isSVGElement(el) {
return el.tagName === 'svg' || el instanceof SVGElement;
}
function serializeNode(n, doc) {

@@ -143,3 +146,4 @@ switch (n.nodeType) {

attributes: attributes_1,
childNodes: []
childNodes: [],
isSVG: isSVGElement(n) || undefined
};

@@ -202,97 +206,2 @@ case n.TEXT_NODE:

var svgTags = [
'altGlyph',
'altGlyphDef',
'altGlyphItem',
'animate',
'animateColor',
'animateMotion',
'animateTransform',
'animation',
'circle',
'clipPath',
'color-profile',
'cursor',
'defs',
'desc',
'discard',
'ellipse',
'feBlend',
'feColorMatrix',
'feComponentTransfer',
'feComposite',
'feConvolveMatrix',
'feDiffuseLighting',
'feDisplacementMap',
'feDistantLight',
'feDropShadow',
'feFlood',
'feFuncA',
'feFuncB',
'feFuncG',
'feFuncR',
'feGaussianBlur',
'feImage',
'feMerge',
'feMergeNode',
'feMorphology',
'feOffset',
'fePointLight',
'feSpecularLighting',
'feSpotLight',
'feTile',
'feTurbulence',
'filter',
'font',
'font-face',
'font-face-format',
'font-face-name',
'font-face-src',
'font-face-uri',
'foreignObject',
'g',
'glyph',
'glyphRef',
'handler',
'hatch',
'hatchpath',
'hkern',
'image',
'line',
'linearGradient',
'listener',
'marker',
'mask',
'mesh',
'meshgradient',
'meshpatch',
'meshrow',
'metadata',
'missing-glyph',
'mpath',
'path',
'pattern',
'polygon',
'polyline',
'prefetch',
'radialGradient',
'rect',
'set',
'solidColor',
'solidcolor',
'stop',
'svg',
'switch',
'symbol',
'tbreak',
'text',
'textArea',
'textPath',
'tref',
'tspan',
'unknown',
'use',
'view',
'vkern',
];
var tagMap = {

@@ -330,7 +239,7 @@ script: 'noscript'

var node = void 0;
if (svgTags.indexOf(tagName) < 0) {
node = doc.createElement(tagName);
if (n.isSVG) {
node = doc.createElementNS('http://www.w3.org/2000/svg', tagName);
}
else {
node = doc.createElementNS('http://www.w3.org/2000/svg', tagName);
node = doc.createElement(tagName);
}

@@ -337,0 +246,0 @@ for (var name in n.attributes) {

@@ -79,2 +79,5 @@ var NodeType;

}
function isSVGElement(el) {
return el.tagName === 'svg' || el instanceof SVGElement;
}
function serializeNode(n, doc) {

@@ -140,3 +143,4 @@ switch (n.nodeType) {

attributes: attributes_1,
childNodes: []
childNodes: [],
isSVG: isSVGElement(n) || undefined
};

@@ -199,97 +203,2 @@ case n.TEXT_NODE:

var svgTags = [
'altGlyph',
'altGlyphDef',
'altGlyphItem',
'animate',
'animateColor',
'animateMotion',
'animateTransform',
'animation',
'circle',
'clipPath',
'color-profile',
'cursor',
'defs',
'desc',
'discard',
'ellipse',
'feBlend',
'feColorMatrix',
'feComponentTransfer',
'feComposite',
'feConvolveMatrix',
'feDiffuseLighting',
'feDisplacementMap',
'feDistantLight',
'feDropShadow',
'feFlood',
'feFuncA',
'feFuncB',
'feFuncG',
'feFuncR',
'feGaussianBlur',
'feImage',
'feMerge',
'feMergeNode',
'feMorphology',
'feOffset',
'fePointLight',
'feSpecularLighting',
'feSpotLight',
'feTile',
'feTurbulence',
'filter',
'font',
'font-face',
'font-face-format',
'font-face-name',
'font-face-src',
'font-face-uri',
'foreignObject',
'g',
'glyph',
'glyphRef',
'handler',
'hatch',
'hatchpath',
'hkern',
'image',
'line',
'linearGradient',
'listener',
'marker',
'mask',
'mesh',
'meshgradient',
'meshpatch',
'meshrow',
'metadata',
'missing-glyph',
'mpath',
'path',
'pattern',
'polygon',
'polyline',
'prefetch',
'radialGradient',
'rect',
'set',
'solidColor',
'solidcolor',
'stop',
'svg',
'switch',
'symbol',
'tbreak',
'text',
'textArea',
'textPath',
'tref',
'tspan',
'unknown',
'use',
'view',
'vkern',
];
var tagMap = {

@@ -327,7 +236,7 @@ script: 'noscript'

var node = void 0;
if (svgTags.indexOf(tagName) < 0) {
node = doc.createElement(tagName);
if (n.isSVG) {
node = doc.createElementNS('http://www.w3.org/2000/svg', tagName);
}
else {
node = doc.createElementNS('http://www.w3.org/2000/svg', tagName);
node = doc.createElement(tagName);
}

@@ -334,0 +243,0 @@ for (var name in n.attributes) {

{
"name": "rrweb-snapshot",
"version": "0.5.6",
"version": "0.6.0",
"description": "rrweb's component to take a snapshot of DOM, aka DOM serializer",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -30,2 +30,3 @@ export enum NodeType {

childNodes: serializedNodeWithId[];
isSVG?: true;
};

@@ -32,0 +33,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc