Socket
Socket
Sign inDemoInstall

@sentry/react

Package Overview
Dependencies
Maintainers
11
Versions
382
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 7.91.0 to 7.93.0

5

cjs/errorboundary.js

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

if (!event.type && event.event_id === this._lastEventId) {
// eslint-disable-next-line deprecation/deprecation
browser.showReportDialog({ ...props.dialogOptions, eventId: this._lastEventId });

@@ -201,4 +202,4 @@ }

const Wrapped = (props) => (
React__namespace.createElement(ErrorBoundary, { ...errorBoundaryOptions, __self: this, __source: {fileName: _jsxFileName, lineNumber: 236}}
, React__namespace.createElement(WrappedComponent, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 237}} )
React__namespace.createElement(ErrorBoundary, { ...errorBoundaryOptions, __self: this, __source: {fileName: _jsxFileName, lineNumber: 238}}
, React__namespace.createElement(WrappedComponent, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 239}} )
)

@@ -205,0 +206,0 @@ );

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

if (activeTransaction) {
// eslint-disable-next-line deprecation/deprecation
this._mountSpan = activeTransaction.startChild({

@@ -88,2 +89,3 @@ description: `<${name}>`,

const now = utils.timestampInSeconds();
// eslint-disable-next-line deprecation/deprecation
this._updateSpan = this._mountSpan.startChild({

@@ -120,2 +122,3 @@ data: {

// next activity as a child to the component mount activity.
// eslint-disable-next-line deprecation/deprecation
this._mountSpan.startChild({

@@ -154,4 +157,4 @@ description: `<${name}>`,

const Wrapped = (props) => (
React__namespace.createElement(Profiler, { ...options, name: componentDisplayName, updateProps: props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 152}}
, React__namespace.createElement(WrappedComponent, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 153}} )
React__namespace.createElement(Profiler, { ...options, name: componentDisplayName, updateProps: props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 155}}
, React__namespace.createElement(WrappedComponent, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 156}} )
)

@@ -189,2 +192,3 @@ );

if (activeTransaction) {
// eslint-disable-next-line deprecation/deprecation
return activeTransaction.startChild({

@@ -208,2 +212,3 @@ description: `<${name}>`,

if (mountSpan && options.hasRenderSpan) {
// eslint-disable-next-line deprecation/deprecation
mountSpan.startChild({

@@ -228,2 +233,3 @@ description: `<${name}>`,

const scope = hub.getScope();
// eslint-disable-next-line deprecation/deprecation
return scope.getTransaction() ;

@@ -230,0 +236,0 @@ }

6

cjs/reactrouter.js
Object.defineProperty(exports, '__esModule', { value: true });
const browser = require('@sentry/browser');
const core = require('@sentry/core');
const hoistNonReactStatics = require('hoist-non-react-statics');

@@ -171,3 +172,4 @@ const React = require('react');

if (activeTransaction && props && props.computedMatch && props.computedMatch.isExact) {
activeTransaction.setName(props.computedMatch.path, 'route');
activeTransaction.updateName(props.computedMatch.path);
activeTransaction.setAttribute(core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, 'route');
}

@@ -178,3 +180,3 @@

// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/13dc4235c069e25fe7ee16e11f529d909f9f3ff8/types/react-router/index.d.ts#L154-L164
return React__namespace.createElement(Route, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 174}} );
return React__namespace.createElement(Route, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 176}} );
};

@@ -181,0 +183,0 @@

Object.defineProperty(exports, '__esModule', { value: true });
const browser = require('@sentry/browser');
const core = require('@sentry/core');
const utils = require('@sentry/utils');

@@ -137,3 +138,5 @@ const hoistNonReactStatics = require('hoist-non-react-statics');

if (activeTransaction && branches) {
activeTransaction.setName(...getNormalizedName(routes, location, branches, basename));
const [name, source] = getNormalizedName(routes, location, branches, basename);
activeTransaction.updateName(name);
activeTransaction.setAttribute(core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, source);
}

@@ -211,3 +214,3 @@ }

// will break advanced type inference done by react router params
return React__namespace.createElement(Routes, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 210}} );
return React__namespace.createElement(Routes, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 213}} );
};

@@ -267,3 +270,3 @@

return (routes, locationArg) => {
return React__namespace.createElement(SentryRoutes, { routes: routes, locationArg: locationArg, __self: this, __source: {fileName: _jsxFileName, lineNumber: 267}} );
return React__namespace.createElement(SentryRoutes, { routes: routes, locationArg: locationArg, __self: this, __source: {fileName: _jsxFileName, lineNumber: 270}} );
};

@@ -270,0 +273,0 @@ }

@@ -59,2 +59,3 @@ import { getClient, showReportDialog, withScope, captureException } from '@sentry/browser';

if (!event.type && event.event_id === this._lastEventId) {
// eslint-disable-next-line deprecation/deprecation
showReportDialog({ ...props.dialogOptions, eventId: this._lastEventId });

@@ -182,4 +183,4 @@ }

const Wrapped = (props) => (
React.createElement(ErrorBoundary, { ...errorBoundaryOptions, __self: this, __source: {fileName: _jsxFileName, lineNumber: 236}}
, React.createElement(WrappedComponent, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 237}} )
React.createElement(ErrorBoundary, { ...errorBoundaryOptions, __self: this, __source: {fileName: _jsxFileName, lineNumber: 238}}
, React.createElement(WrappedComponent, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 239}} )
)

@@ -186,0 +187,0 @@ );

@@ -42,2 +42,3 @@ import { getCurrentHub } from '@sentry/browser';

if (activeTransaction) {
// eslint-disable-next-line deprecation/deprecation
this._mountSpan = activeTransaction.startChild({

@@ -69,2 +70,3 @@ description: `<${name}>`,

const now = timestampInSeconds();
// eslint-disable-next-line deprecation/deprecation
this._updateSpan = this._mountSpan.startChild({

@@ -101,2 +103,3 @@ data: {

// next activity as a child to the component mount activity.
// eslint-disable-next-line deprecation/deprecation
this._mountSpan.startChild({

@@ -135,4 +138,4 @@ description: `<${name}>`,

const Wrapped = (props) => (
React.createElement(Profiler, { ...options, name: componentDisplayName, updateProps: props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 152}}
, React.createElement(WrappedComponent, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 153}} )
React.createElement(Profiler, { ...options, name: componentDisplayName, updateProps: props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 155}}
, React.createElement(WrappedComponent, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 156}} )
)

@@ -170,2 +173,3 @@ );

if (activeTransaction) {
// eslint-disable-next-line deprecation/deprecation
return activeTransaction.startChild({

@@ -189,2 +193,3 @@ description: `<${name}>`,

if (mountSpan && options.hasRenderSpan) {
// eslint-disable-next-line deprecation/deprecation
mountSpan.startChild({

@@ -209,2 +214,3 @@ description: `<${name}>`,

const scope = hub.getScope();
// eslint-disable-next-line deprecation/deprecation
return scope.getTransaction() ;

@@ -211,0 +217,0 @@ }

import { WINDOW } from '@sentry/browser';
import { SEMANTIC_ATTRIBUTE_SENTRY_SOURCE } from '@sentry/core';
import hoistNonReactStatics from 'hoist-non-react-statics';

@@ -152,3 +153,4 @@ import * as React from 'react';

if (activeTransaction && props && props.computedMatch && props.computedMatch.isExact) {
activeTransaction.setName(props.computedMatch.path, 'route');
activeTransaction.updateName(props.computedMatch.path);
activeTransaction.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, 'route');
}

@@ -159,3 +161,3 @@

// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/13dc4235c069e25fe7ee16e11f529d909f9f3ff8/types/react-router/index.d.ts#L154-L164
return React.createElement(Route, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 174}} );
return React.createElement(Route, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 176}} );
};

@@ -162,0 +164,0 @@

import { WINDOW } from '@sentry/browser';
import { SEMANTIC_ATTRIBUTE_SENTRY_SOURCE } from '@sentry/core';
import { logger, getNumberOfUrlSegments } from '@sentry/utils';

@@ -118,3 +119,5 @@ import hoistNonReactStatics from 'hoist-non-react-statics';

if (activeTransaction && branches) {
activeTransaction.setName(...getNormalizedName(routes, location, branches, basename));
const [name, source] = getNormalizedName(routes, location, branches, basename);
activeTransaction.updateName(name);
activeTransaction.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, source);
}

@@ -192,3 +195,3 @@ }

// will break advanced type inference done by react router params
return React.createElement(Routes, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 210}} );
return React.createElement(Routes, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 213}} );
};

@@ -248,3 +251,3 @@

return (routes, locationArg) => {
return React.createElement(SentryRoutes, { routes: routes, locationArg: locationArg, __self: this, __source: {fileName: _jsxFileName, lineNumber: 267}} );
return React.createElement(SentryRoutes, { routes: routes, locationArg: locationArg, __self: this, __source: {fileName: _jsxFileName, lineNumber: 270}} );
};

@@ -251,0 +254,0 @@ }

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

@@ -12,2 +12,8 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

},
"files": [
"cjs",
"esm",
"types",
"types-ts3.8"
],
"main": "cjs/index.js",

@@ -27,5 +33,6 @@ "module": "esm/index.js",

"dependencies": {
"@sentry/browser": "7.91.0",
"@sentry/types": "7.91.0",
"@sentry/utils": "7.91.0",
"@sentry/browser": "7.93.0",
"@sentry/core": "7.93.0",
"@sentry/types": "7.93.0",
"@sentry/utils": "7.93.0",
"hoist-non-react-statics": "^3.3.2"

@@ -32,0 +39,0 @@ },

@@ -19,3 +19,3 @@ import { ReportDialogOptions, Scope } from '@sentry/browser';

*/
dialogOptions?: ReportDialogOptions | undefined;
dialogOptions?: Pick<ReportDialogOptions, Exclude<keyof ReportDialogOptions, 'eventId'>> | undefined;
/**

@@ -22,0 +22,0 @@ * A fallback component that gets rendered when the error boundary encounters an error.

@@ -19,3 +19,3 @@ import type { ReportDialogOptions, Scope } from '@sentry/browser';

*/
dialogOptions?: ReportDialogOptions | undefined;
dialogOptions?: Omit<ReportDialogOptions, 'eventId'> | undefined;
/**

@@ -22,0 +22,0 @@ * A fallback component that gets rendered when the error boundary encounters an error.

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

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