@sentry/react
Advanced tools
Comparing version 7.91.0 to 7.92.0
@@ -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 @@ ); |
@@ -171,3 +171,4 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
if (activeTransaction && props && props.computedMatch && props.computedMatch.isExact) { | ||
activeTransaction.setName(props.computedMatch.path, 'route'); | ||
activeTransaction.updateName(props.computedMatch.path); | ||
activeTransaction.setMetadata({ source: 'route' }); | ||
} | ||
@@ -178,3 +179,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: 175}} ); | ||
}; | ||
@@ -181,0 +182,0 @@ |
@@ -137,3 +137,5 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
if (activeTransaction && branches) { | ||
activeTransaction.setName(...getNormalizedName(routes, location, branches, basename)); | ||
const [name, source] = getNormalizedName(routes, location, branches, basename); | ||
activeTransaction.updateName(name); | ||
activeTransaction.setMetadata({ source }); | ||
} | ||
@@ -211,3 +213,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: 212}} ); | ||
}; | ||
@@ -267,3 +269,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: 269}} ); | ||
}; | ||
@@ -270,0 +272,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 @@ ); |
@@ -152,3 +152,4 @@ import { WINDOW } from '@sentry/browser'; | ||
if (activeTransaction && props && props.computedMatch && props.computedMatch.isExact) { | ||
activeTransaction.setName(props.computedMatch.path, 'route'); | ||
activeTransaction.updateName(props.computedMatch.path); | ||
activeTransaction.setMetadata({ source: 'route' }); | ||
} | ||
@@ -159,3 +160,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: 175}} ); | ||
}; | ||
@@ -162,0 +163,0 @@ |
@@ -118,3 +118,5 @@ import { WINDOW } from '@sentry/browser'; | ||
if (activeTransaction && branches) { | ||
activeTransaction.setName(...getNormalizedName(routes, location, branches, basename)); | ||
const [name, source] = getNormalizedName(routes, location, branches, basename); | ||
activeTransaction.updateName(name); | ||
activeTransaction.setMetadata({ source }); | ||
} | ||
@@ -192,3 +194,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: 212}} ); | ||
}; | ||
@@ -248,3 +250,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: 269}} ); | ||
}; | ||
@@ -251,0 +253,0 @@ } |
{ | ||
"name": "@sentry/react", | ||
"version": "7.91.0", | ||
"version": "7.92.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,5 @@ "module": "esm/index.js", | ||
"dependencies": { | ||
"@sentry/browser": "7.91.0", | ||
"@sentry/types": "7.91.0", | ||
"@sentry/utils": "7.91.0", | ||
"@sentry/browser": "7.92.0", | ||
"@sentry/types": "7.92.0", | ||
"@sentry/utils": "7.92.0", | ||
"hoist-non-react-statics": "^3.3.2" | ||
@@ -32,0 +38,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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
280530
2901
+ Added@sentry-internal/feedback@7.92.0(transitive)
+ Added@sentry-internal/tracing@7.92.0(transitive)
+ Added@sentry/browser@7.92.0(transitive)
+ Added@sentry/core@7.92.0(transitive)
+ Added@sentry/replay@7.92.0(transitive)
+ Added@sentry/types@7.92.0(transitive)
+ Added@sentry/utils@7.92.0(transitive)
- Removed@sentry-internal/feedback@7.91.0(transitive)
- Removed@sentry-internal/tracing@7.91.0(transitive)
- Removed@sentry/browser@7.91.0(transitive)
- Removed@sentry/core@7.91.0(transitive)
- Removed@sentry/replay@7.91.0(transitive)
- Removed@sentry/types@7.91.0(transitive)
- Removed@sentry/utils@7.91.0(transitive)
Updated@sentry/browser@7.92.0
Updated@sentry/types@7.92.0
Updated@sentry/utils@7.92.0