From d288b2d5f5c5b8fd037d337bdf834dab78b2455e Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Thu, 19 May 2022 10:23:43 -0400 Subject: [PATCH] remove format-number.ts --- components/HitCounter/HitCounter.tsx | 6 +- components/RepositoryCard/RepositoryCard.tsx | 10 +- lib/helpers/format-number.ts | 11 - package.json | 10 +- yarn.lock | 252 ++++++++++--------- 5 files changed, 145 insertions(+), 144 deletions(-) delete mode 100644 lib/helpers/format-number.ts diff --git a/components/HitCounter/HitCounter.tsx b/components/HitCounter/HitCounter.tsx index cc323ba8..c0acccf9 100644 --- a/components/HitCounter/HitCounter.tsx +++ b/components/HitCounter/HitCounter.tsx @@ -1,7 +1,7 @@ import useSWR from "swr"; +import commaNumber from "comma-number"; import Loading from "../Loading"; import { fetcher } from "../../lib/helpers/fetcher"; -import { commafy } from "../../lib/helpers/format-number"; export type HitCounterProps = { slug: string; @@ -34,8 +34,8 @@ const HitCounter = ({ slug, className }: HitCounterProps) => { // we have data! return ( - - {commafy(data.hits)} + + {commaNumber(data.hits)} ); }; diff --git a/components/RepositoryCard/RepositoryCard.tsx b/components/RepositoryCard/RepositoryCard.tsx index dfda6da8..6750c335 100644 --- a/components/RepositoryCard/RepositoryCard.tsx +++ b/components/RepositoryCard/RepositoryCard.tsx @@ -1,7 +1,7 @@ +import commaNumber from "comma-number"; import Link from "../Link"; import RelativeTime from "../RelativeTime"; import { StarOcticon, ForkOcticon } from "../Icons"; -import { commafy } from "../../lib/helpers/format-number"; import { styled } from "../../lib/styles/stitches.config"; import type { Repository } from "../../types"; @@ -100,12 +100,12 @@ const RepositoryCard = ({ - {commafy(stars)} + {commaNumber(stars)} )} @@ -114,12 +114,12 @@ const RepositoryCard = ({ - {commafy(forks)} + {commaNumber(forks)} )} diff --git a/lib/helpers/format-number.ts b/lib/helpers/format-number.ts deleted file mode 100644 index a9335833..00000000 --- a/lib/helpers/format-number.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { siteLocale } from "../config"; - -// adds thousands separator -// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat -export const commafy = (number: number) => { - if (typeof Intl !== "undefined" && typeof Intl.NumberFormat !== "undefined") { - return new Intl.NumberFormat(siteLocale, { useGrouping: true }).format(number); - } else { - return number; - } -}; diff --git a/package.json b/package.json index 93b73c3e..039602b2 100644 --- a/package.json +++ b/package.json @@ -23,13 +23,14 @@ "@fontsource/roboto-mono": "4.5.7", "@giscus/react": "^2.0.4", "@hcaptcha/react-hcaptcha": "^1.3.0", - "@novnc/novnc": "github:novnc/noVNC#7730814b8d43d24db0894b641317be4b9f683da4", + "@novnc/novnc": "github:novnc/noVNC#cdfb33665195eb9a73fb00feb6ebaccd1068cd50", "@octokit/graphql": "^4.8.0", "@primer/octicons": "^17.2.0", "@react-spring/web": "^9.4.5", "@sentry/node": "^6.19.7", "@sentry/tracing": "^6.19.7", "@stitches/react": "^1.2.8", + "comma-number": "^2.1.0", "copy-to-clipboard": "^3.3.1", "dayjs": "^1.11.2", "fast-glob": "^3.2.11", @@ -42,7 +43,7 @@ "hex-to-rgba": "^2.0.1", "is-absolute-url": "^4.0.1", "markdown-to-jsx": "^7.1.7", - "next": "12.1.7-canary.7", + "next": "12.1.7-canary.8", "next-compose-plugins": "^2.2.1", "next-mdx-remote": "^4.0.3", "next-seo": "^5.4.0", @@ -78,8 +79,9 @@ }, "devDependencies": { "@jakejarvis/eslint-config": "*", - "@next/bundle-analyzer": "12.1.7-canary.7", + "@next/bundle-analyzer": "12.1.7-canary.8", "@svgr/webpack": "^6.2.1", + "@types/comma-number": "^2.1.0", "@types/dedent": "^0.7.0", "@types/node": "*", "@types/prop-types": "^15.7.5", @@ -93,7 +95,7 @@ "@typescript-eslint/parser": "^5.25.0", "cross-env": "^7.0.3", "eslint": "~8.15.0", - "eslint-config-next": "12.1.7-canary.7", + "eslint-config-next": "12.1.7-canary.8", "eslint-config-prettier": "~8.5.0", "eslint-plugin-mdx": "~1.17.0", "eslint-plugin-prettier": "~4.0.0", diff --git a/yarn.lock b/yarn.lock index ff16880a..f0344237 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1168,89 +1168,89 @@ resolved "https://registry.yarnpkg.com/@mdx-js/util/-/util-1.6.22.tgz#219dfd89ae5b97a8801f015323ffa4b62f45718b" integrity sha512-H1rQc1ZOHANWBvPcW+JpGwr+juXSxM8Q8YCkm3GhZd8REu1fHR3z99CErO1p9pkcfcxZnMdIZdIsXkOHY0NilA== -"@next/bundle-analyzer@12.1.7-canary.7": - version "12.1.7-canary.7" - resolved "https://registry.yarnpkg.com/@next/bundle-analyzer/-/bundle-analyzer-12.1.7-canary.7.tgz#57089a7eef3b61084a014b476b59145f067d018a" - integrity sha512-hR2W00QERMTy/e898ym7VaHPqxmp6sWzUEjU2or5ymHc36inpnMIOOGePWqiNR0jI/mUfkcwMyERyNtGx4mbsg== +"@next/bundle-analyzer@12.1.7-canary.8": + version "12.1.7-canary.8" + resolved "https://registry.yarnpkg.com/@next/bundle-analyzer/-/bundle-analyzer-12.1.7-canary.8.tgz#55400068d9967581edaca8cdcf10c5a611894c54" + integrity sha512-7QRJP+aaSQ8+4TlZvA+CSlfF2IHnQjRcWnMYzKfoz69CXHm3ew8rRaXoTTDAXZmDXxZ4h9gzJpg4OXKBbr5PSg== dependencies: webpack-bundle-analyzer "4.3.0" -"@next/env@12.1.7-canary.7": - version "12.1.7-canary.7" - resolved "https://registry.yarnpkg.com/@next/env/-/env-12.1.7-canary.7.tgz#bb7c634e112e33d415e74eb5ad0eb489c6ebe980" - integrity sha512-qwINALOQ0hEFwx7btv43JEEgiFI5GNajt0ibUfJgTFLrLCp8QdgZp2BMLqKWnjd5+c2c2ki5Agw3Kc5KSH9AZQ== +"@next/env@12.1.7-canary.8": + version "12.1.7-canary.8" + resolved "https://registry.yarnpkg.com/@next/env/-/env-12.1.7-canary.8.tgz#db48895b0be7c3ce14186dfd320f34bf50d87448" + integrity sha512-tDslSQsypLRX/OGssNM5iVNo1W1Xdz6fRlmP5jfxYPX8FiZiYOtcEqNToCBclAtgpgnptaVEuv3GraRE9V2dHQ== -"@next/eslint-plugin-next@12.1.7-canary.7": - version "12.1.7-canary.7" - resolved "https://registry.yarnpkg.com/@next/eslint-plugin-next/-/eslint-plugin-next-12.1.7-canary.7.tgz#748d8cd5d1e10731ccba369f4d6f0dbcf3c14e1d" - integrity sha512-9hmUSa2wDIZDDB8wXAzJNMH6X9F1Zdm4fp6a9J5DaF3MJFFdS7t1jNfRwGDYIseEFn0zpViym0xlnOMDmISKKw== +"@next/eslint-plugin-next@12.1.7-canary.8": + version "12.1.7-canary.8" + resolved "https://registry.yarnpkg.com/@next/eslint-plugin-next/-/eslint-plugin-next-12.1.7-canary.8.tgz#4c879709fa08b76344d0fd93a64440e372c520f4" + integrity sha512-Ud+2Bm+F6SUEBZmtImhK5+lw/o8DyWYa1ai0sqBBsCv5iv2xdEwhxCWT80Lu3HCDRDItbVnyYOnM2q4FfwxOIA== dependencies: glob "7.1.7" -"@next/swc-android-arm-eabi@12.1.7-canary.7": - version "12.1.7-canary.7" - resolved "https://registry.yarnpkg.com/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-12.1.7-canary.7.tgz#b8c0560c2da05fcd2fb1c39f13b894b8d6f313eb" - integrity sha512-IP/Chru1JMaGz+8iPP/qj1TWbcaCbMH7ytkIGnKaUeDfUS0WerTlu6Z+oOsG2rX34B/DdyG/UWADChVFEVXqvA== +"@next/swc-android-arm-eabi@12.1.7-canary.8": + version "12.1.7-canary.8" + resolved "https://registry.yarnpkg.com/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-12.1.7-canary.8.tgz#b37dcc5a82bb669c65453865e52f94e18a61e7d8" + integrity sha512-MeKu22MHKXSB7C8vqF5JXyJyNN4x9Z92B0M5Lp/X59LxlcoFskLeQE5JzKDE1h0CQs09oaUBh6d3d19QuppjXg== -"@next/swc-android-arm64@12.1.7-canary.7": - version "12.1.7-canary.7" - resolved "https://registry.yarnpkg.com/@next/swc-android-arm64/-/swc-android-arm64-12.1.7-canary.7.tgz#2f0c4c663fe494b16f01ddc3506517486cf710fb" - integrity sha512-xoYMgufr6V5VL/bYU4Vhly9FnCUhN1yUsabBPNia3LYqr2S98fr5UchH4V0GEDTDNJq2WZ0XMvjjX8ZnV4rFNg== +"@next/swc-android-arm64@12.1.7-canary.8": + version "12.1.7-canary.8" + resolved "https://registry.yarnpkg.com/@next/swc-android-arm64/-/swc-android-arm64-12.1.7-canary.8.tgz#741d30a5a47ad0bd73573e2b13c46721e1990016" + integrity sha512-r1ks4gkQMKStMdW00yznPMbX11ZW3tyN99CCAMWxMNyHADppNpf+ClCBxusm9rdFGNM6CozpA2HgPdFYcGfzQA== -"@next/swc-darwin-arm64@12.1.7-canary.7": - version "12.1.7-canary.7" - resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-12.1.7-canary.7.tgz#c61e7f063f73ec43f335ac1ba321953a4010145f" - integrity sha512-EbAiS9+3liDd1CkvZwi4cs+257mOgEl+eabi9C/7l3cQ85TwJ7hTFeHVbuWYPHkATtKvp4Kc3WeTrvlDhUz8rg== +"@next/swc-darwin-arm64@12.1.7-canary.8": + version "12.1.7-canary.8" + resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-12.1.7-canary.8.tgz#d3c69e97be4d6b9d5bf4e0264db57b03550ec3a7" + integrity sha512-IBMW/HOH6OUj91kn8/6FjkcGu5SRnfNll9D/bF2Zbv6suz10kDLDTJo3bcyfg/VGca1HufKTiLiqJXPVif96AQ== -"@next/swc-darwin-x64@12.1.7-canary.7": - version "12.1.7-canary.7" - resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-12.1.7-canary.7.tgz#da420baab62cf4362a2a38465b2e0572e5439326" - integrity sha512-bpdZTTtfTAX7FZ4x6zsm2xom72vg9ytMIurgzLBDy38ytAf1uu6Xcv24g98jbTHkx+tdDq1DfQbEogyU3YFUPw== +"@next/swc-darwin-x64@12.1.7-canary.8": + version "12.1.7-canary.8" + resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-12.1.7-canary.8.tgz#157374afbcdc0f19c9abe41c775780ad87ceba2c" + integrity sha512-H4gn0XB4NfdMaOvbKXMePSyjKRt1JmPJeyHzX4M5vdhVqdyhWP131BTcuKtbiCNWfkpbE1vowdaIS8JSDESo9A== -"@next/swc-freebsd-x64@12.1.7-canary.7": - version "12.1.7-canary.7" - resolved "https://registry.yarnpkg.com/@next/swc-freebsd-x64/-/swc-freebsd-x64-12.1.7-canary.7.tgz#c46abd0234be784f6264ed266a1b7b51e63f4dbf" - integrity sha512-/qM4Bt/RNyYrhJZjfmrYT314xoHAliOKegwWxpEDiWOy9/z6Dv8LxGOUuVpfN1aNYqUL6k6sZsiUltjFvTou+Q== +"@next/swc-freebsd-x64@12.1.7-canary.8": + version "12.1.7-canary.8" + resolved "https://registry.yarnpkg.com/@next/swc-freebsd-x64/-/swc-freebsd-x64-12.1.7-canary.8.tgz#ca3ec25bfd8a6c8ecd3e368fc7381c41c2579f56" + integrity sha512-xDDPv8xZvzfVaojXjo1LQsc6fFuUasEcMMWY3WDSv5EY21kCe312xTnzpQJetyWYc6B6brPNiUtweToh6ZhhSA== -"@next/swc-linux-arm-gnueabihf@12.1.7-canary.7": - version "12.1.7-canary.7" - resolved "https://registry.yarnpkg.com/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-12.1.7-canary.7.tgz#fb539001cc420615c1384ee3a3dcc09d64ffa8d0" - integrity sha512-jLn9ufVlDZ39NuEbuWFsCdTuvR74XjexZzy/1BnQLb1ZbcwVLr7vTHUPnTRw2G7T0s9qLosRic5tsBStqxB+/Q== +"@next/swc-linux-arm-gnueabihf@12.1.7-canary.8": + version "12.1.7-canary.8" + resolved "https://registry.yarnpkg.com/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-12.1.7-canary.8.tgz#c1ed6c55ef4513a9d82d20156b3374c2cedd3619" + integrity sha512-Y+ov082pnaqml/XSvdZhwJSheOZDrvLegw9WN8U/+/S9ofxVxY6AQ5mbiW9WHdjJS1sPyx3N3lwr+WoGvwicGg== -"@next/swc-linux-arm64-gnu@12.1.7-canary.7": - version "12.1.7-canary.7" - resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-12.1.7-canary.7.tgz#176b85959731b932ca6333251c10df469c6fc9d6" - integrity sha512-4SkfKaj8JsWRiRokg6SZkw4InirJbmxK4ZncVqxoSjSRI0FiO1nYikl29/lrvTECFq09JOME6gkQDCLeIH9Gow== +"@next/swc-linux-arm64-gnu@12.1.7-canary.8": + version "12.1.7-canary.8" + resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-12.1.7-canary.8.tgz#ab360688e408087138d31f55ac006e0fe2589e8c" + integrity sha512-Qr8mM53NBjbbvyHVPYm70rDe1ybyHesret3YSdtz+poiatGtB0K+mvkm4RXUN+p8WIuwlpPIYPZaxkI16nWodg== -"@next/swc-linux-arm64-musl@12.1.7-canary.7": - version "12.1.7-canary.7" - resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-12.1.7-canary.7.tgz#686aa37ff1e010476bf36886b6a464718a0e21f0" - integrity sha512-acqcGAk18kZM9KwB05V/3STK/RlZMzNs1Jrxmh/1uCfMKelasiip2vhemp4NIxbaafu4JOGtC5Q/kS6xoWw6aQ== +"@next/swc-linux-arm64-musl@12.1.7-canary.8": + version "12.1.7-canary.8" + resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-12.1.7-canary.8.tgz#ca5cd19fea778db4e7e4fec292269a88dff77c83" + integrity sha512-cVAyWzvFKgkO5vsgKmgeECnfMY+S2CkCLn27Rwr/ydeSZfnL6m1uZdiXeweZJ9SsuTP8x6LSy0AolYGDbyS2QA== -"@next/swc-linux-x64-gnu@12.1.7-canary.7": - version "12.1.7-canary.7" - resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-12.1.7-canary.7.tgz#5b5d585d8eb9bb7e2d39105af31d64559544d7ef" - integrity sha512-4YJv+LVrmkjQ+PE8o5cC4LOQvf7WSUqWEUrQ46lj35baTp1mwJhhc0u5cm8rII4tnAWwBIqxf7AoMU6HfGHcjw== +"@next/swc-linux-x64-gnu@12.1.7-canary.8": + version "12.1.7-canary.8" + resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-12.1.7-canary.8.tgz#9e7726eb807c5c869a0482188aa888974192746a" + integrity sha512-XkDRtAZJoZ35+XcFINBn0WKFa19mSu/o6JBoyjxf+uFmeHHaiHhIOsImmoDCH/E51RSnP0XUvoC8mHnJ400GxA== -"@next/swc-linux-x64-musl@12.1.7-canary.7": - version "12.1.7-canary.7" - resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-12.1.7-canary.7.tgz#7f901579f068c9addf81fe9bd76b6c1880ad01b2" - integrity sha512-eTSjEFzi4GYNh72QZo+CuH0FyD1kYc7VdCM7OCmTJVoWlhNz223PvEr7z8xj8ixFZgV9pN6xlCQkth5ZVqkrXA== +"@next/swc-linux-x64-musl@12.1.7-canary.8": + version "12.1.7-canary.8" + resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-12.1.7-canary.8.tgz#61e639847a205d9161d92b8c1fe82b0e78b8412d" + integrity sha512-5IQzV1mKhJgSHBUu/+6XaK0xciW/regXLfguIb9+eheiqR/rV3synHm1CKzrt7Q3JoBbkgCezsJ4+zLIQnrABA== -"@next/swc-win32-arm64-msvc@12.1.7-canary.7": - version "12.1.7-canary.7" - resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-12.1.7-canary.7.tgz#01e685a767a9d027c5a61c4fc87a4c85e1308709" - integrity sha512-X4P5QVWXw6dYom2S5ogWfrGTBTMms/3WOvGFVd4cerT9hlf9Z13FCbl1HlzQ9JNfKyAu7htWVuaZ2i7f9XRKug== +"@next/swc-win32-arm64-msvc@12.1.7-canary.8": + version "12.1.7-canary.8" + resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-12.1.7-canary.8.tgz#2e30e05d1fa23f08cacc652e834978270d5c58b1" + integrity sha512-5hNzz8BXlsR4czPt48G87WFZKsa1rZz6V2fzZjx5XGr7hrBrWmwcYa2JfpyKwq5OXfmVwHvy6XdFLO8b13/RHA== -"@next/swc-win32-ia32-msvc@12.1.7-canary.7": - version "12.1.7-canary.7" - resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-12.1.7-canary.7.tgz#b9ccedd4e7bcc1d955627ed0dbc3f0b00c9060ca" - integrity sha512-Ri0oCAa27v1Wzk6fWtn7sDmo3Pm/skuNwLbD602bwPkLAcASOI+l6WOiFBDGxakN7lIZtTrlJBWJp8tB0YwF9g== +"@next/swc-win32-ia32-msvc@12.1.7-canary.8": + version "12.1.7-canary.8" + resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-12.1.7-canary.8.tgz#4105f6da23bb500d24733c300f05833e990ca715" + integrity sha512-n6wXAfdq7QSIXptRo2aJfozp+83OVBqP2brnMf2A/lQuTD6DuPiwAWlBjA/eWQ2x4xSp0XGSEtLWD1nDZ568JA== -"@next/swc-win32-x64-msvc@12.1.7-canary.7": - version "12.1.7-canary.7" - resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.1.7-canary.7.tgz#a6e36ec99e083bdc6ab2a1fa03623f254fc78a02" - integrity sha512-AUbgfTqiMKO9XBsrEIUZqvmjdNqiQYXUKF19uDMY7KpGiAuV7Cn6P6BIBSHe01XGSuDP0K3ddhnz7oPX4ncckA== +"@next/swc-win32-x64-msvc@12.1.7-canary.8": + version "12.1.7-canary.8" + resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.1.7-canary.8.tgz#ed65621a6f8b233ff18c65cfd87a27707b0acad3" + integrity sha512-KidDYJKV8k3GZl57JLrRLXGtqmILxUJjVoTGDX9+hUgALCbYDe2mrwTG4q5ddyDFu+K7rSdGSBziNa52bTQFbA== "@nodelib/fs.scandir@2.1.5": version "2.1.5" @@ -1273,9 +1273,9 @@ "@nodelib/fs.scandir" "2.1.5" fastq "^1.6.0" -"@novnc/novnc@github:novnc/noVNC#7730814b8d43d24db0894b641317be4b9f683da4": +"@novnc/novnc@github:novnc/noVNC#cdfb33665195eb9a73fb00feb6ebaccd1068cd50": version "1.3.0" - resolved "https://codeload.github.com/novnc/noVNC/tar.gz/7730814b8d43d24db0894b641317be4b9f683da4" + resolved "https://codeload.github.com/novnc/noVNC/tar.gz/cdfb33665195eb9a73fb00feb6ebaccd1068cd50" "@octokit/endpoint@^6.0.1": version "6.0.12" @@ -1579,6 +1579,11 @@ dependencies: "@types/estree" "*" +"@types/comma-number@^2.1.0": + version "2.1.0" + resolved "https://registry.yarnpkg.com/@types/comma-number/-/comma-number-2.1.0.tgz#a372062b88325a52c06bd5b2a89b4858bd46ad1f" + integrity sha512-9MoSSdmOOkzhGY4HKeA6Fc59Pvs4k5lryZZK6PrH8PgKQDwDjy/TCP5wuCHD9rTmKpOJlm85KuTlXGSiI1khdg== + "@types/debug@^4.0.0": version "4.1.7" resolved "https://registry.yarnpkg.com/@types/debug/-/debug-4.1.7.tgz#7cc0ea761509124709b8b2d1090d8f6c17aadb82" @@ -1665,9 +1670,9 @@ "@types/unist" "*" "@types/node@*", "@types/node@^17.0.5": - version "17.0.34" - resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.34.tgz#3b0b6a50ff797280b8d000c6281d229f9c538cef" - integrity sha512-XImEz7XwTvDBtzlTnm8YvMqGW/ErMWBsKZ+hMTvnDIjGCKxwK5Xpc+c/oQjOauwq8M4OS11hEkpjX8rrI/eEgA== + version "17.0.35" + resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.35.tgz#635b7586086d51fb40de0a2ec9d1014a5283ba4a" + integrity sha512-vu1SrqBjbbZ3J6vwY17jBs8Sr/BKA+/a/WtjRG+whKg1iuLFOosq872EXS0eXWILdO36DHQQeku/ZcL6hz2fpg== "@types/parse-json@^4.0.0": version "4.0.0" @@ -1959,7 +1964,7 @@ aria-query@^4.2.2: "@babel/runtime" "^7.10.2" "@babel/runtime-corejs3" "^7.10.2" -array-includes@^3.1.4: +array-includes@^3.1.4, array-includes@^3.1.5: version "3.1.5" resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.5.tgz#2c320010db8d31031fd2a5f6b3bbd4b1aad31bdb" integrity sha512-iSDYZMMyTPkiFasVqfuAQnWAYcvO/SeBSCGKePoEthjp4LEMTe4uLc7b025o4jAZpHhihh8xPo99TNWUWWkGDQ== @@ -1990,7 +1995,7 @@ array.prototype.flat@^1.2.5: es-abstract "^1.19.2" es-shim-unscopables "^1.0.0" -array.prototype.flatmap@^1.2.5: +array.prototype.flatmap@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.3.0.tgz#a7e8ed4225f4788a70cd910abcf0791e76a5534f" integrity sha512-PZC9/8TKAIxcWKdyeb77EzULHPrIX/tIZebLJUQOMR1OwYosT8yggdfWScfTBCDj5utONvOuPQQumYsU2ULbkg== @@ -2295,6 +2300,11 @@ colorette@^2.0.16: resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.16.tgz#713b9af84fdb000139f04546bd4a93f62a5085da" integrity sha512-hUewv7oMjCp+wkBv5Rm0v87eJhq4woh5rSR+42YSQJKecCqgIqNkZ6lAlQms/BwHPJA5NKMRlpxPRv0n8HQW6g== +comma-number@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/comma-number/-/comma-number-2.1.0.tgz#0f38eef7293fe5ba4a0de6d1ffd3ea70a5e3e288" + integrity sha512-fRcu1c+4yFLFp3tgranEkKPPWRlnkWQXr4p0KBL0WW9Kd2wmbKAoQ2R4rluFm4ubXCtXGybEaFB7r6YgPOnahQ== + comma-separated-tokens@^2.0.0: version "2.0.2" resolved "https://registry.yarnpkg.com/comma-separated-tokens/-/comma-separated-tokens-2.0.2.tgz#d4c25abb679b7751c880be623c1179780fe1dd98" @@ -2699,12 +2709,12 @@ escape-string-regexp@^4.0.0: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== -eslint-config-next@12.1.7-canary.7: - version "12.1.7-canary.7" - resolved "https://registry.yarnpkg.com/eslint-config-next/-/eslint-config-next-12.1.7-canary.7.tgz#86e0263410365ea98de1355e966c4d2450abc1e5" - integrity sha512-Y+4G3CEYDY0NbxdHMBQqtthF36Ukgjjw9dvAzZHHiikhZ0cnH6eyDJc6VR2tDJXqJ2+58sYjpqZNkh1GJ7OsZA== +eslint-config-next@12.1.7-canary.8: + version "12.1.7-canary.8" + resolved "https://registry.yarnpkg.com/eslint-config-next/-/eslint-config-next-12.1.7-canary.8.tgz#ea0be8e5e8a533c93b4f04910019631bd163ada0" + integrity sha512-L4ui2b7Ee/t/FykTiavFoBQZR7gwpfpO2gHfphq/gGwfA/jtYLbfF4ABrtPYPhlEosr/EX/rRgQFT+4unsVkyg== dependencies: - "@next/eslint-plugin-next" "12.1.7-canary.7" + "@next/eslint-plugin-next" "12.1.7-canary.8" "@rushstack/eslint-patch" "^1.1.3" "@typescript-eslint/parser" "^5.21.0" eslint-import-resolver-node "^0.3.6" @@ -2826,24 +2836,24 @@ eslint-plugin-react-hooks@^4.5.0: integrity sha512-8k1gRt7D7h03kd+SAAlzXkQwWK22BnK6GKZG+FJA6BAGy22CFvl8kCIXKpVux0cCxMWDQUPqSok0LKaZ0aOcCw== eslint-plugin-react@^7.29.4: - version "7.29.4" - resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.29.4.tgz#4717de5227f55f3801a5fd51a16a4fa22b5914d2" - integrity sha512-CVCXajliVh509PcZYRFyu/BoUEz452+jtQJq2b3Bae4v3xBUWPLCmtmBM+ZinG4MzwmxJgJ2M5rMqhqLVn7MtQ== + version "7.30.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.30.0.tgz#8e7b1b2934b8426ac067a0febade1b13bd7064e3" + integrity sha512-RgwH7hjW48BleKsYyHK5vUAvxtE9SMPDKmcPRQgtRCYaZA0XQPt5FSkrU3nhz5ifzMZcA8opwmRJ2cmOO8tr5A== dependencies: - array-includes "^3.1.4" - array.prototype.flatmap "^1.2.5" + array-includes "^3.1.5" + array.prototype.flatmap "^1.3.0" doctrine "^2.1.0" estraverse "^5.3.0" jsx-ast-utils "^2.4.1 || ^3.0.0" minimatch "^3.1.2" object.entries "^1.1.5" object.fromentries "^2.0.5" - object.hasown "^1.1.0" + object.hasown "^1.1.1" object.values "^1.1.5" prop-types "^15.8.1" resolve "^2.0.0-next.3" semver "^6.3.0" - string.prototype.matchall "^4.0.6" + string.prototype.matchall "^4.0.7" eslint-scope@^5.1.1: version "5.1.1" @@ -2965,9 +2975,9 @@ estree-util-attach-comments@^2.0.0: "@types/estree" "^0.0.46" estree-util-build-jsx@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/estree-util-build-jsx/-/estree-util-build-jsx-2.0.0.tgz#4903e2a923ebc791f86e78ec3687d01715dec902" - integrity sha512-d49hPGqBCJF/bF06g1Ywg7zjH1mrrUdPPrixBlKBxcX4WvMYlUUJ8BkrwlzWc8/fm6XqGgk5jilhgeZBDEGwOQ== + version "2.1.0" + resolved "https://registry.yarnpkg.com/estree-util-build-jsx/-/estree-util-build-jsx-2.1.0.tgz#629aa81fbb1b16ed628c7a9334d37bc8a2a3726f" + integrity sha512-gsBGfsY6LOJUIDwmMkTOcgCX+3r/LUjRBccgHMSW55PHjhZsV13RmPl/iwpAvW8KcQqoN9P0FEFWTSS2Zc5bGA== dependencies: "@types/estree-jsx" "^0.0.1" estree-util-is-identifier-name "^2.0.0" @@ -3931,16 +3941,16 @@ lit-element@^3.2.0: lit-html "^2.2.0" lit-html@^2.2.0: - version "2.2.3" - resolved "https://registry.yarnpkg.com/lit-html/-/lit-html-2.2.3.tgz#dcb2744d0f0c1800b2eb2de37bc42384434a74f7" - integrity sha512-vI4j3eWwtQaR8q/O63juZVliBIFMio716X719/lSsGH4UWPy2/7Qf377jsNs4cx3gCHgIbx8yxFgXFQ/igZyXQ== + version "2.2.4" + resolved "https://registry.yarnpkg.com/lit-html/-/lit-html-2.2.4.tgz#95edc7f060743a798303b8e48e331c32ddbeb179" + integrity sha512-IPY0V0z/QWcTduxb6DlP46Un8n6tG+mHSAijGcPozfXTjVkvFLN4/irPzthtq/eC8RU+7CUqh6h4KB7tnRPJfg== dependencies: "@types/trusted-types" "^2.0.2" lit@^2.2.3: - version "2.2.3" - resolved "https://registry.yarnpkg.com/lit/-/lit-2.2.3.tgz#77203d8f247de7c0d4955817f89e40c927349b9c" - integrity sha512-5/v+r9dH3Pw/o0rhp/qYk3ERvOUclNF31bWb0FiW6MPgwdQIr+/KCt/p3zcd8aPl8lIGnxdGrVcZA+gWS6oFOQ== + version "2.2.4" + resolved "https://registry.yarnpkg.com/lit/-/lit-2.2.4.tgz#4907d071a427620b83653e39a1664dbdacbfb982" + integrity sha512-O7t+uizo1/Br0y+5RaWRzPkd4MsoL4XY2eq7n2wrESyCCjeagq4ERZKsyKX40jbmsz4bAAs7/0qNRX11TuXzoA== dependencies: "@lit/reactive-element" "^1.3.0" lit-element "^3.2.0" @@ -4062,13 +4072,13 @@ mdast-util-definitions@^5.0.0: unist-util-visit "^3.0.0" mdast-util-find-and-replace@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/mdast-util-find-and-replace/-/mdast-util-find-and-replace-2.1.0.tgz#69728acd250749f8aac6e150e07d1fd15619e829" - integrity sha512-1w1jbqAd13oU78QPBf5223+xB+37ecNtQ1JElq2feWols5oEYAl+SgNDnOZipe7NfLemoEt362yUS15/wip4mw== + version "2.2.0" + resolved "https://registry.yarnpkg.com/mdast-util-find-and-replace/-/mdast-util-find-and-replace-2.2.0.tgz#6167edf16c2fd79e7213024544575f304151953f" + integrity sha512-bz8hUWkMX7UcasORORcyBEsTKJ+dBiFwRPrm43hHC9NMRylIMLbfO5rwfeCN+UtY4AAi7s8WqXftb9eX6ZsqCg== dependencies: escape-string-regexp "^5.0.0" unist-util-is "^5.0.0" - unist-util-visit-parents "^4.0.0" + unist-util-visit-parents "^5.0.0" mdast-util-from-markdown@^0.8.5: version "0.8.5" @@ -4704,7 +4714,7 @@ nano-css@^5.3.1: stacktrace-js "^2.0.2" stylis "^4.0.6" -nanoid@^3.1.30, nanoid@^3.3.3: +nanoid@^3.1.30, nanoid@^3.3.4: version "3.3.4" resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab" integrity sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw== @@ -4742,30 +4752,30 @@ next-transpile-modules@^9.0.0: enhanced-resolve "^5.7.0" escalade "^3.1.1" -next@12.1.7-canary.7: - version "12.1.7-canary.7" - resolved "https://registry.yarnpkg.com/next/-/next-12.1.7-canary.7.tgz#89cc23b630858860c7603c89860eaac601121af4" - integrity sha512-0pYGqzoVbjsJJfSlxmmr2LwqFQtgQY0uR+mNwrtBAZMI1bDUVCYzQVJDFnj3PANAgjckWwwwn5oAo8MfkzYOVg== +next@12.1.7-canary.8: + version "12.1.7-canary.8" + resolved "https://registry.yarnpkg.com/next/-/next-12.1.7-canary.8.tgz#96a1a30adcf2575940c736cfc078179c30813190" + integrity sha512-pgMqXnfip/UaBIL4OgneCDK3lZiKo9VXcEBVSmVlBZbmFgfG6caDlOKKBvueaFov3T3r8KuLCR8iDi+oFuFv0A== dependencies: - "@next/env" "12.1.7-canary.7" + "@next/env" "12.1.7-canary.8" caniuse-lite "^1.0.30001332" postcss "8.4.5" styled-jsx "5.0.2" use-sync-external-store "1.1.0" optionalDependencies: - "@next/swc-android-arm-eabi" "12.1.7-canary.7" - "@next/swc-android-arm64" "12.1.7-canary.7" - "@next/swc-darwin-arm64" "12.1.7-canary.7" - "@next/swc-darwin-x64" "12.1.7-canary.7" - "@next/swc-freebsd-x64" "12.1.7-canary.7" - "@next/swc-linux-arm-gnueabihf" "12.1.7-canary.7" - "@next/swc-linux-arm64-gnu" "12.1.7-canary.7" - "@next/swc-linux-arm64-musl" "12.1.7-canary.7" - "@next/swc-linux-x64-gnu" "12.1.7-canary.7" - "@next/swc-linux-x64-musl" "12.1.7-canary.7" - "@next/swc-win32-arm64-msvc" "12.1.7-canary.7" - "@next/swc-win32-ia32-msvc" "12.1.7-canary.7" - "@next/swc-win32-x64-msvc" "12.1.7-canary.7" + "@next/swc-android-arm-eabi" "12.1.7-canary.8" + "@next/swc-android-arm64" "12.1.7-canary.8" + "@next/swc-darwin-arm64" "12.1.7-canary.8" + "@next/swc-darwin-x64" "12.1.7-canary.8" + "@next/swc-freebsd-x64" "12.1.7-canary.8" + "@next/swc-linux-arm-gnueabihf" "12.1.7-canary.8" + "@next/swc-linux-arm64-gnu" "12.1.7-canary.8" + "@next/swc-linux-arm64-musl" "12.1.7-canary.8" + "@next/swc-linux-x64-gnu" "12.1.7-canary.8" + "@next/swc-linux-x64-musl" "12.1.7-canary.8" + "@next/swc-win32-arm64-msvc" "12.1.7-canary.8" + "@next/swc-win32-ia32-msvc" "12.1.7-canary.8" + "@next/swc-win32-x64-msvc" "12.1.7-canary.8" nlcst-to-string@^2.0.0: version "2.0.4" @@ -4872,7 +4882,7 @@ object.fromentries@^2.0.5: define-properties "^1.1.3" es-abstract "^1.19.1" -object.hasown@^1.1.0: +object.hasown@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/object.hasown/-/object.hasown-1.1.1.tgz#ad1eecc60d03f49460600430d97f23882cf592a3" integrity sha512-LYLe4tivNQzq4JdaWW6WO3HMZZJWzkkH8fnI6EebWl0VZth2wL2Lovm74ep2/gZzlaTdV62JZHEqHQ2yVn8Q/A== @@ -5086,11 +5096,11 @@ postcss@8.4.5: source-map-js "^1.0.1" postcss@^8.3.11: - version "8.4.13" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.13.tgz#7c87bc268e79f7f86524235821dfdf9f73e5d575" - integrity sha512-jtL6eTBrza5MPzy8oJLFuUscHDXTV5KcLlqAWHl5q5WYRfnNRGSmOZmOZ1T6Gy7A99mOZfqungmZMpMmCVJ8ZA== + version "8.4.14" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.14.tgz#ee9274d5622b4858c1007a74d76e42e56fd21caf" + integrity sha512-E398TUmfAYFPBSdzgeieK2Y1+1cpdxJx8yXbK/m57nRhKSmk1GB2tO4lbLBtlkfPQTDKfe4Xqv1ASWPpayPEig== dependencies: - nanoid "^3.3.3" + nanoid "^3.3.4" picocolors "^1.0.0" source-map-js "^1.0.2" @@ -5879,7 +5889,7 @@ string-width@^5.0.0: emoji-regex "^9.2.2" strip-ansi "^7.0.1" -string.prototype.matchall@^4.0.6: +string.prototype.matchall@^4.0.7: version "4.0.7" resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.7.tgz#8e6ecb0d8a1fb1fda470d81acecb2dba057a481d" integrity sha512-f48okCX7JiwVi1NXCVWcFnZgADDC/n2vePlQ/KUCNqCikLLilQvwjMO8+BHVKvgzH0JB0J9LEPgxOGT02RoETg==