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