@sentry/react
Advanced tools
Comparing version 6.5.0-beta.2 to 6.5.0
@@ -19,2 +19,11 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
if (allRoutes === void 0) { allRoutes = []; } | ||
function getInitPathName() { | ||
if (history && history.location) { | ||
return history.location.pathname; | ||
} | ||
if (global && global.location) { | ||
return global.location.pathname; | ||
} | ||
return undefined; | ||
} | ||
function getTransactionName(pathname) { | ||
@@ -36,5 +45,6 @@ if (allRoutes === [] || !matchPath) { | ||
if (startTransactionOnLocationChange === void 0) { startTransactionOnLocationChange = true; } | ||
if (startTransactionOnPageLoad && global && global.location) { | ||
var initPathName = getInitPathName(); | ||
if (startTransactionOnPageLoad && initPathName) { | ||
activeTransaction = customStartTransaction({ | ||
name: getTransactionName(global.location.pathname), | ||
name: getTransactionName(initPathName), | ||
op: 'pageload', | ||
@@ -41,0 +51,0 @@ tags: { |
@@ -16,2 +16,11 @@ import { __assign } from "tslib"; | ||
if (allRoutes === void 0) { allRoutes = []; } | ||
function getInitPathName() { | ||
if (history && history.location) { | ||
return history.location.pathname; | ||
} | ||
if (global && global.location) { | ||
return global.location.pathname; | ||
} | ||
return undefined; | ||
} | ||
function getTransactionName(pathname) { | ||
@@ -33,5 +42,6 @@ if (allRoutes === [] || !matchPath) { | ||
if (startTransactionOnLocationChange === void 0) { startTransactionOnLocationChange = true; } | ||
if (startTransactionOnPageLoad && global && global.location) { | ||
var initPathName = getInitPathName(); | ||
if (startTransactionOnPageLoad && initPathName) { | ||
activeTransaction = customStartTransaction({ | ||
name: getTransactionName(global.location.pathname), | ||
name: getTransactionName(initPathName), | ||
op: 'pageload', | ||
@@ -38,0 +48,0 @@ tags: { |
{ | ||
"name": "@sentry/react", | ||
"version": "6.5.0-beta.2", | ||
"version": "6.5.0", | ||
"description": "Official Sentry SDK for React.js", | ||
@@ -19,6 +19,6 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/browser": "6.5.0-beta.2", | ||
"@sentry/minimal": "6.5.0-beta.2", | ||
"@sentry/types": "6.5.0-beta.2", | ||
"@sentry/utils": "6.5.0-beta.2", | ||
"@sentry/browser": "6.5.0", | ||
"@sentry/minimal": "6.5.0", | ||
"@sentry/types": "6.5.0", | ||
"@sentry/utils": "6.5.0", | ||
"hoist-non-react-statics": "^3.3.2", | ||
@@ -31,3 +31,3 @@ "tslib": "^1.9.3" | ||
"devDependencies": { | ||
"@sentry-internal/eslint-config-sdk": "6.5.0-beta.2", | ||
"@sentry-internal/eslint-config-sdk": "6.5.0", | ||
"@testing-library/react": "^11.2.6", | ||
@@ -34,0 +34,0 @@ "@testing-library/react-hooks": "^5.1.1", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
192375
1729
0
+ Added@sentry/browser@6.5.0(transitive)
+ Added@sentry/core@6.5.0(transitive)
+ Added@sentry/hub@6.5.0(transitive)
+ Added@sentry/minimal@6.5.0(transitive)
+ Added@sentry/types@6.5.0(transitive)
+ Added@sentry/utils@6.5.0(transitive)
- Removed@sentry/browser@6.5.0-beta.2(transitive)
- Removed@sentry/core@6.5.0-beta.2(transitive)
- Removed@sentry/hub@6.5.0-beta.2(transitive)
- Removed@sentry/minimal@6.5.0-beta.2(transitive)
- Removed@sentry/types@6.5.0-beta.2(transitive)
- Removed@sentry/utils@6.5.0-beta.2(transitive)
Updated@sentry/browser@6.5.0
Updated@sentry/minimal@6.5.0
Updated@sentry/types@6.5.0
Updated@sentry/utils@6.5.0