@sentry/react
Advanced tools
Comparing version 6.8.0 to 6.9.0
@@ -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
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
192961
1735
+ Added@sentry/browser@6.9.0(transitive)
+ Added@sentry/core@6.9.0(transitive)
+ Added@sentry/hub@6.9.0(transitive)
+ Added@sentry/minimal@6.9.0(transitive)
+ Added@sentry/types@6.9.0(transitive)
+ Added@sentry/utils@6.9.0(transitive)
- Removed@sentry/browser@6.8.0(transitive)
- Removed@sentry/core@6.8.0(transitive)
- Removed@sentry/hub@6.8.0(transitive)
- Removed@sentry/minimal@6.8.0(transitive)
- Removed@sentry/types@6.8.0(transitive)
- Removed@sentry/utils@6.8.0(transitive)
Updated@sentry/browser@6.9.0
Updated@sentry/minimal@6.9.0
Updated@sentry/types@6.9.0
Updated@sentry/utils@6.9.0