Socket
Socket
Sign inDemoInstall

@sentry/react

Package Overview
Dependencies
Maintainers
11
Versions
377
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 8.0.0-beta.4 to 8.0.0-beta.5

4

cjs/errorboundary.js

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

error: state.error,
componentStack: state.componentStack,
componentStack: state.componentStack ,
resetError: this.resetErrorBoundary,
eventId: state.eventId,
eventId: state.eventId ,
});

@@ -171,0 +171,0 @@ } else {

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

error: state.error,
componentStack: state.componentStack,
componentStack: state.componentStack ,
resetError: this.resetErrorBoundary,
eventId: state.eventId,
eventId: state.eventId ,
});

@@ -152,0 +152,0 @@ } else {

{
"name": "@sentry/react",
"version": "8.0.0-beta.4",
"version": "8.0.0-beta.5",
"description": "Official Sentry SDK for React.js",

@@ -45,6 +45,6 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"dependencies": {
"@sentry/browser": "8.0.0-beta.4",
"@sentry/core": "8.0.0-beta.4",
"@sentry/types": "8.0.0-beta.4",
"@sentry/utils": "8.0.0-beta.4",
"@sentry/browser": "8.0.0-beta.5",
"@sentry/core": "8.0.0-beta.5",
"@sentry/types": "8.0.0-beta.5",
"@sentry/utils": "8.0.0-beta.5",
"hoist-non-react-statics": "^3.3.2"

@@ -51,0 +51,0 @@ },

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

export type FallbackRender = (errorData: {
error: Error;
error: unknown;
componentStack: string;

@@ -32,11 +32,11 @@ eventId: string;

/** Called when the error boundary encounters an error */
onError?: ((error: Error, componentStack: string, eventId: string) => void) | undefined;
onError?: ((error: unknown, componentStack: string, eventId: string) => void) | undefined;
/** Called on componentDidMount() */
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) | undefined;
onReset?: ((error: unknown, componentStack: string | null, eventId: string | null) => void) | undefined;
/** Called on componentWillUnmount() */
onUnmount?: ((error: Error | null, componentStack: string | null, eventId: string | null) => void) | undefined;
onUnmount?: ((error: unknown, 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) | undefined;
beforeCapture?: ((scope: Scope, error: unknown, componentStack: string | undefined) => void) | undefined;
};

@@ -49,3 +49,3 @@ type ErrorBoundaryState = {

componentStack: React.ErrorInfo['componentStack'];
error: Error;
error: unknown;
eventId: string;

@@ -64,5 +64,3 @@ };

constructor(props: ErrorBoundaryProps);
componentDidCatch(error: Error & {
cause?: Error;
}, { componentStack }: React.ErrorInfo): void;
componentDidCatch(error: unknown, { componentStack }: React.ErrorInfo): void;
componentDidMount(): void;

@@ -69,0 +67,0 @@ componentWillUnmount(): void;

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

export type FallbackRender = (errorData: {
error: Error;
error: unknown;
componentStack: string;

@@ -32,11 +32,11 @@ eventId: string;

/** Called when the error boundary encounters an error */
onError?: ((error: Error, componentStack: string, eventId: string) => void) | undefined;
onError?: ((error: unknown, componentStack: string, eventId: string) => void) | undefined;
/** Called on componentDidMount() */
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) | undefined;
onReset?: ((error: unknown, componentStack: string | null, eventId: string | null) => void) | undefined;
/** Called on componentWillUnmount() */
onUnmount?: ((error: Error | null, componentStack: string | null, eventId: string | null) => void) | undefined;
onUnmount?: ((error: unknown, 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) | undefined;
beforeCapture?: ((scope: Scope, error: unknown, componentStack: string | undefined) => void) | undefined;
};

@@ -49,3 +49,3 @@ type ErrorBoundaryState = {

componentStack: React.ErrorInfo['componentStack'];
error: Error;
error: unknown;
eventId: string;

@@ -64,5 +64,3 @@ };

constructor(props: ErrorBoundaryProps);
componentDidCatch(error: Error & {
cause?: Error;
}, { componentStack }: React.ErrorInfo): void;
componentDidCatch(error: unknown, { componentStack }: React.ErrorInfo): void;
componentDidMount(): void;

@@ -69,0 +67,0 @@ componentWillUnmount(): void;

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