[MM-64501] Upgrade to web-vitals v5.0.3 (#31404)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0376bc7cc1
Коммит
476b46d1d7
@@ -94,7 +94,7 @@
|
||||
"timezones.json": "1.7.1",
|
||||
"tinycolor2": "1.6.0",
|
||||
"turndown": "7.2.0",
|
||||
"web-vitals": "4.2.4",
|
||||
"web-vitals": "5.0.3",
|
||||
"zen-observable": "0.10.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -247,7 +247,7 @@ export default class PerformanceReporter {
|
||||
let labels: Record<string, string> | undefined;
|
||||
|
||||
if (isLCPMetric(metric)) {
|
||||
const selector = metric.attribution?.element;
|
||||
const selector = metric.attribution?.target;
|
||||
const element = selector ? document.querySelector(selector) : null;
|
||||
|
||||
if (element) {
|
||||
|
||||
12
webapp/package-lock.json
сгенерированный
12
webapp/package-lock.json
сгенерированный
@@ -148,7 +148,7 @@
|
||||
"timezones.json": "1.7.1",
|
||||
"tinycolor2": "1.6.0",
|
||||
"turndown": "7.2.0",
|
||||
"web-vitals": "4.2.4",
|
||||
"web-vitals": "5.0.3",
|
||||
"zen-observable": "0.10.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
@@ -629,6 +629,11 @@
|
||||
"react-is": ">= 16.8.0"
|
||||
}
|
||||
},
|
||||
"channels/node_modules/web-vitals": {
|
||||
"version": "5.0.3",
|
||||
"resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-5.0.3.tgz",
|
||||
"integrity": "sha512-4KmOFYxj7qT6RAdCH0SWwq8eKeXNhAFXR4PmgF6nrWFmrJ41n7lq3UCA6UK0GebQ4uu+XP8e8zGjaDO3wZlqTg=="
|
||||
},
|
||||
"channels/node_modules/yargs": {
|
||||
"version": "17.7.2",
|
||||
"resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
|
||||
@@ -27364,11 +27369,6 @@
|
||||
"minimalistic-assert": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/web-vitals": {
|
||||
"version": "4.2.4",
|
||||
"resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-4.2.4.tgz",
|
||||
"integrity": "sha512-r4DIlprAGwJ7YM11VZp4R884m0Vmgr6EAKe3P+kO0PPj3Unqyvv59rczf6UiGcb9Z8QxZVcqKNwv/g0WNdWwsw=="
|
||||
},
|
||||
"node_modules/webidl-conversions": {
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz",
|
||||
|
||||
Ссылка в новой задаче
Block a user