🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@sentry/react

Package Overview
Dependencies
Maintainers
10
Versions
475
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/react - npm Package Compare versions

Comparing version

to
8.48.0

53

build/cjs/reactrouterv6-compat-utils.js

@@ -157,3 +157,3 @@ Object.defineProperty(exports, '__esModule', { value: true });

const allRoutes = [];
const allRoutes = new Set();

@@ -183,6 +183,17 @@ const SentryRoutes

routes.forEach(route => {
allRoutes.push(...getChildRoutesRecursively(route));
const extractedChildRoutes = getChildRoutesRecursively(route);
extractedChildRoutes.forEach(r => {
allRoutes.add(r);
});
});
updatePageloadTransaction(getActiveRootSpan(), normalizedLocation, routes, undefined, undefined, allRoutes);
updatePageloadTransaction(
getActiveRootSpan(),
normalizedLocation,
routes,
undefined,
undefined,
Array.from(allRoutes),
);
isMountRenderPass.current = false;

@@ -195,3 +206,3 @@ } else {

version,
allRoutes,
allRoutes: Array.from(allRoutes),
});

@@ -315,11 +326,15 @@ }

function getChildRoutesRecursively(route, allRoutes = []) {
if (route.children && !route.index) {
route.children.forEach(child => {
allRoutes.push(...getChildRoutesRecursively(child, allRoutes));
});
function getChildRoutesRecursively(route, allRoutes = new Set()) {
if (!allRoutes.has(route)) {
allRoutes.add(route);
if (route.children && !route.index) {
route.children.forEach(child => {
const childRoutes = getChildRoutesRecursively(child, allRoutes);
childRoutes.forEach(r => allRoutes.add(r));
});
}
}
allRoutes.push(route);
return allRoutes;

@@ -401,6 +416,6 @@ }

const newPath = path[0] === '/' || pathBuilder[pathBuilder.length - 1] === '/' ? path : `/${path}`;
pathBuilder += newPath;
pathBuilder = trimSlash(pathBuilder) + prefixWithSlash(newPath);
// If the path matches the current location, return the path
if (location.pathname.endsWith(basename + branch.pathname)) {
if (trimSlash(location.pathname) === trimSlash(basename + branch.pathname)) {
if (

@@ -487,3 +502,3 @@ // If the route defined on the element is something like

const allRoutes = [];
const allRoutes = new Set();

@@ -502,6 +517,10 @@ const SentryRoutes = (props) => {

routes.forEach(route => {
allRoutes.push(...getChildRoutesRecursively(route));
const extractedChildRoutes = getChildRoutesRecursively(route);
extractedChildRoutes.forEach(r => {
allRoutes.add(r);
});
});
updatePageloadTransaction(getActiveRootSpan(), location, routes, undefined, undefined, allRoutes);
updatePageloadTransaction(getActiveRootSpan(), location, routes, undefined, undefined, Array.from(allRoutes));
isMountRenderPass.current = false;

@@ -514,3 +533,3 @@ } else {

version,
allRoutes,
allRoutes: Array.from(allRoutes),
});

@@ -517,0 +536,0 @@ }

@@ -1,1 +0,1 @@

{"type":"module","version":"8.47.0","sideEffects":false}
{"type":"module","version":"8.48.0","sideEffects":false}

@@ -138,3 +138,3 @@ import { browserTracingIntegration, WINDOW, startBrowserTracingPageLoadSpan, startBrowserTracingNavigationSpan } from '@sentry/browser';

const allRoutes = [];
const allRoutes = new Set();

@@ -164,6 +164,17 @@ const SentryRoutes

routes.forEach(route => {
allRoutes.push(...getChildRoutesRecursively(route));
const extractedChildRoutes = getChildRoutesRecursively(route);
extractedChildRoutes.forEach(r => {
allRoutes.add(r);
});
});
updatePageloadTransaction(getActiveRootSpan(), normalizedLocation, routes, undefined, undefined, allRoutes);
updatePageloadTransaction(
getActiveRootSpan(),
normalizedLocation,
routes,
undefined,
undefined,
Array.from(allRoutes),
);
isMountRenderPass.current = false;

@@ -176,3 +187,3 @@ } else {

version,
allRoutes,
allRoutes: Array.from(allRoutes),
});

@@ -296,11 +307,15 @@ }

function getChildRoutesRecursively(route, allRoutes = []) {
if (route.children && !route.index) {
route.children.forEach(child => {
allRoutes.push(...getChildRoutesRecursively(child, allRoutes));
});
function getChildRoutesRecursively(route, allRoutes = new Set()) {
if (!allRoutes.has(route)) {
allRoutes.add(route);
if (route.children && !route.index) {
route.children.forEach(child => {
const childRoutes = getChildRoutesRecursively(child, allRoutes);
childRoutes.forEach(r => allRoutes.add(r));
});
}
}
allRoutes.push(route);
return allRoutes;

@@ -382,6 +397,6 @@ }

const newPath = path[0] === '/' || pathBuilder[pathBuilder.length - 1] === '/' ? path : `/${path}`;
pathBuilder += newPath;
pathBuilder = trimSlash(pathBuilder) + prefixWithSlash(newPath);
// If the path matches the current location, return the path
if (location.pathname.endsWith(basename + branch.pathname)) {
if (trimSlash(location.pathname) === trimSlash(basename + branch.pathname)) {
if (

@@ -468,3 +483,3 @@ // If the route defined on the element is something like

const allRoutes = [];
const allRoutes = new Set();

@@ -483,6 +498,10 @@ const SentryRoutes = (props) => {

routes.forEach(route => {
allRoutes.push(...getChildRoutesRecursively(route));
const extractedChildRoutes = getChildRoutesRecursively(route);
extractedChildRoutes.forEach(r => {
allRoutes.add(r);
});
});
updatePageloadTransaction(getActiveRootSpan(), location, routes, undefined, undefined, allRoutes);
updatePageloadTransaction(getActiveRootSpan(), location, routes, undefined, undefined, Array.from(allRoutes));
isMountRenderPass.current = false;

@@ -495,3 +514,3 @@ } else {

version,
allRoutes,
allRoutes: Array.from(allRoutes),
});

@@ -498,0 +517,0 @@ }

{
"name": "@sentry/react",
"version": "8.47.0",
"version": "8.48.0",
"description": "Official Sentry SDK for React.js",

@@ -42,4 +42,4 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"dependencies": {
"@sentry/browser": "8.47.0",
"@sentry/core": "8.47.0",
"@sentry/browser": "8.48.0",
"@sentry/core": "8.48.0",
"hoist-non-react-statics": "^3.3.2"

@@ -46,0 +46,0 @@ },

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