mirror of
https://github.com/Lissy93/awesome-privacy.git
synced 2026-03-11 08:55:33 +00:00
Resolve sitemap issue in web prevenintg build
Some checks failed
📚 Inserts Awesome Privacy into README / build (push) Has been cancelled
Some checks failed
📚 Inserts Awesome Privacy into README / build (push) Has been cancelled
This commit is contained in:
parent
122bb0fc43
commit
930bc76031
3 changed files with 16 additions and 12 deletions
|
|
@ -20,7 +20,7 @@
|
|||
"@astrojs/check": "^0.9.6",
|
||||
"@astrojs/netlify": "^5.5.4",
|
||||
"@astrojs/partytown": "^2.1.4",
|
||||
"@astrojs/sitemap": "^3.7.0",
|
||||
"@astrojs/sitemap": "3.5.1",
|
||||
"@astrojs/svelte": "^5.7.3",
|
||||
"@astrojs/vercel": "^7.8.2",
|
||||
"@fortawesome/fontawesome-pro": "^6.5.1",
|
||||
|
|
|
|||
|
|
@ -82,9 +82,13 @@ const fetchFromWorker = async (github: string): Promise<GitHubStatsResponse | nu
|
|||
return res.json();
|
||||
};
|
||||
|
||||
const normalizeRepo = (github: string): string =>
|
||||
github.replace(/^https?:\/\/github\.com\//, '');
|
||||
|
||||
export const fetchGitHubStats = async (
|
||||
github: string,
|
||||
): Promise<GitHubStatsResponse | null> => {
|
||||
github = normalizeRepo(github);
|
||||
try {
|
||||
const result = await fetchFromGitHub(github);
|
||||
if (result) return result;
|
||||
|
|
|
|||
|
|
@ -134,14 +134,14 @@
|
|||
dependencies:
|
||||
prismjs "^1.29.0"
|
||||
|
||||
"@astrojs/sitemap@^3.7.0":
|
||||
version "3.7.0"
|
||||
resolved "https://registry.yarnpkg.com/@astrojs/sitemap/-/sitemap-3.7.0.tgz#26ffe9b2f51e2720e5e96f358ecc20f4d87f7218"
|
||||
integrity sha512-+qxjUrz6Jcgh+D5VE1gKUJTA3pSthuPHe6Ao5JCxok794Lewx8hBFaWHtOnN0ntb2lfOf7gvOi9TefUswQ/ZVA==
|
||||
"@astrojs/sitemap@3.5.1":
|
||||
version "3.5.1"
|
||||
resolved "https://registry.yarnpkg.com/@astrojs/sitemap/-/sitemap-3.5.1.tgz#70dac9eee4fdfd9da9e1809e107d6747652332fc"
|
||||
integrity sha512-uX5z52GLtQTgOe8r3jeGmFRYrFe52mdpLYJzqjvL1cdy5Kg3MLOZEvaZ/OCH0fSq0t7e50uJQ6oBMZG0ffszBg==
|
||||
dependencies:
|
||||
sitemap "^8.0.2"
|
||||
sitemap "^8.0.0"
|
||||
stream-replace-string "^2.0.0"
|
||||
zod "^3.25.76"
|
||||
zod "^3.24.4"
|
||||
|
||||
"@astrojs/svelte@^5.7.3":
|
||||
version "5.7.3"
|
||||
|
|
@ -4707,10 +4707,10 @@ sisteransi@^1.0.5:
|
|||
resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed"
|
||||
integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==
|
||||
|
||||
sitemap@^8.0.2:
|
||||
version "8.0.2"
|
||||
resolved "https://registry.yarnpkg.com/sitemap/-/sitemap-8.0.2.tgz#27bddb5fc2c61a1cf8f0194674cd89d762c9f5ae"
|
||||
integrity sha512-LwktpJcyZDoa0IL6KT++lQ53pbSrx2c9ge41/SeLTyqy2XUNA6uR4+P9u5IVo5lPeL2arAcOKn1aZAxoYbCKlQ==
|
||||
sitemap@^8.0.0:
|
||||
version "8.0.3"
|
||||
resolved "https://registry.yarnpkg.com/sitemap/-/sitemap-8.0.3.tgz#f85782422c527b3e149d3da9ea96ab02cab1f301"
|
||||
integrity sha512-9Ew1tR2WYw8RGE2XLy7GjkusvYXy8Rg6y8TYuBuQMfIEdGcWoJpY2Wr5DzsEiL/TKCw56+YKTCCUHglorEYK+A==
|
||||
dependencies:
|
||||
"@types/node" "^17.0.5"
|
||||
"@types/sax" "^1.2.1"
|
||||
|
|
@ -5658,7 +5658,7 @@ zod@3.22.3:
|
|||
resolved "https://registry.yarnpkg.com/zod/-/zod-3.22.3.tgz#2fbc96118b174290d94e8896371c95629e87a060"
|
||||
integrity sha512-EjIevzuJRiRPbVH4mGc8nApb/lVLKVpmUhAaR5R5doKGfAnGJ6Gr3CViAVjP+4FWSxCsybeWQdcgCtbX+7oZug==
|
||||
|
||||
zod@^3.23.8, zod@^3.25.76:
|
||||
zod@^3.23.8, zod@^3.24.4:
|
||||
version "3.25.76"
|
||||
resolved "https://registry.yarnpkg.com/zod/-/zod-3.25.76.tgz#26841c3f6fd22a6a2760e7ccb719179768471e34"
|
||||
integrity sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==
|
||||
|
|
|
|||
Loading…
Reference in a new issue