@sentry/react
Advanced tools
Comparing version 7.98.0 to 7.99.0
@@ -61,2 +61,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
name: `<${name}>`, | ||
onlyIfParent: true, | ||
op: constants.REACT_MOUNT_OP, | ||
@@ -88,2 +89,3 @@ origin: 'auto.ui.react.profiler', | ||
name: `<${this.props.name}>`, | ||
onlyIfParent: true, | ||
op: constants.REACT_UPDATE_OP, | ||
@@ -121,2 +123,3 @@ origin: 'auto.ui.react.profiler', | ||
const renderSpan = browser.startInactiveSpan({ | ||
onlyIfParent: true, | ||
name: `<${name}>`, | ||
@@ -160,4 +163,4 @@ op: constants.REACT_RENDER_OP, | ||
const Wrapped = (props) => ( | ||
React__namespace.createElement(Profiler, { ...options, name: componentDisplayName, updateProps: props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 156}} | ||
, React__namespace.createElement(WrappedComponent, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 157}} ) | ||
React__namespace.createElement(Profiler, { ...options, name: componentDisplayName, updateProps: props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 159}} | ||
, React__namespace.createElement(WrappedComponent, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 160}} ) | ||
) | ||
@@ -195,2 +198,3 @@ ); | ||
name: `<${name}>`, | ||
onlyIfParent: true, | ||
op: constants.REACT_MOUNT_OP, | ||
@@ -214,2 +218,3 @@ origin: 'auto.ui.react.profiler', | ||
name: `<${name}>`, | ||
onlyIfParent: true, | ||
op: constants.REACT_RENDER_OP, | ||
@@ -216,0 +221,0 @@ origin: 'auto.ui.react.profiler', |
Object.defineProperty(exports, '__esModule', { value: true }); | ||
const browser = require('@sentry/browser'); | ||
const core = require('@sentry/core'); | ||
const utils = require('@sentry/utils'); | ||
@@ -32,3 +32,3 @@ | ||
options.attachReduxState && | ||
browser.addEventProcessor((event, hint) => { | ||
core.getGlobalScope().addEventProcessor((event, hint) => { | ||
try { | ||
@@ -52,3 +52,4 @@ // @ts-expect-error try catch to reduce bundle size | ||
const scope = browser.getCurrentScope(); | ||
const scope = core.getCurrentScope(); | ||
/* Action breadcrumbs */ | ||
@@ -67,3 +68,3 @@ const transformedAction = options.actionTransformer(action); | ||
if (typeof transformedState !== 'undefined' && transformedState !== null) { | ||
const client = browser.getClient(); | ||
const client = core.getClient(); | ||
const options = client && client.getOptions(); | ||
@@ -70,0 +71,0 @@ const normalizationDepth = (options && options.normalizeDepth) || 3; // default state normalization depth to 3 |
@@ -42,2 +42,3 @@ import { startInactiveSpan } from '@sentry/browser'; | ||
name: `<${name}>`, | ||
onlyIfParent: true, | ||
op: REACT_MOUNT_OP, | ||
@@ -69,2 +70,3 @@ origin: 'auto.ui.react.profiler', | ||
name: `<${this.props.name}>`, | ||
onlyIfParent: true, | ||
op: REACT_UPDATE_OP, | ||
@@ -102,2 +104,3 @@ origin: 'auto.ui.react.profiler', | ||
const renderSpan = startInactiveSpan({ | ||
onlyIfParent: true, | ||
name: `<${name}>`, | ||
@@ -141,4 +144,4 @@ op: REACT_RENDER_OP, | ||
const Wrapped = (props) => ( | ||
React.createElement(Profiler, { ...options, name: componentDisplayName, updateProps: props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 156}} | ||
, React.createElement(WrappedComponent, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 157}} ) | ||
React.createElement(Profiler, { ...options, name: componentDisplayName, updateProps: props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 159}} | ||
, React.createElement(WrappedComponent, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 160}} ) | ||
) | ||
@@ -176,2 +179,3 @@ ); | ||
name: `<${name}>`, | ||
onlyIfParent: true, | ||
op: REACT_MOUNT_OP, | ||
@@ -195,2 +199,3 @@ origin: 'auto.ui.react.profiler', | ||
name: `<${name}>`, | ||
onlyIfParent: true, | ||
op: REACT_RENDER_OP, | ||
@@ -197,0 +202,0 @@ origin: 'auto.ui.react.profiler', |
@@ -1,2 +0,2 @@ | ||
import { addEventProcessor, getCurrentScope, getClient } from '@sentry/browser'; | ||
import { getGlobalScope, getCurrentScope, getClient } from '@sentry/core'; | ||
import { addNonEnumerableProperty } from '@sentry/utils'; | ||
@@ -30,3 +30,3 @@ | ||
options.attachReduxState && | ||
addEventProcessor((event, hint) => { | ||
getGlobalScope().addEventProcessor((event, hint) => { | ||
try { | ||
@@ -51,2 +51,3 @@ // @ts-expect-error try catch to reduce bundle size | ||
const scope = getCurrentScope(); | ||
/* Action breadcrumbs */ | ||
@@ -53,0 +54,0 @@ const transformedAction = options.actionTransformer(action); |
{ | ||
"name": "@sentry/react", | ||
"version": "7.98.0", | ||
"version": "7.99.0", | ||
"description": "Official Sentry SDK for React.js", | ||
@@ -32,6 +32,6 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/browser": "7.98.0", | ||
"@sentry/core": "7.98.0", | ||
"@sentry/types": "7.98.0", | ||
"@sentry/utils": "7.98.0", | ||
"@sentry/browser": "7.99.0", | ||
"@sentry/core": "7.99.0", | ||
"@sentry/types": "7.99.0", | ||
"@sentry/utils": "7.99.0", | ||
"hoist-non-react-statics": "^3.3.2" | ||
@@ -38,0 +38,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
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
287778
2944
+ Added@sentry-internal/feedback@7.99.0(transitive)
+ Added@sentry-internal/replay-canvas@7.99.0(transitive)
+ Added@sentry-internal/tracing@7.99.0(transitive)
+ Added@sentry/browser@7.99.0(transitive)
+ Added@sentry/core@7.99.0(transitive)
+ Added@sentry/replay@7.99.0(transitive)
+ Added@sentry/types@7.99.0(transitive)
+ Added@sentry/utils@7.99.0(transitive)
- Removed@sentry-internal/feedback@7.98.0(transitive)
- Removed@sentry-internal/replay-canvas@7.98.0(transitive)
- Removed@sentry-internal/tracing@7.98.0(transitive)
- Removed@sentry/browser@7.98.0(transitive)
- Removed@sentry/core@7.98.0(transitive)
- Removed@sentry/replay@7.98.0(transitive)
- Removed@sentry/types@7.98.0(transitive)
- Removed@sentry/utils@7.98.0(transitive)
Updated@sentry/browser@7.99.0
Updated@sentry/core@7.99.0
Updated@sentry/types@7.99.0
Updated@sentry/utils@7.99.0