build(deps): bump @sentry/browser from 6.19.4 to 7.0.0 in /web (#3008)
This commit is contained in:
parent
0cac034512
commit
5a81ae956f
|
@ -30,8 +30,8 @@
|
|||
"@rollup/plugin-node-resolve": "^13.3.0",
|
||||
"@rollup/plugin-replace": "^4.0.0",
|
||||
"@rollup/plugin-typescript": "^8.3.2",
|
||||
"@sentry/browser": "^6.19.4",
|
||||
"@sentry/tracing": "^6.19.4",
|
||||
"@sentry/browser": "^7.0.0",
|
||||
"@sentry/tracing": "^7.0.0",
|
||||
"@squoosh/cli": "^0.7.2",
|
||||
"@trivago/prettier-plugin-sort-imports": "^3.2.0",
|
||||
"@types/chart.js": "^2.9.37",
|
||||
|
@ -2492,17 +2492,17 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@sentry/browser": {
|
||||
"version": "6.19.4",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-6.19.4.tgz",
|
||||
"integrity": "sha512-gyOotZMyTwJsR6m/XnNafgSDBK2aRgGwi/kUWW3/eqp2s6D51H5UZBZGK7+Z6bYi9ozIO3b+8/Bq+KqXwfvbdw==",
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-7.0.0.tgz",
|
||||
"integrity": "sha512-XJeQA/CIocrmShpfVcccJ2RvZbWZy+OustSbgLP5Vk+ZnzbqKQo1zQ92jO/dUoVIsl5dWpUaOKfT6gXmORf4vQ==",
|
||||
"dependencies": {
|
||||
"@sentry/core": "6.19.4",
|
||||
"@sentry/types": "6.19.4",
|
||||
"@sentry/utils": "6.19.4",
|
||||
"@sentry/core": "7.0.0",
|
||||
"@sentry/types": "7.0.0",
|
||||
"@sentry/utils": "7.0.0",
|
||||
"tslib": "^1.9.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/@sentry/browser/node_modules/tslib": {
|
||||
|
@ -2511,18 +2511,17 @@
|
|||
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="
|
||||
},
|
||||
"node_modules/@sentry/core": {
|
||||
"version": "6.19.4",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/core/-/core-6.19.4.tgz",
|
||||
"integrity": "sha512-LIUVqLyt9Ugj6xyQE9itrCmhFs1iQ2FOgVkmpsXu+UVwFY4xccT5k/0PAHa7sik5CeH6x7p8oRCrYgrwbktraQ==",
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/core/-/core-7.0.0.tgz",
|
||||
"integrity": "sha512-Wl7MjmahLhuzzByYiWaYTeHKQfF6usnMp+rTTYTBbneuM4MD7TikRt6ybgnxqyqR7nI7ADH/U8OljtiqwnsOcw==",
|
||||
"dependencies": {
|
||||
"@sentry/hub": "6.19.4",
|
||||
"@sentry/minimal": "6.19.4",
|
||||
"@sentry/types": "6.19.4",
|
||||
"@sentry/utils": "6.19.4",
|
||||
"@sentry/hub": "7.0.0",
|
||||
"@sentry/types": "7.0.0",
|
||||
"@sentry/utils": "7.0.0",
|
||||
"tslib": "^1.9.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/@sentry/core/node_modules/tslib": {
|
||||
|
@ -2531,16 +2530,16 @@
|
|||
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="
|
||||
},
|
||||
"node_modules/@sentry/hub": {
|
||||
"version": "6.19.4",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/hub/-/hub-6.19.4.tgz",
|
||||
"integrity": "sha512-Lc9ZpKk9f8DBFvl7hm4wYvcuuobAee3X+M1eCMQPzYuk4k0mHThPv/d3GJW6Jo1IBxMbM+x3ONuf9myeJ/4H6g==",
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/hub/-/hub-7.0.0.tgz",
|
||||
"integrity": "sha512-my4s+SPZiL6BKOK89YNk74QFRejlwVKKSetzz+Wr1cxDLbGXOIHS3uRJlagqOpfthhD1dq8m3WBQnabPf5JlHQ==",
|
||||
"dependencies": {
|
||||
"@sentry/types": "6.19.4",
|
||||
"@sentry/utils": "6.19.4",
|
||||
"@sentry/types": "7.0.0",
|
||||
"@sentry/utils": "7.0.0",
|
||||
"tslib": "^1.9.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/@sentry/hub/node_modules/tslib": {
|
||||
|
@ -2548,37 +2547,18 @@
|
|||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
|
||||
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="
|
||||
},
|
||||
"node_modules/@sentry/minimal": {
|
||||
"version": "6.19.4",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/minimal/-/minimal-6.19.4.tgz",
|
||||
"integrity": "sha512-23Xwt5XoSEfswTWUJRofqtDU30bz+wzv5VLQlUsA65CD8kEDoajVFco9wnIxbauhb3xaU7+jhbyNHWO75mHnTQ==",
|
||||
"dependencies": {
|
||||
"@sentry/hub": "6.19.4",
|
||||
"@sentry/types": "6.19.4",
|
||||
"tslib": "^1.9.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/@sentry/minimal/node_modules/tslib": {
|
||||
"version": "1.14.1",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
|
||||
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="
|
||||
},
|
||||
"node_modules/@sentry/tracing": {
|
||||
"version": "6.19.4",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/tracing/-/tracing-6.19.4.tgz",
|
||||
"integrity": "sha512-ngkjX+BgoIPQaydLW+SWh2hAQgCGQZuimd5Hkwkt8GFfckZSTZtYw5X5nFk4U2L06FU8F4BmgnbyxXt5k7IziA==",
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/tracing/-/tracing-7.0.0.tgz",
|
||||
"integrity": "sha512-eUHER2RWzm9OtFKQZIr5EwTGM3IU0xJ7l60rnAEbgW5b1bzWC0k/J6EeXeBBfGq7wric/BjH0WKQOnixtXUBpw==",
|
||||
"dependencies": {
|
||||
"@sentry/hub": "6.19.4",
|
||||
"@sentry/minimal": "6.19.4",
|
||||
"@sentry/types": "6.19.4",
|
||||
"@sentry/utils": "6.19.4",
|
||||
"@sentry/hub": "7.0.0",
|
||||
"@sentry/types": "7.0.0",
|
||||
"@sentry/utils": "7.0.0",
|
||||
"tslib": "^1.9.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/@sentry/tracing/node_modules/tslib": {
|
||||
|
@ -2587,23 +2567,23 @@
|
|||
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="
|
||||
},
|
||||
"node_modules/@sentry/types": {
|
||||
"version": "6.19.4",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/types/-/types-6.19.4.tgz",
|
||||
"integrity": "sha512-fzLiQPrjJQ8HgFgA2VqnpLiEOrTJ2ItRY8RY7Cn4038HACoYWYDjrkdVJQBq6IyrxxkgWOSLZXnv85uozBQC+g==",
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/types/-/types-7.0.0.tgz",
|
||||
"integrity": "sha512-im6iugKKyeOwHWiS3u+S+Ox4F6aJQ2fe76rzTDTlzdCPol4xEqYnB2kujGVVnDYrODR+qVb24ua3OsxXxwzppA==",
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/@sentry/utils": {
|
||||
"version": "6.19.4",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-6.19.4.tgz",
|
||||
"integrity": "sha512-f73K3NCX22KT8CVgIiRaaozIReSX5+LhY7Q4C429DZlfVAgOYw0a+kTFrHTNKGLR4II8M8ECjUsL/6O/BdPSFg==",
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-7.0.0.tgz",
|
||||
"integrity": "sha512-wmZNwzl1F/xCvaGX0TLz0+M+mZP8kn5woF770o2eUgXGURIuNsnSd0Vfi0nHuBJfngVeI/3+ofOJ9MH4Co4lIw==",
|
||||
"dependencies": {
|
||||
"@sentry/types": "6.19.4",
|
||||
"@sentry/types": "7.0.0",
|
||||
"tslib": "^1.9.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/@sentry/utils/node_modules/tslib": {
|
||||
|
@ -10691,13 +10671,13 @@
|
|||
}
|
||||
},
|
||||
"@sentry/browser": {
|
||||
"version": "6.19.4",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-6.19.4.tgz",
|
||||
"integrity": "sha512-gyOotZMyTwJsR6m/XnNafgSDBK2aRgGwi/kUWW3/eqp2s6D51H5UZBZGK7+Z6bYi9ozIO3b+8/Bq+KqXwfvbdw==",
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-7.0.0.tgz",
|
||||
"integrity": "sha512-XJeQA/CIocrmShpfVcccJ2RvZbWZy+OustSbgLP5Vk+ZnzbqKQo1zQ92jO/dUoVIsl5dWpUaOKfT6gXmORf4vQ==",
|
||||
"requires": {
|
||||
"@sentry/core": "6.19.4",
|
||||
"@sentry/types": "6.19.4",
|
||||
"@sentry/utils": "6.19.4",
|
||||
"@sentry/core": "7.0.0",
|
||||
"@sentry/types": "7.0.0",
|
||||
"@sentry/utils": "7.0.0",
|
||||
"tslib": "^1.9.3"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -10709,14 +10689,13 @@
|
|||
}
|
||||
},
|
||||
"@sentry/core": {
|
||||
"version": "6.19.4",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/core/-/core-6.19.4.tgz",
|
||||
"integrity": "sha512-LIUVqLyt9Ugj6xyQE9itrCmhFs1iQ2FOgVkmpsXu+UVwFY4xccT5k/0PAHa7sik5CeH6x7p8oRCrYgrwbktraQ==",
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/core/-/core-7.0.0.tgz",
|
||||
"integrity": "sha512-Wl7MjmahLhuzzByYiWaYTeHKQfF6usnMp+rTTYTBbneuM4MD7TikRt6ybgnxqyqR7nI7ADH/U8OljtiqwnsOcw==",
|
||||
"requires": {
|
||||
"@sentry/hub": "6.19.4",
|
||||
"@sentry/minimal": "6.19.4",
|
||||
"@sentry/types": "6.19.4",
|
||||
"@sentry/utils": "6.19.4",
|
||||
"@sentry/hub": "7.0.0",
|
||||
"@sentry/types": "7.0.0",
|
||||
"@sentry/utils": "7.0.0",
|
||||
"tslib": "^1.9.3"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -10728,29 +10707,12 @@
|
|||
}
|
||||
},
|
||||
"@sentry/hub": {
|
||||
"version": "6.19.4",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/hub/-/hub-6.19.4.tgz",
|
||||
"integrity": "sha512-Lc9ZpKk9f8DBFvl7hm4wYvcuuobAee3X+M1eCMQPzYuk4k0mHThPv/d3GJW6Jo1IBxMbM+x3ONuf9myeJ/4H6g==",
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/hub/-/hub-7.0.0.tgz",
|
||||
"integrity": "sha512-my4s+SPZiL6BKOK89YNk74QFRejlwVKKSetzz+Wr1cxDLbGXOIHS3uRJlagqOpfthhD1dq8m3WBQnabPf5JlHQ==",
|
||||
"requires": {
|
||||
"@sentry/types": "6.19.4",
|
||||
"@sentry/utils": "6.19.4",
|
||||
"tslib": "^1.9.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"tslib": {
|
||||
"version": "1.14.1",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
|
||||
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="
|
||||
}
|
||||
}
|
||||
},
|
||||
"@sentry/minimal": {
|
||||
"version": "6.19.4",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/minimal/-/minimal-6.19.4.tgz",
|
||||
"integrity": "sha512-23Xwt5XoSEfswTWUJRofqtDU30bz+wzv5VLQlUsA65CD8kEDoajVFco9wnIxbauhb3xaU7+jhbyNHWO75mHnTQ==",
|
||||
"requires": {
|
||||
"@sentry/hub": "6.19.4",
|
||||
"@sentry/types": "6.19.4",
|
||||
"@sentry/types": "7.0.0",
|
||||
"@sentry/utils": "7.0.0",
|
||||
"tslib": "^1.9.3"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -10762,14 +10724,13 @@
|
|||
}
|
||||
},
|
||||
"@sentry/tracing": {
|
||||
"version": "6.19.4",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/tracing/-/tracing-6.19.4.tgz",
|
||||
"integrity": "sha512-ngkjX+BgoIPQaydLW+SWh2hAQgCGQZuimd5Hkwkt8GFfckZSTZtYw5X5nFk4U2L06FU8F4BmgnbyxXt5k7IziA==",
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/tracing/-/tracing-7.0.0.tgz",
|
||||
"integrity": "sha512-eUHER2RWzm9OtFKQZIr5EwTGM3IU0xJ7l60rnAEbgW5b1bzWC0k/J6EeXeBBfGq7wric/BjH0WKQOnixtXUBpw==",
|
||||
"requires": {
|
||||
"@sentry/hub": "6.19.4",
|
||||
"@sentry/minimal": "6.19.4",
|
||||
"@sentry/types": "6.19.4",
|
||||
"@sentry/utils": "6.19.4",
|
||||
"@sentry/hub": "7.0.0",
|
||||
"@sentry/types": "7.0.0",
|
||||
"@sentry/utils": "7.0.0",
|
||||
"tslib": "^1.9.3"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -10781,16 +10742,16 @@
|
|||
}
|
||||
},
|
||||
"@sentry/types": {
|
||||
"version": "6.19.4",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/types/-/types-6.19.4.tgz",
|
||||
"integrity": "sha512-fzLiQPrjJQ8HgFgA2VqnpLiEOrTJ2ItRY8RY7Cn4038HACoYWYDjrkdVJQBq6IyrxxkgWOSLZXnv85uozBQC+g=="
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/types/-/types-7.0.0.tgz",
|
||||
"integrity": "sha512-im6iugKKyeOwHWiS3u+S+Ox4F6aJQ2fe76rzTDTlzdCPol4xEqYnB2kujGVVnDYrODR+qVb24ua3OsxXxwzppA=="
|
||||
},
|
||||
"@sentry/utils": {
|
||||
"version": "6.19.4",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-6.19.4.tgz",
|
||||
"integrity": "sha512-f73K3NCX22KT8CVgIiRaaozIReSX5+LhY7Q4C429DZlfVAgOYw0a+kTFrHTNKGLR4II8M8ECjUsL/6O/BdPSFg==",
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-7.0.0.tgz",
|
||||
"integrity": "sha512-wmZNwzl1F/xCvaGX0TLz0+M+mZP8kn5woF770o2eUgXGURIuNsnSd0Vfi0nHuBJfngVeI/3+ofOJ9MH4Co4lIw==",
|
||||
"requires": {
|
||||
"@sentry/types": "6.19.4",
|
||||
"@sentry/types": "7.0.0",
|
||||
"tslib": "^1.9.3"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
@ -73,8 +73,8 @@
|
|||
"@rollup/plugin-node-resolve": "^13.3.0",
|
||||
"@rollup/plugin-replace": "^4.0.0",
|
||||
"@rollup/plugin-typescript": "^8.3.2",
|
||||
"@sentry/browser": "^6.19.4",
|
||||
"@sentry/tracing": "^6.19.4",
|
||||
"@sentry/browser": "^7.0.0",
|
||||
"@sentry/tracing": "^7.0.0",
|
||||
"@squoosh/cli": "^0.7.2",
|
||||
"@trivago/prettier-plugin-sort-imports": "^3.2.0",
|
||||
"@types/chart.js": "^2.9.37",
|
||||
|
|
|
@ -86,7 +86,9 @@ export const defaultOptions = {
|
|||
"process.env.AK_API_BASE_PATH": JSON.stringify(apiBasePath),
|
||||
"preventAssignment": true,
|
||||
}),
|
||||
sourcemaps(),
|
||||
sourcemaps({
|
||||
exclude: [/@sentry/],
|
||||
}),
|
||||
isProdBuild && terser(),
|
||||
].filter((p) => p),
|
||||
watch: {
|
||||
|
|
|
@ -3,7 +3,6 @@ import { getCookie } from "../utils";
|
|||
import { APIMiddleware } from "../elements/notifications/APIDrawer";
|
||||
import { MessageMiddleware } from "../elements/messages/Middleware";
|
||||
import { VERSION } from "../constants";
|
||||
import { getMetaContent } from "@sentry/tracing/dist/browser/browsertracing";
|
||||
|
||||
export class LoggingMiddleware implements Middleware {
|
||||
|
||||
|
@ -58,10 +57,16 @@ export class CSRFMiddleware implements Middleware {
|
|||
}
|
||||
}
|
||||
|
||||
export function getMetaContent(key: string): string {
|
||||
const metaEl = document.querySelector<HTMLMetaElement>(`meta[name=${key}]`);
|
||||
if (!metaEl) return "";
|
||||
return metaEl.content;
|
||||
}
|
||||
|
||||
export const DEFAULT_CONFIG = new Configuration({
|
||||
basePath: process.env.AK_API_BASE_PATH + "/api/v3",
|
||||
headers: {
|
||||
"sentry-trace": getMetaContent("sentry-trace") || "",
|
||||
"sentry-trace": getMetaContent("sentry-trace"),
|
||||
},
|
||||
middleware: [
|
||||
new CSRFMiddleware(),
|
||||
|
|
|
@ -9,7 +9,7 @@ import { Config } from "@goauthentik/api";
|
|||
export const TAG_SENTRY_COMPONENT = "authentik.component";
|
||||
export const TAG_SENTRY_CAPABILITIES = "authentik.capabilities";
|
||||
|
||||
export function configureSentry(canDoPpi: boolean = false): Promise<Config> {
|
||||
export function configureSentry(canDoPpi = false): Promise<Config> {
|
||||
return config().then((config) => {
|
||||
if (config.errorReporting.enabled) {
|
||||
Sentry.init({
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue