import{analyzeSitemap as e}from"../analysis/analyzeSitemap.mjs";const t=async(t,n,r)=>{let i=await e(t,n);r({type:`sitemap_sitemapPresent`,status:i.sitemapPresent?`success`:`warning`,data:{successDetails:i.sitemapPresent?!0:void 0,warningsDetails:i.sitemapPresent?void 0:`No sitemap.xml found`,errorsDetails:i.errors.length>0?i.errors:void 0}}),i.sitemapPresent&&(r({type:`sitemap_noLocalizedUrlsForgotten`,status:i.noLocalizedUrlsForgotten?`success`:`warning`,data:{successDetails:i.noLocalizedUrlsForgotten?!0:void 0,warningsDetails:i.noLocalizedUrlsForgotten?void 0:i.errors}}),r({type:`sitemap_hasXDefault`,status:i.hasXDefault?`success`:`warning`,data:{successDetails:i.hasXDefault?!0:void 0,warningsDetails:i.hasXDefault?void 0:`No x-default hreflang in sitemap`}}),r({type:`sitemap_hasAlternates`,status:i.hasAlternates?`success`:`warning`,data:{successDetails:i.hasAlternates?!0:void 0,warningsDetails:i.hasAlternates?void 0:`No alternate language links found in sitemap`}}))};export{t as checkSitemap};
//# sourceMappingURL=sitemapChecker.mjs.map