Socket
Socket
Sign inDemoInstall

@sentry/react

Package Overview
Dependencies
Maintainers
13
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 5.18.0 to 5.18.1

6

dist/profiler.d.ts

@@ -7,4 +7,4 @@ import { Span } from '@sentry/types';

disabled?: boolean;
hasRenderSpan?: boolean;
hasUpdateSpan?: boolean;
includeRender?: boolean;
includeUpdates?: boolean;
updateProps: {

@@ -25,3 +25,3 @@ [key: string]: any;

componentDidMount(): void;
componentDidUpdate({ updateProps, hasUpdateSpan }: ProfilerProps): void;
componentDidUpdate({ updateProps, includeUpdates }: ProfilerProps): void;
componentWillUnmount(): void;

@@ -28,0 +28,0 @@ render(): React.ReactNode;

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

var _this = this;
var updateProps = _a.updateProps, _b = _a.hasUpdateSpan, hasUpdateSpan = _b === void 0 ? true : _b;
var updateProps = _a.updateProps, _b = _a.includeUpdates, includeUpdates = _b === void 0 ? true : _b;
// Only generate an update span if hasUpdateSpan is true, if there is a valid mountSpan,
// and if the updateProps have changed. It is ok to not do a deep equality check here as it is expensive.
// We are just trying to give baseline clues for further investigation.
if (hasUpdateSpan && this.mountSpan && updateProps !== this.props.updateProps) {
if (includeUpdates && this.mountSpan && updateProps !== this.props.updateProps) {
// See what props haved changed between the previous props, and the current props. This is

@@ -129,4 +129,4 @@ // set as data on the span. We just store the prop keys as the values could be potenially very large.

Profiler.prototype.componentWillUnmount = function () {
var _a = this.props, name = _a.name, _b = _a.hasRenderSpan, hasRenderSpan = _b === void 0 ? true : _b;
if (this.mountSpan && hasRenderSpan) {
var _a = this.props, name = _a.name, _b = _a.includeRender, includeRender = _b === void 0 ? true : _b;
if (this.mountSpan && includeRender) {
// If we were able to obtain the spanId of the mount activity, we should set the

@@ -147,4 +147,4 @@ // next activity as a child to the component mount activity.

disabled: false,
hasRenderSpan: true,
hasUpdateSpan: true,
includeRender: true,
includeUpdates: true,
};

@@ -151,0 +151,0 @@ return Profiler;

@@ -7,4 +7,4 @@ import { Span } from '@sentry/types';

disabled?: boolean;
hasRenderSpan?: boolean;
hasUpdateSpan?: boolean;
includeRender?: boolean;
includeUpdates?: boolean;
updateProps: {

@@ -25,3 +25,3 @@ [key: string]: any;

componentDidMount(): void;
componentDidUpdate({ updateProps, hasUpdateSpan }: ProfilerProps): void;
componentDidUpdate({ updateProps, includeUpdates }: ProfilerProps): void;
componentWillUnmount(): void;

@@ -28,0 +28,0 @@ render(): React.ReactNode;

@@ -99,7 +99,7 @@ import { __assign, __extends, __read } from "tslib";

var _this = this;
var updateProps = _a.updateProps, _b = _a.hasUpdateSpan, hasUpdateSpan = _b === void 0 ? true : _b;
var updateProps = _a.updateProps, _b = _a.includeUpdates, includeUpdates = _b === void 0 ? true : _b;
// Only generate an update span if hasUpdateSpan is true, if there is a valid mountSpan,
// and if the updateProps have changed. It is ok to not do a deep equality check here as it is expensive.
// We are just trying to give baseline clues for further investigation.
if (hasUpdateSpan && this.mountSpan && updateProps !== this.props.updateProps) {
if (includeUpdates && this.mountSpan && updateProps !== this.props.updateProps) {
// See what props haved changed between the previous props, and the current props. This is

@@ -127,4 +127,4 @@ // set as data on the span. We just store the prop keys as the values could be potenially very large.

Profiler.prototype.componentWillUnmount = function () {
var _a = this.props, name = _a.name, _b = _a.hasRenderSpan, hasRenderSpan = _b === void 0 ? true : _b;
if (this.mountSpan && hasRenderSpan) {
var _a = this.props, name = _a.name, _b = _a.includeRender, includeRender = _b === void 0 ? true : _b;
if (this.mountSpan && includeRender) {
// If we were able to obtain the spanId of the mount activity, we should set the

@@ -145,4 +145,4 @@ // next activity as a child to the component mount activity.

disabled: false,
hasRenderSpan: true,
hasUpdateSpan: true,
includeRender: true,
includeUpdates: true,
};

@@ -149,0 +149,0 @@ return Profiler;

{
"name": "@sentry/react",
"version": "5.18.0",
"version": "5.18.1",
"description": "Offical Sentry SDK for React.js",

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

"dependencies": {
"@sentry/browser": "5.18.0",
"@sentry/types": "5.18.0",
"@sentry/utils": "5.18.0",
"@sentry/browser": "5.18.1",
"@sentry/types": "5.18.1",
"@sentry/utils": "5.18.1",
"hoist-non-react-statics": "^3.3.2",

@@ -27,4 +27,4 @@ "tslib": "^1.9.3"

"peerDependencies": {
"react": "^16.0.0",
"react-dom": "^16.0.0"
"react": "15.x || 16.x",
"react-dom": "15.x || 16.x"
},

@@ -31,0 +31,0 @@ "devDependencies": {

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