@sentry/react
Advanced tools
Comparing version 6.9.0 to 6.10.0-beta
@@ -23,4 +23,4 @@ import * as React from 'react'; | ||
export declare function reactRouterV5Instrumentation(history: RouterHistory, routes?: RouteConfig[], matchPath?: MatchPath): ReactRouterInstrumentation; | ||
export declare function withSentryRouting<P extends Record<string, any>>(Route: React.ComponentType<P>): React.FC<P>; | ||
export declare function withSentryRouting<P extends Record<string, any>, R extends React.ComponentType<P>>(Route: R): R; | ||
export {}; | ||
//# sourceMappingURL=reactrouter.d.ts.map |
@@ -98,3 +98,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
} | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
function withSentryRouting(Route) { | ||
@@ -106,2 +106,5 @@ var componentDisplayName = Route.displayName || Route.name; | ||
} | ||
// @ts-ignore Setting more specific React Component typing for `R` generic above | ||
// will break advanced type inference done by react router params: | ||
// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/13dc4235c069e25fe7ee16e11f529d909f9f3ff8/types/react-router/index.d.ts#L154-L164 | ||
return React.createElement(Route, tslib_1.__assign({}, props)); | ||
@@ -111,5 +114,9 @@ }; | ||
hoist_non_react_statics_1.default(WrappedRoute, Route); | ||
// @ts-ignore Setting more specific React Component typing for `R` generic above | ||
// will break advanced type inference done by react router params: | ||
// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/13dc4235c069e25fe7ee16e11f529d909f9f3ff8/types/react-router/index.d.ts#L154-L164 | ||
return WrappedRoute; | ||
} | ||
exports.withSentryRouting = withSentryRouting; | ||
/* eslint-enable @typescript-eslint/no-explicit-any */ | ||
//# sourceMappingURL=reactrouter.js.map |
@@ -23,4 +23,4 @@ import * as React from 'react'; | ||
export declare function reactRouterV5Instrumentation(history: RouterHistory, routes?: RouteConfig[], matchPath?: MatchPath): ReactRouterInstrumentation; | ||
export declare function withSentryRouting<P extends Record<string, any>>(Route: React.ComponentType<P>): React.FC<P>; | ||
export declare function withSentryRouting<P extends Record<string, any>, R extends React.ComponentType<P>>(Route: R): R; | ||
export {}; | ||
//# sourceMappingURL=reactrouter.d.ts.map |
@@ -95,3 +95,3 @@ import { __assign } from "tslib"; | ||
} | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
export function withSentryRouting(Route) { | ||
@@ -103,2 +103,5 @@ var componentDisplayName = Route.displayName || Route.name; | ||
} | ||
// @ts-ignore Setting more specific React Component typing for `R` generic above | ||
// will break advanced type inference done by react router params: | ||
// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/13dc4235c069e25fe7ee16e11f529d909f9f3ff8/types/react-router/index.d.ts#L154-L164 | ||
return React.createElement(Route, __assign({}, props)); | ||
@@ -108,4 +111,8 @@ }; | ||
hoistNonReactStatics(WrappedRoute, Route); | ||
// @ts-ignore Setting more specific React Component typing for `R` generic above | ||
// will break advanced type inference done by react router params: | ||
// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/13dc4235c069e25fe7ee16e11f529d909f9f3ff8/types/react-router/index.d.ts#L154-L164 | ||
return WrappedRoute; | ||
} | ||
/* eslint-enable @typescript-eslint/no-explicit-any */ | ||
//# sourceMappingURL=reactrouter.js.map |
{ | ||
"name": "@sentry/react", | ||
"version": "6.9.0", | ||
"version": "6.10.0-beta", | ||
"description": "Official Sentry SDK for React.js", | ||
@@ -19,6 +19,6 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/browser": "6.9.0", | ||
"@sentry/minimal": "6.9.0", | ||
"@sentry/types": "6.9.0", | ||
"@sentry/utils": "6.9.0", | ||
"@sentry/browser": "6.10.0-beta", | ||
"@sentry/minimal": "6.10.0-beta", | ||
"@sentry/types": "6.10.0-beta", | ||
"@sentry/utils": "6.10.0-beta", | ||
"hoist-non-react-statics": "^3.3.2", | ||
@@ -31,3 +31,3 @@ "tslib": "^1.9.3" | ||
"devDependencies": { | ||
"@sentry-internal/eslint-config-sdk": "6.9.0", | ||
"@sentry-internal/eslint-config-sdk": "6.10.0-beta", | ||
"@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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
195839
1749
1
+ Added@sentry/browser@6.10.0-beta(transitive)
+ Added@sentry/core@6.10.0-beta(transitive)
+ Added@sentry/hub@6.10.0-beta(transitive)
+ Added@sentry/minimal@6.10.0-beta(transitive)
+ Added@sentry/types@6.10.0-beta(transitive)
+ Added@sentry/utils@6.10.0-beta(transitive)
- Removed@sentry/browser@6.9.0(transitive)
- Removed@sentry/core@6.9.0(transitive)
- Removed@sentry/hub@6.9.0(transitive)
- Removed@sentry/minimal@6.9.0(transitive)
- Removed@sentry/types@6.9.0(transitive)
- Removed@sentry/utils@6.9.0(transitive)
Updated@sentry/browser@6.10.0-beta
Updated@sentry/minimal@6.10.0-beta
Updated@sentry/types@6.10.0-beta
Updated@sentry/utils@6.10.0-beta