aeorank 3.0.1 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  extractAllUrlsFromSitemap,
4
4
  extractInternalLinks,
5
5
  inferCategory
6
- } from "./chunk-OCLAIHX6.js";
6
+ } from "./chunk-RYV25AUV.js";
7
7
 
8
8
  // src/parked-domain.ts
9
9
  var PARKING_PATHS = ["/lander", "/parking", "/park", "/sedoparking"];
@@ -4440,8 +4440,8 @@ function extractLinksWithAnchors(html, sourceUrl, domain) {
4440
4440
  if (href.startsWith("//")) {
4441
4441
  fullUrl = `https:${href}`;
4442
4442
  } else if (href.startsWith("/")) {
4443
- if (href === "/" || href.startsWith("/#")) continue;
4444
- fullUrl = `https://${domain}${href}`;
4443
+ if (href.startsWith("/#")) continue;
4444
+ fullUrl = href === "/" ? `https://${domain}` : `https://${domain}${href}`;
4445
4445
  } else if (href.startsWith("http")) {
4446
4446
  fullUrl = href;
4447
4447
  } else if (href.startsWith("#") || href.startsWith("?") || href.startsWith("mailto:") || href.startsWith("tel:") || href.startsWith("javascript:")) {
@@ -4455,7 +4455,7 @@ function extractLinksWithAnchors(html, sourceUrl, domain) {
4455
4455
  if (linkDomain !== cleanDomain) continue;
4456
4456
  parsed.hash = "";
4457
4457
  const path = parsed.pathname;
4458
- if (path === "/" || path === "") continue;
4458
+ if (path === "") continue;
4459
4459
  if (RESOURCE_EXTENSIONS.test(path)) continue;
4460
4460
  if (SKIP_PATH_PATTERNS.test(path)) continue;
4461
4461
  const normalized = normalizeUrl(fullUrl);
@@ -6049,7 +6049,7 @@ async function audit(domain, options) {
6049
6049
  }
6050
6050
  }
6051
6051
  if (options?.fullCrawl) {
6052
- const { crawlFullSite: crawlFullSite2 } = await import("./full-site-crawler-BCJS67WQ.js");
6052
+ const { crawlFullSite: crawlFullSite2 } = await import("./full-site-crawler-TQ35TB2X.js");
6053
6053
  const crawlResult = await crawlFullSite2(siteData, {
6054
6054
  maxPages: options.maxPages ?? 200,
6055
6055
  concurrency: options.concurrency ?? 5