@goflag/cli 0.2.3 → 0.2.4

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.
@@ -3532,11 +3532,18 @@ async function runAudit(inputUrl, options = {}) {
3532
3532
  const okPages = pages.filter((p) => isOkStatus(p.fetch.status));
3533
3533
  const documents = okPages.filter(isHtmlPage);
3534
3534
  const { kept: htmlPages, dropped: duplicatePages } = dropCanonicalDuplicates(documents);
3535
- const unreachablePages = pages.filter((p) => !isOkStatus(p.fetch.status)).map((p) => ({
3536
- id: fingerprint("page", routeKey(p.fetch.finalUrl)),
3537
- url: p.fetch.finalUrl,
3538
- status: p.fetch.status
3539
- }));
3535
+ const unreachablePages = [
3536
+ ...pages.filter((p) => !isOkStatus(p.fetch.status)).map((p) => ({
3537
+ id: fingerprint("page", routeKey(p.fetch.finalUrl)),
3538
+ url: p.fetch.finalUrl,
3539
+ status: p.fetch.status
3540
+ })),
3541
+ ...crawlResult.errors.map((e) => ({
3542
+ id: fingerprint("page", routeKey(e.url)),
3543
+ url: e.url,
3544
+ status: 0
3545
+ }))
3546
+ ];
3540
3547
  const seoIssues = [];
3541
3548
  const conformanceRows = [];
3542
3549
  const advisories = [];
@@ -3629,7 +3636,7 @@ async function runAudit(inputUrl, options = {}) {
3629
3636
  allowInsecureTls: options.allowInsecureTls,
3630
3637
  checkExternal,
3631
3638
  timeoutMs: options.timeoutMs,
3632
- maxPages,
3639
+ maxPages: effectiveMaxPages,
3633
3640
  signal: options.signal,
3634
3641
  onProgress: (p) => options.onProgress?.({
3635
3642
  phase: p.phase === "scan" ? "scan" : "links",
@@ -4403,4 +4410,4 @@ export {
4403
4410
  summarize,
4404
4411
  Logger
4405
4412
  };
4406
- //# sourceMappingURL=chunk-F74SRZVM.js.map
4413
+ //# sourceMappingURL=chunk-TVJVVSLV.js.map