Skip to content

Commit 5f158a7

Browse files
authored
Merge pull request #190 from arvion-agent/feature/arvion-upgrade-588
[Arvion] Security fix: upgrade package to new version
2 parents d479b72 + 1336319 commit 5f158a7

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"react-router-dom": "^6.28.0",
1919
"react-scripts": "5.0.1",
2020
"typescript": "^5.7.3",
21-
"web-vitals": "^2.1.0"
21+
"web-vitals": "4.2.4"
2222
},
2323
"scripts": {
2424
"start": "react-scripts start",

src/reportWebVitals.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { ReportHandler } from 'web-vitals';
1+
import { Metric } from 'web-vitals';
22

3-
const reportWebVitals = (onPerfEntry?: ReportHandler) => {
3+
const reportWebVitals = (onPerfEntry?: Metric) => {
44
if (onPerfEntry && onPerfEntry instanceof Function) {
55
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
66
getCLS(onPerfEntry);

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9495,10 +9495,10 @@ wbuf@^1.1.0, wbuf@^1.7.3:
94959495
dependencies:
94969496
minimalistic-assert "^1.0.0"
94979497

9498-
web-vitals@^2.1.0:
9499-
version "2.1.4"
9500-
resolved "https://registry.yarnpkg.com/web-vitals/-/web-vitals-2.1.4.tgz#76563175a475a5e835264d373704f9dde718290c"
9501-
integrity sha512-sVWcwhU5mX6crfI5Vd2dC4qchyTqxV8URinzt25XqVh+bHEPGH4C3NPrNionCP7Obx59wrYEbNlw4Z8sjALzZg==
9498+
web-vitals@4.2.4:
9499+
version "4.2.4"
9500+
resolved "https://registry.yarnpkg.com/web-vitals/-/web-vitals-4.2.4.tgz#1d20bc8590a37769bd0902b289550936069184b7"
9501+
integrity sha512-r4DIlprAGwJ7YM11VZp4R884m0Vmgr6EAKe3P+kO0PPj3Unqyvv59rczf6UiGcb9Z8QxZVcqKNwv/g0WNdWwsw==
95029502

95039503
webidl-conversions@^4.0.2:
95049504
version "4.0.2"

0 commit comments

Comments
 (0)