New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sentry-internal/rrdom

Package Overview
Dependencies
Maintainers
0
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry-internal/rrdom - npm Package Compare versions

Comparing version 2.32.0-dev.2 to 2.32.0-dev.3

44

dist/rrdom.js

@@ -22,5 +22,4 @@ var __defProp = Object.defineProperty;

getId(n) {
var _a;
if (!n) return -1;
const id = (_a = this.getMeta(n)) == null ? void 0 : _a.id;
const id = this.getMeta(n)?.id;
return id ?? -1;

@@ -183,12 +182,10 @@ }

get body() {
var _a;
return ((_a = this.documentElement) == null ? void 0 : _a.childNodes.find(
return this.documentElement?.childNodes.find(
(node) => node.RRNodeType === NodeType$1.Element && node.tagName === "BODY"
)) || null;
) || null;
}
get head() {
var _a;
return ((_a = this.documentElement) == null ? void 0 : _a.childNodes.find(
return this.documentElement?.childNodes.find(
(node) => node.RRNodeType === NodeType$1.Element && node.tagName === "HEAD"
)) || null;
) || null;
}

@@ -642,3 +639,2 @@ get implementation() {

function diffBeforeUpdatingChildren(oldTree, newTree, replayer, rrnodeMirror) {
var _a;
if (replayer.afterAppend && !createdNodeSet) {

@@ -656,3 +652,3 @@ createdNodeSet = /* @__PURE__ */ new WeakSet();

);
(_a = oldTree.parentNode) == null ? void 0 : _a.replaceChild(calibratedOldTree, oldTree);
oldTree.parentNode?.replaceChild(calibratedOldTree, oldTree);
oldTree = calibratedOldTree;

@@ -669,3 +665,3 @@ }

replayer.mirror.add(oldTree, newMeta);
createdNodeSet == null ? void 0 : createdNodeSet.add(oldTree);
createdNodeSet?.add(oldTree);
}

@@ -710,3 +706,2 @@ }

function diffAfterUpdatingChildren(oldTree, newTree, replayer) {
var _a;
switch (newTree.RRNodeType) {

@@ -779,5 +774,5 @@ case NodeType$1.Document: {

}
if (createdNodeSet == null ? void 0 : createdNodeSet.has(oldTree)) {
if (createdNodeSet?.has(oldTree)) {
createdNodeSet.delete(oldTree);
(_a = replayer.afterAppend) == null ? void 0 : _a.call(replayer, oldTree, replayer.mirror.getId(oldTree));
replayer.afterAppend?.(oldTree, replayer.mirror.getId(oldTree));
}

@@ -791,3 +786,3 @@ }

const sn = rrnodeMirror.getMeta(newTree);
if ((sn == null ? void 0 : sn.isSVG) && NAMESPACES[name])
if (sn?.isSVG && NAMESPACES[name])
oldTree.setAttributeNS(NAMESPACES[name], name, newValue);

@@ -968,3 +963,3 @@ else if (newTree.tagName === "CANVAS" && name === "rr_dataURL") {

tagName = SVGTagMap[tagName] || tagName;
if (sn && "isSVG" in sn && (sn == null ? void 0 : sn.isSVG)) {
if (sn && "isSVG" in sn && sn?.isSVG) {
node = document.createElementNS(NAMESPACES["svg"], tagName);

@@ -986,3 +981,3 @@ } else node = document.createElement(rrNode.tagName);

try {
createdNodeSet == null ? void 0 : createdNodeSet.add(node);
createdNodeSet?.add(node);
} catch (e) {

@@ -1003,4 +998,3 @@ }

function getInsertedStylesFromElement(styleElement) {
var _a;
const elementCssRules = (_a = styleElement.sheet) == null ? void 0 : _a.cssRules;
const elementCssRules = styleElement.sheet?.cssRules;
if (!elementCssRules || !elementCssRules.length) return;

@@ -1014,3 +1008,3 @@ const tempStyleSheet = new CSSStyleSheet();

const insertedStylesStyleSheet = [];
for (let i = 0; i < (elementCssRules == null ? void 0 : elementCssRules.length); i++) {
for (let i = 0; i < elementCssRules?.length; i++) {
const cssRuleText = elementCssRules[i].cssText;

@@ -1036,4 +1030,3 @@ if (!innerTextStylesMap[cssRuleText]) {

insertedStyles.forEach(({ cssRuleText, index }) => {
var _a;
(_a = nodeToMove.sheet) == null ? void 0 : _a.insertRule(cssRuleText, index);
nodeToMove.sheet?.insertRule(cssRuleText, index);
});

@@ -1231,6 +1224,6 @@ }

// if the parentRRNode isn't a RRIFrameElement
(parentRRNode == null ? void 0 : parentRRNode.nodeName) !== "IFRAME" && // if node isn't a shadow root
parentRRNode?.nodeName !== "IFRAME" && // if node isn't a shadow root
node.nodeType !== NodeType.DOCUMENT_FRAGMENT_NODE
) {
parentRRNode == null ? void 0 : parentRRNode.appendChild(rrNode);
parentRRNode?.appendChild(rrNode);
rrNode.parentNode = parentRRNode;

@@ -1260,5 +1253,4 @@ rrNode.parentElement = parentRRNode;

getId(n) {
var _a;
if (!n) return -1;
const id = (_a = this.getMeta(n)) == null ? void 0 : _a.id;
const id = this.getMeta(n)?.id;
return id ?? -1;

@@ -1265,0 +1257,0 @@ }

{
"name": "@sentry-internal/rrdom",
"version": "2.32.0-dev.2",
"version": "2.32.0-dev.3",
"homepage": "https://github.com/rrweb-io/rrweb/tree/main/packages/rrdom#readme",

@@ -45,3 +45,3 @@ "license": "MIT",

"devDependencies": {
"@sentry-internal/rrweb-types": "2.32.0-dev.2",
"@sentry-internal/rrweb-types": "2.32.0-dev.3",
"@types/puppeteer": "^5.4.4",

@@ -57,4 +57,4 @@ "@typescript-eslint/eslint-plugin": "^5.23.0",

"dependencies": {
"@sentry-internal/rrweb-snapshot": "2.32.0-dev.2"
"@sentry-internal/rrweb-snapshot": "2.32.0-dev.3"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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