From c4783529cacc0799b823c2140b54f89e9692ab78 Mon Sep 17 00:00:00 2001 From: arvion-agent Date: Sun, 2 Feb 2025 14:22:02 +0100 Subject: [PATCH] [Arvion] Security fix: upgrade package to new version --- graph-tutorial/package.json | 2 +- graph-tutorial/src/reportWebVitals.ts | 4 ++-- graph-tutorial/yarn.lock | 26 ++++++++++++-------------- 3 files changed, 15 insertions(+), 17 deletions(-) diff --git a/graph-tutorial/package.json b/graph-tutorial/package.json index fc641ab..9582951 100644 --- a/graph-tutorial/package.json +++ b/graph-tutorial/package.json @@ -15,7 +15,7 @@ "react-dom": "^18.3.1", "react-router-dom": "^6.26.1", "react-scripts": "5.0.1", - "web-vitals": "^3.5.2", + "web-vitals": "4.2.4", "windows-iana": "^5.1.0" }, "scripts": { diff --git a/graph-tutorial/src/reportWebVitals.ts b/graph-tutorial/src/reportWebVitals.ts index 49a2a16..ae4c739 100644 --- a/graph-tutorial/src/reportWebVitals.ts +++ b/graph-tutorial/src/reportWebVitals.ts @@ -1,6 +1,6 @@ -import { ReportHandler } from 'web-vitals'; +import { Metric } from 'web-vitals'; -const reportWebVitals = (onPerfEntry?: ReportHandler) => { +const reportWebVitals = (onPerfEntry?: Metric) => { if (onPerfEntry && onPerfEntry instanceof Function) { import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { getCLS(onPerfEntry); diff --git a/graph-tutorial/yarn.lock b/graph-tutorial/yarn.lock index 4b4fd11..cea1038 100644 --- a/graph-tutorial/yarn.lock +++ b/graph-tutorial/yarn.lock @@ -3814,17 +3814,15 @@ data-urls@^2.0.0: whatwg-mimetype "^2.3.0" whatwg-url "^8.0.0" -date-fns-tz@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/date-fns-tz/-/date-fns-tz-2.0.1.tgz#0a9b2099031c0d74120b45de9fd23192e48ea495" - integrity sha512-fJCG3Pwx8HUoLhkepdsP7Z5RsucUi+ZBOxyM5d0ZZ6c4SdYustq0VMmOu6Wf7bli+yS/Jwp91TOCqn9jMcVrUA== +date-fns-tz@3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/date-fns-tz/-/date-fns-tz-3.2.0.tgz#647dc56d38ac33a3e37b65e9d5c4cda5af5e58e6" + integrity sha512-sg8HqoTEulcbbbVXeg84u5UnlsQa8GS5QXMqjjYIhS4abEVVKIUwe0/l/UhrZdKaL/W5eWZNlbTeEIiOXTcsBQ== -date-fns@^2.29.2: - version "2.30.0" - resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.30.0.tgz#f367e644839ff57894ec6ac480de40cae4b0f4d0" - integrity sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw== - dependencies: - "@babel/runtime" "^7.21.0" +date-fns@4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-4.1.0.tgz#64b3d83fff5aa80438f5b1a633c2e83b8a1c2d14" + integrity sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg== debug@2.6.9, debug@^2.6.0: version "2.6.9" @@ -9650,10 +9648,10 @@ wbuf@^1.1.0, wbuf@^1.7.3: dependencies: minimalistic-assert "^1.0.0" -web-vitals@^3.5.2: - version "3.5.2" - resolved "https://registry.yarnpkg.com/web-vitals/-/web-vitals-3.5.2.tgz#5bb58461bbc173c3f00c2ddff8bfe6e680999ca9" - integrity sha512-c0rhqNcHXRkY/ogGDJQxZ9Im9D19hDihbzSQJrsioex+KnFgmMzBiy57Z1EjkhX/+OjyBpclDCzz2ITtjokFmg== +web-vitals@4.2.4: + version "4.2.4" + resolved "https://registry.yarnpkg.com/web-vitals/-/web-vitals-4.2.4.tgz#1d20bc8590a37769bd0902b289550936069184b7" + integrity sha512-r4DIlprAGwJ7YM11VZp4R884m0Vmgr6EAKe3P+kO0PPj3Unqyvv59rczf6UiGcb9Z8QxZVcqKNwv/g0WNdWwsw== webidl-conversions@^4.0.2: version "4.0.2"