From fc7098250c276c88532e5da9b35400b7a0157cdc Mon Sep 17 00:00:00 2001 From: Fernando Souza Date: Wed, 15 Jul 2020 21:46:05 +0200 Subject: [PATCH] Introduces Sentry --- package-lock.json | 82 +++++++++++++++++++++++++++++++++++++++++++++-- package.json | 1 + src/index.js | 3 ++ 3 files changed, 84 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 849c587..1be9ea5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2802,6 +2802,85 @@ "integrity": "sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw==", "dev": true }, + "@sentry/browser": { + "version": "5.19.2", + "resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-5.19.2.tgz", + "integrity": "sha512-o6Z532n+0N5ANDzgR9GN+Q6CU7zVlIJvBEW234rBiB+ZZj6XwTLS1dD+JexGr8lCo8PeXI2rypKcj1jUGLVW8w==", + "requires": { + "@sentry/core": "5.19.2", + "@sentry/types": "5.19.2", + "@sentry/utils": "5.19.2", + "tslib": "^1.9.3" + } + }, + "@sentry/core": { + "version": "5.19.2", + "resolved": "https://registry.npmjs.org/@sentry/core/-/core-5.19.2.tgz", + "integrity": "sha512-sfbBsVXpA0WYJUichz5IhvqKD8xJUfQvsszrTsUKa7PQAMAboOmuh6bo8KquaVQnAZyZWZU08UduvlSV3tA7tw==", + "requires": { + "@sentry/hub": "5.19.2", + "@sentry/minimal": "5.19.2", + "@sentry/types": "5.19.2", + "@sentry/utils": "5.19.2", + "tslib": "^1.9.3" + } + }, + "@sentry/hub": { + "version": "5.19.2", + "resolved": "https://registry.npmjs.org/@sentry/hub/-/hub-5.19.2.tgz", + "integrity": "sha512-2KkEYX4q9TDCOiaVEo2kQ1W0IXyZxJxZtIjDdFQyes9T4ubYlKHAbvCjTxHSQv37lDO4t7sOIApWG9rlkHzlEA==", + "requires": { + "@sentry/types": "5.19.2", + "@sentry/utils": "5.19.2", + "tslib": "^1.9.3" + } + }, + "@sentry/minimal": { + "version": "5.19.2", + "resolved": "https://registry.npmjs.org/@sentry/minimal/-/minimal-5.19.2.tgz", + "integrity": "sha512-rApEOkjy+ZmkeqEItgFvUFxe5l+dht9AumuUzq74pWp+HJqxxv9IVTusKppBsE1adjtmyhwK4O3Wr8qyc75xlw==", + "requires": { + "@sentry/hub": "5.19.2", + "@sentry/types": "5.19.2", + "tslib": "^1.9.3" + } + }, + "@sentry/react": { + "version": "5.19.2", + "resolved": "https://registry.npmjs.org/@sentry/react/-/react-5.19.2.tgz", + "integrity": "sha512-xFislfdEf/UsoiLRjYpCPKzTNg/tyvBuqLWV1+RrcPns3rA+HCiwRpti3qHyfBqGBLA7gi5ickR8sErpU08PXQ==", + "requires": { + "@sentry/browser": "5.19.2", + "@sentry/types": "5.19.2", + "@sentry/utils": "5.19.2", + "hoist-non-react-statics": "^3.3.2", + "tslib": "^1.9.3" + }, + "dependencies": { + "hoist-non-react-statics": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", + "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", + "requires": { + "react-is": "^16.7.0" + } + } + } + }, + "@sentry/types": { + "version": "5.19.2", + "resolved": "https://registry.npmjs.org/@sentry/types/-/types-5.19.2.tgz", + "integrity": "sha512-O6zkW8oM1qK5Uma9+B/UMlmlm9/gkw9MooqycWuEhIaKfDBj/yVbwb/UTiJmNkGc5VJQo0v1uXUZZQt6/Xq1GA==" + }, + "@sentry/utils": { + "version": "5.19.2", + "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-5.19.2.tgz", + "integrity": "sha512-gEPkC0CJwvIWqcTcPSdIzqJkJa9N5vZzUZyBvdu1oiyJu7MfazpJEvj3whfJMysSfXJQxoJ+a1IPrA73VY23VA==", + "requires": { + "@sentry/types": "5.19.2", + "tslib": "^1.9.3" + } + }, "@svgr/babel-plugin-add-jsx-attribute": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-4.2.0.tgz", @@ -17180,8 +17259,7 @@ "tslib": { "version": "1.11.2", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.11.2.tgz", - "integrity": "sha512-tTSkux6IGPnUGUd1XAZHcpu85MOkIl5zX49pO+jfsie3eP0B6pyhOlLXm3cAC6T7s+euSDDUUV+Acop5WmtkVg==", - "dev": true + "integrity": "sha512-tTSkux6IGPnUGUd1XAZHcpu85MOkIl5zX49pO+jfsie3eP0B6pyhOlLXm3cAC6T7s+euSDDUUV+Acop5WmtkVg==" }, "tsutils": { "version": "3.17.1", diff --git a/package.json b/package.json index 6ae873c..1f347f3 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ ], "bugs": "https://github.com/fernandosouza/react-tic-tac-toe/issues", "dependencies": { + "@sentry/react": "^5.19.2", "@testing-library/react": "10.0.4", "@types/enzyme": "3.10.5", "@types/enzyme-adapter-react-16": "1.0.6", diff --git a/src/index.js b/src/index.js index 4ffc85e..65391bf 100644 --- a/src/index.js +++ b/src/index.js @@ -1,7 +1,10 @@ import React from 'react'; import ReactDOM from 'react-dom'; +import * as Sentry from '@sentry/react'; import Routes from './routes/Routes'; +Sentry.init({dsn: "https://87727ed0238f4c228d9d492b99e40796@o420884.ingest.sentry.io/5339851"}); + ReactDOM.render( , document.getElementById('root')