Socket
Socket
Sign inDemoInstall

@sentry/react

Package Overview
Dependencies
Maintainers
12
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 6.8.0 to 6.9.0

9

dist/errorboundary.js

@@ -99,4 +99,4 @@ Object.defineProperty(exports, "__esModule", { value: true });

ErrorBoundary.prototype.render = function () {
var fallback = this.props.fallback;
var _a = this.state, error = _a.error, componentStack = _a.componentStack, eventId = _a.eventId;
var _a = this.props, fallback = _a.fallback, children = _a.children;
var _b = this.state, error = _b.error, componentStack = _b.componentStack, eventId = _b.eventId;
if (error) {

@@ -112,3 +112,6 @@ if (React.isValidElement(fallback)) {

}
return this.props.children;
if (typeof children === 'function') {
return children();
}
return children;
};

@@ -115,0 +118,0 @@ return ErrorBoundary;

@@ -29,3 +29,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

function getTransactionName(pathname) {
if (allRoutes === [] || !matchPath) {
if (allRoutes.length === 0 || !matchPath) {
return pathname;

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

@@ -98,4 +98,4 @@ import { __assign, __extends, __read, __spread } from "tslib";

ErrorBoundary.prototype.render = function () {
var fallback = this.props.fallback;
var _a = this.state, error = _a.error, componentStack = _a.componentStack, eventId = _a.eventId;
var _a = this.props, fallback = _a.fallback, children = _a.children;
var _b = this.state, error = _b.error, componentStack = _b.componentStack, eventId = _b.eventId;
if (error) {

@@ -111,3 +111,6 @@ if (React.isValidElement(fallback)) {

}
return this.props.children;
if (typeof children === 'function') {
return children();
}
return children;
};

@@ -114,0 +117,0 @@ return ErrorBoundary;

@@ -26,3 +26,3 @@ import { __assign } from "tslib";

function getTransactionName(pathname) {
if (allRoutes === [] || !matchPath) {
if (allRoutes.length === 0 || !matchPath) {
return pathname;

@@ -29,0 +29,0 @@ }

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

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

"dependencies": {
"@sentry/browser": "6.8.0",
"@sentry/minimal": "6.8.0",
"@sentry/types": "6.8.0",
"@sentry/utils": "6.8.0",
"@sentry/browser": "6.9.0",
"@sentry/minimal": "6.9.0",
"@sentry/types": "6.9.0",
"@sentry/utils": "6.9.0",
"hoist-non-react-statics": "^3.3.2",

@@ -31,3 +31,3 @@ "tslib": "^1.9.3"

"devDependencies": {
"@sentry-internal/eslint-config-sdk": "6.8.0",
"@sentry-internal/eslint-config-sdk": "6.9.0",
"@testing-library/react": "^11.2.6",

@@ -67,3 +67,3 @@ "@testing-library/react-hooks": "^5.1.1",

"build:watch:esm": "tsc -p tsconfig.esm.json -w --preserveWatchOutput",
"clean": "rimraf dist coverage build esm",
"clean": "rimraf dist esm build coverage",
"link:yarn": "yarn link",

@@ -70,0 +70,0 @@ "lint": "run-s lint:prettier lint:eslint",

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