From 75a9c43d94a9cfb605871fbc4b8ae6225a485e45 Mon Sep 17 00:00:00 2001 From: Sankaranandh Narendran Date: Fri, 3 Apr 2026 18:27:26 +0530 Subject: [PATCH] snyk fixes --- CODEOWNERS | 2 +- app/components/Footer.tsx | 9 +- app/components/Header.tsx | 25 +- app/components/Layout.tsx | 5 +- app/entry.server.tsx | 11 +- app/root.tsx | 75 +- app/routes/($locale)._index.tsx | 10 +- app/routes/($locale).about.tsx | 2 +- app/routes/($locale).collections._index.tsx | 4 +- app/routes/($locale).collections.all.tsx | 8 +- app/routes/($locale).products.$handle.tsx | 8 +- app/routes/_index.tsx | 14 +- app/styles/pages.css | 1 - env.d.ts | 65 +- hydrogen-load-context.ts | 257 + hydrogen.config.ts | 5 + package-lock.json | 6737 +++++++++---------- package.json | 27 +- react-dom-server-browser.d.ts | 3 + remix.config.js | 14 +- server.ts | 246 +- storefrontapi.generated.d.ts | 947 ++- vite.config.ts | 54 +- 23 files changed, 4368 insertions(+), 4161 deletions(-) create mode 100644 hydrogen-load-context.ts create mode 100644 hydrogen.config.ts create mode 100644 react-dom-server-browser.d.ts diff --git a/CODEOWNERS b/CODEOWNERS index fa51963..be17392 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,4 +1,4 @@ -* @contentstack/tso-integration-pr-reviewers +* @contentstack/marketplace-solutions-pr-reviewers .github/workflows/sca-scan.yml @contentstack/security-admin diff --git a/app/components/Footer.tsx b/app/components/Footer.tsx index ce0b474..18b0f00 100644 --- a/app/components/Footer.tsx +++ b/app/components/Footer.tsx @@ -79,9 +79,12 @@ const MenuSection = ({ export function Footer(fetchdata: any) { const footerMetaObject = fetchdata?.footerMetaObject; const footerData = footerMetaObject?.metaobjects?.nodes?.[0]?.fields; - const sortedFooterData = footerData.sort((a: any, b: any) => { - return MENU_ORDER.indexOf(a.key) - MENU_ORDER.indexOf(b.key); - }); + const sortedFooterData = Array.isArray(footerData) + ? [...footerData].sort( + (a: any, b: any) => + MENU_ORDER.indexOf(a.key) - MENU_ORDER.indexOf(b.key), + ) + : []; return (