From 7708ac5319778072ea4633a389c129b65d07b9d0 Mon Sep 17 00:00:00 2001 From: Pedro Bini Date: Thu, 23 Jul 2020 17:57:08 -0300 Subject: [PATCH] Update dependencies, use @sentry/minimal --- package/package.json | 9 +++----- .../sentryErrorLink/captureSentryException.ts | 4 ++-- package/yarn.lock | 23 +------------------ 3 files changed, 6 insertions(+), 30 deletions(-) diff --git a/package/package.json b/package/package.json index 38c0f29..3c0ef41 100644 --- a/package/package.json +++ b/package/package.json @@ -23,17 +23,14 @@ "prepublish": "yarn run build && yarn run copy_publish_files" }, "dependencies": { + "@sentry/minimal": "^5.20.0", + "apollo-link-error": "^1.1.13", "merge": "^1.2.1" }, - "peerDependencies": { - "@sentry/browser": "^5.20.0", - "apollo-link-error": "^1.1.13" - }, + "peerDependencies": {}, "devDependencies": { - "@sentry/browser": "^5.20.0", "@typescript-eslint/eslint-plugin": "^3.7.0", "@typescript-eslint/parser": "^3.7.0", - "apollo-link-error": "^1.1.13", "babel-core": "^6.26.3", "babel-runtime": "^6.26.0", "eslint": "^7.5.0", diff --git a/package/src/links/sentryErrorLink/captureSentryException.ts b/package/src/links/sentryErrorLink/captureSentryException.ts index 905fd75..eb6ad39 100644 --- a/package/src/links/sentryErrorLink/captureSentryException.ts +++ b/package/src/links/sentryErrorLink/captureSentryException.ts @@ -1,4 +1,4 @@ -import * as Sentry from '@sentry/browser'; +import * as Sentry from '@sentry/minimal'; import { captureSentryExceptionOptions } from '../../interfaces'; import getOperationData from './getOperationData'; @@ -16,7 +16,7 @@ const captureSentryException = ({ title, error, }: captureSentryExceptionOptions) => { - Sentry.withScope((scope: Sentry.Scope) => { + Sentry.withScope((scope) => { if (error?.operation) { const operationData = getOperationData({ includeVariables, diff --git a/package/yarn.lock b/package/yarn.lock index 3ed4be2..9ea5782 100644 --- a/package/yarn.lock +++ b/package/yarn.lock @@ -23,27 +23,6 @@ chalk "^2.0.0" js-tokens "^4.0.0" -"@sentry/browser@^5.20.0": - version "5.20.0" - resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-5.20.0.tgz#010ae9a09060ca1859dcc1dbfa186798db82ef7e" - integrity sha512-xVPL7/RuAPcemfSzXiyPHAt4M+0BfzkdTlN+PZb6frCEo4k6E0UiN6WLsGj/iwa2gXhyfTQXtbTuP+tDuNPEJw== - dependencies: - "@sentry/core" "5.20.0" - "@sentry/types" "5.20.0" - "@sentry/utils" "5.20.0" - tslib "^1.9.3" - -"@sentry/core@5.20.0": - version "5.20.0" - resolved "https://registry.yarnpkg.com/@sentry/core/-/core-5.20.0.tgz#4c6daad108af94cd0ec5a13fd20b2bfe61ccd586" - integrity sha512-fzzWKEolc0O6H/phdDenzKs7JXDSb0sooxVn0QCUkwWSzACALQh+NR/UciOXyhyuoUiqu4zthYQx02qtGqizeQ== - dependencies: - "@sentry/hub" "5.20.0" - "@sentry/minimal" "5.20.0" - "@sentry/types" "5.20.0" - "@sentry/utils" "5.20.0" - tslib "^1.9.3" - "@sentry/hub@5.20.0": version "5.20.0" resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-5.20.0.tgz#3c8ceb29debaea4184bca210cfa7fdd4aad639cb" @@ -53,7 +32,7 @@ "@sentry/utils" "5.20.0" tslib "^1.9.3" -"@sentry/minimal@5.20.0": +"@sentry/minimal@^5.20.0": version "5.20.0" resolved "https://registry.yarnpkg.com/@sentry/minimal/-/minimal-5.20.0.tgz#309ab4159b44ce3350698294e47da97903593dad" integrity sha512-oA+0g7p3bapzjgGKQIkSjcjA85VG1HPmjxBD9wpRvNjmYuVmm80Cl1H/P+xg/hupw/kNmASAX4IOd5Z9pEeboA==