@hawkeyexl/manni 2.4.0 → 2.5.1
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/README.md +1 -1
- package/dist/{chunk-LYLNOJ32.js → chunk-22WVCFP4.js} +2 -2
- package/dist/{chunk-LYLNOJ32.js.map → chunk-22WVCFP4.js.map} +1 -1
- package/dist/{chunk-Z2PBY6LN.js → chunk-KZDTVSFK.js} +2 -2
- package/dist/{chunk-P4KR3XFD.js → chunk-NFCH7HCA.js} +1354 -732
- package/dist/chunk-NFCH7HCA.js.map +1 -0
- package/dist/cli.js +14 -6
- package/dist/cli.js.map +1 -1
- package/dist/docmeta.js +2 -2
- package/dist/index.d.ts +181 -13
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-P4KR3XFD.js.map +0 -1
- /package/dist/{chunk-Z2PBY6LN.js.map → chunk-KZDTVSFK.js.map} +0 -0
package/dist/cli.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
readStdin,
|
|
8
8
|
reportConfig,
|
|
9
9
|
splitList
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KZDTVSFK.js";
|
|
11
11
|
import {
|
|
12
12
|
CiteError,
|
|
13
13
|
KeyError,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
shortPin,
|
|
41
41
|
shortSrc,
|
|
42
42
|
spellSource
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-NFCH7HCA.js";
|
|
44
44
|
import {
|
|
45
45
|
COMMON_FORMAT_LIST,
|
|
46
46
|
OMITTED_WHEN_CLEAN,
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
splitPageArgument,
|
|
79
79
|
terminalConfirm,
|
|
80
80
|
valeConfigPath
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-22WVCFP4.js";
|
|
82
82
|
|
|
83
83
|
// src/cli.ts
|
|
84
84
|
import { Command as Command5 } from "commander";
|
|
@@ -433,7 +433,7 @@ async function runCheck2(opts, deps) {
|
|
|
433
433
|
const results = outcome2.pages.map((page) => finishPage(page, opts.severity));
|
|
434
434
|
return {
|
|
435
435
|
results,
|
|
436
|
-
summary: summarize(results, outcome2, sitemap
|
|
436
|
+
summary: summarize(results, outcome2, sitemap, opts.crawl)
|
|
437
437
|
};
|
|
438
438
|
} finally {
|
|
439
439
|
await analyzer.close();
|
|
@@ -465,7 +465,10 @@ function summarize(results, { discovered, skipped: skipped2, duplicates }, sitem
|
|
|
465
465
|
failed,
|
|
466
466
|
violations,
|
|
467
467
|
bySeverity,
|
|
468
|
-
sitemap,
|
|
468
|
+
sitemap: sitemap.source,
|
|
469
|
+
// The count the progress line already reported as `(N pages)`, so the
|
|
470
|
+
// report cannot disagree with the narration that preceded it.
|
|
471
|
+
sitemapPages: sitemap.urls.length,
|
|
469
472
|
crawl: crawl2
|
|
470
473
|
};
|
|
471
474
|
}
|
|
@@ -723,7 +726,11 @@ function where(run, c) {
|
|
|
723
726
|
const { summary } = run;
|
|
724
727
|
if (!summary.crawl) return "no crawl";
|
|
725
728
|
if (summary.sitemap === null) return "no sitemap; followed links";
|
|
726
|
-
|
|
729
|
+
const found = `sitemap: ${c.cyan(summary.sitemap)}`;
|
|
730
|
+
const n = summary.sitemapPages;
|
|
731
|
+
if (n === 0) return `${found}, 0 pages; followed links`;
|
|
732
|
+
if (n >= summary.discovered) return found;
|
|
733
|
+
return `${found}, ${n} page${n === 1 ? "" : "s"}; followed links for the rest`;
|
|
727
734
|
}
|
|
728
735
|
function scoreText(page) {
|
|
729
736
|
return page.score === null ? "n/a" : String(page.score);
|
|
@@ -1010,6 +1017,7 @@ var RULE_DESCRIPTIONS = {
|
|
|
1010
1017
|
"marker-orphan": "A marker names an id no citation has.",
|
|
1011
1018
|
"marker-invalid": "A marker is malformed, or the page has too many markers.",
|
|
1012
1019
|
"marker-repeated": "Two markers name the same citation id.",
|
|
1020
|
+
"marker-misplaced": "A marker line sits inside the paragraph it anchors, and splits it.",
|
|
1013
1021
|
"anchor-invalid": "A citation's anchor cannot work.",
|
|
1014
1022
|
"entry-invalid": "A citation entry is malformed.",
|
|
1015
1023
|
"quote-drift": "A quoted block no longer reproduces its source."
|