Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sentry/react

Package Overview
Dependencies
Maintainers
11
Versions
407
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.82.0 to 7.83.0

cjs/debug-build.js

7

cjs/errorboundary.js

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

const React = require('react');
const debugBuild = require('./debug-build.js');

@@ -177,3 +178,3 @@ const _interopDefault = e => e && e.__esModule ? e.default : e;

if (fallback) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.warn('fallback did not produce a valid ReactElement');
debugBuild.DEBUG_BUILD && utils.logger.warn('fallback did not produce a valid ReactElement');
}

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

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

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

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

const React = require('react');
const debugBuild = require('./debug-build.js');

@@ -178,3 +179,3 @@ const _interopDefault = e => e && e.__esModule ? e.default : e;

) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
debugBuild.DEBUG_BUILD &&
utils.logger.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.

@@ -211,3 +212,3 @@ useEffect: ${_useEffect}. useLocation: ${_useLocation}. useNavigationType: ${_useNavigationType}.

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

@@ -224,3 +225,3 @@

if (!_useEffect || !_useLocation || !_useNavigationType || !_matchRoutes || !_customStartTransaction) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
debugBuild.DEBUG_BUILD &&
utils.logger.warn(

@@ -268,3 +269,3 @@ 'reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters.',

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

@@ -271,0 +272,0 @@ }

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

import * as React from 'react';
import { DEBUG_BUILD } from './debug-build.js';

@@ -158,3 +159,3 @@ const _jsxFileName = "/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/errorboundary.tsx";

if (fallback) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('fallback did not produce a valid ReactElement');
DEBUG_BUILD && logger.warn('fallback did not produce a valid ReactElement');
}

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

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

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

@@ -5,2 +5,3 @@ import { WINDOW } from '@sentry/browser';

import * as React from 'react';
import { DEBUG_BUILD } from './debug-build.js';

@@ -159,3 +160,3 @@ const _jsxFileName = "/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/reactrouterv6.tsx";// Inspired from Donnie McNeal's solution:

) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
DEBUG_BUILD &&
logger.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.

@@ -192,3 +193,3 @@ useEffect: ${_useEffect}. useLocation: ${_useLocation}. useNavigationType: ${_useNavigationType}.

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

@@ -205,3 +206,3 @@

if (!_useEffect || !_useLocation || !_useNavigationType || !_matchRoutes || !_customStartTransaction) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
DEBUG_BUILD &&
logger.warn(

@@ -249,3 +250,3 @@ 'reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters.',

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

@@ -252,0 +253,0 @@ }

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

@@ -26,5 +26,5 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"dependencies": {
"@sentry/browser": "7.82.0",
"@sentry/types": "7.82.0",
"@sentry/utils": "7.82.0",
"@sentry/browser": "7.83.0",
"@sentry/types": "7.83.0",
"@sentry/utils": "7.83.0",
"hoist-non-react-statics": "^3.3.2"

@@ -31,0 +31,0 @@ },

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

/** If a Sentry report dialog should be rendered on error */
showDialog?: boolean;
showDialog?: boolean | undefined;
/**

@@ -20,3 +20,3 @@ * Options to be passed into the Sentry report dialog.

*/
dialogOptions?: ReportDialogOptions;
dialogOptions?: ReportDialogOptions | undefined;
/**

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

*/
fallback?: React.ReactElement | FallbackRender;
fallback?: React.ReactElement | FallbackRender | undefined;
/** Called when the error boundary encounters an error */
onError?(error: Error, componentStack: string, eventId: string): void;
onError?: ((error: Error, componentStack: string, eventId: string) => void) | undefined;
/** Called on componentDidMount() */
onMount?(): void;
onMount?: (() => void) | undefined;
/** Called if resetError() is called from the fallback render props function */
onReset?(error: Error | null, componentStack: string | null, eventId: string | null): void;
onReset?: ((error: Error | null, componentStack: string | null, eventId: string | null) => void) | undefined;
/** Called on componentWillUnmount() */
onUnmount?(error: Error | null, componentStack: string | null, eventId: string | null): void;
onUnmount?: ((error: Error | null, componentStack: string | null, eventId: string | null) => void) | undefined;
/** Called before the error is captured by Sentry, allows for you to add tags or context using the scope */
beforeCapture?(scope: Scope, error: Error | null, componentStack: string | null): void;
beforeCapture?: ((scope: Scope, error: Error | null, componentStack: string | null) => void) | undefined;
};

@@ -43,0 +43,0 @@ type ErrorBoundaryState = {

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

/** If a Sentry report dialog should be rendered on error */
showDialog?: boolean;
showDialog?: boolean | undefined;
/**

@@ -20,3 +20,3 @@ * Options to be passed into the Sentry report dialog.

*/
dialogOptions?: ReportDialogOptions;
dialogOptions?: ReportDialogOptions | undefined;
/**

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

*/
fallback?: React.ReactElement | FallbackRender;
fallback?: React.ReactElement | FallbackRender | undefined;
/** Called when the error boundary encounters an error */
onError?(error: Error, componentStack: string, eventId: string): void;
onError?: ((error: Error, componentStack: string, eventId: string) => void) | undefined;
/** Called on componentDidMount() */
onMount?(): void;
onMount?: (() => void) | undefined;
/** Called if resetError() is called from the fallback render props function */
onReset?(error: Error | null, componentStack: string | null, eventId: string | null): void;
onReset?: ((error: Error | null, componentStack: string | null, eventId: string | null) => void) | undefined;
/** Called on componentWillUnmount() */
onUnmount?(error: Error | null, componentStack: string | null, eventId: string | null): void;
onUnmount?: ((error: Error | null, componentStack: string | null, eventId: string | null) => void) | undefined;
/** Called before the error is captured by Sentry, allows for you to add tags or context using the scope */
beforeCapture?(scope: Scope, error: Error | null, componentStack: string | null): void;
beforeCapture?: ((scope: Scope, error: Error | null, componentStack: string | null) => void) | undefined;
};

@@ -43,0 +43,0 @@ type ErrorBoundaryState = {

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