@hawkeyexl/manni 2.8.3 → 2.8.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.
- package/README.md +1 -1
- package/dist/{chunk-KYTHN2VT.js → chunk-3QRJR6LM.js} +2 -2
- package/dist/{chunk-DGC4CCK3.js → chunk-HZ2KWOOO.js} +35 -16
- package/dist/chunk-HZ2KWOOO.js.map +1 -0
- package/dist/{chunk-KGI7B6DD.js → chunk-XHH5OSQQ.js} +259 -174
- package/dist/chunk-XHH5OSQQ.js.map +1 -0
- package/dist/cli.js +3 -3
- package/dist/docmeta.js +2 -2
- package/dist/index.d.ts +29 -9
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-DGC4CCK3.js.map +0 -1
- package/dist/chunk-KGI7B6DD.js.map +0 -1
- /package/dist/{chunk-KYTHN2VT.js.map → chunk-3QRJR6LM.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-3QRJR6LM.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-HZ2KWOOO.js";
|
|
44
44
|
import {
|
|
45
45
|
COMMON_FORMAT_LIST,
|
|
46
46
|
FAMILY_CONFIG_NAMES,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
splitPageArgument,
|
|
81
81
|
terminalConfirm,
|
|
82
82
|
valeConfigPath
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-XHH5OSQQ.js";
|
|
84
84
|
|
|
85
85
|
// src/cli.ts
|
|
86
86
|
import { Command as Command5 } from "commander";
|
package/dist/docmeta.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
buildProgram
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3QRJR6LM.js";
|
|
5
5
|
import {
|
|
6
6
|
runIfMain
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XHH5OSQQ.js";
|
|
8
8
|
|
|
9
9
|
// src/docmeta.ts
|
|
10
10
|
runIfMain(import.meta.url, () => buildProgram().name("docmeta"));
|
package/dist/index.d.ts
CHANGED
|
@@ -3425,7 +3425,17 @@ declare function applyFrontmatter(content: string, patch: MetadataPatch, options
|
|
|
3425
3425
|
* target is locked — on Windows that is a real and recoverable situation, and
|
|
3426
3426
|
* refusing to write at all would be worse than a non-atomic write.
|
|
3427
3427
|
*/
|
|
3428
|
-
declare function writeFileAtomic(
|
|
3428
|
+
declare function writeFileAtomic(
|
|
3429
|
+
/**
|
|
3430
|
+
* Absolute, or relative to the process's current directory. The manifest
|
|
3431
|
+
* cache is keyed on absolute paths, and the invalidation in the `finally`
|
|
3432
|
+
* below resolves `path` against that same implicit directory — so a caller
|
|
3433
|
+
* that resolved its own path against some other base would invalidate a key
|
|
3434
|
+
* no cache holds, and the stale parse would survive the write. That miss is
|
|
3435
|
+
* silent, which is why the requirement is stated here rather than left to be
|
|
3436
|
+
* discovered.
|
|
3437
|
+
*/
|
|
3438
|
+
path: string,
|
|
3429
3439
|
/**
|
|
3430
3440
|
* A `Uint8Array` writes byte-for-byte. `schemas vendor` needs that: the
|
|
3431
3441
|
* integrity pin it records is taken over exactly what the server sent, and a
|
|
@@ -4541,10 +4551,20 @@ declare function claimLine(claim: ClaimEnd): number | undefined;
|
|
|
4541
4551
|
* bare pin, or a marker with no drift check on its sentence.
|
|
4542
4552
|
*/
|
|
4543
4553
|
declare function claimEnd(page: PageCitations, entry: PageCitation, lines: readonly string[], misplaced?: MisplacedMarker): ClaimEnd | null;
|
|
4544
|
-
/**
|
|
4554
|
+
/**
|
|
4555
|
+
* What `update --accept` re-pins over: the paragraph, whole fenced block, or
|
|
4556
|
+
* lines inside a fenced block at a line.
|
|
4557
|
+
*
|
|
4558
|
+
* The three kinds are not interchangeable. `"block"` covers a fence, its
|
|
4559
|
+
* content and its closing fence, which is the only shape a `quote: true`
|
|
4560
|
+
* entry may hold. `"fenced-lines"` covers content lines inside a block and
|
|
4561
|
+
* neither fence, which is what a claim minted over part of a code sample
|
|
4562
|
+
* holds. `"paragraph"` covers prose, and table rows too, since `ClaimUnit`
|
|
4563
|
+
* draws no line between them.
|
|
4564
|
+
*/
|
|
4545
4565
|
interface ClaimUnit {
|
|
4546
4566
|
lines: PageLines;
|
|
4547
|
-
kind: "paragraph" | "block";
|
|
4567
|
+
kind: "paragraph" | "block" | "fenced-lines";
|
|
4548
4568
|
text: string[];
|
|
4549
4569
|
}
|
|
4550
4570
|
/**
|
|
@@ -4552,13 +4572,13 @@ interface ClaimUnit {
|
|
|
4552
4572
|
* different repair, so `update --accept` names which it hit rather than
|
|
4553
4573
|
* leaving the entry skipped with no reason.
|
|
4554
4574
|
*/
|
|
4555
|
-
type NoUnit = "outside" | "blank" | "
|
|
4575
|
+
type NoUnit = "outside" | "blank" | "fence-crossed" | "marker" | "not-a-paragraph" | "table-short" | "table-rule";
|
|
4556
4576
|
/**
|
|
4557
|
-
* The paragraph, fenced block or table rows at a file line.
|
|
4558
|
-
* line holds no claim at all: it is blank, outside the
|
|
4559
|
-
*
|
|
4560
|
-
* Those are the claims `update --accept`
|
|
4561
|
-
* them it is.
|
|
4577
|
+
* The paragraph, fenced block, fenced lines or table rows at a file line.
|
|
4578
|
+
* Undefined when the line holds no claim at all: it is blank, outside the
|
|
4579
|
+
* body, another entry's marker, a table rule, or a line whose claim runs out
|
|
4580
|
+
* of the fenced block it starts in. Those are the claims `update --accept`
|
|
4581
|
+
* skips, and `noUnitAt` says which of them it is.
|
|
4562
4582
|
*
|
|
4563
4583
|
* A paragraph runs from this line to its end, not from the paragraph's own
|
|
4564
4584
|
* first line. The line asked about is the claim's first line, and re-pinning
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
reencryptMetadata,
|
|
6
6
|
runKeyRotate,
|
|
7
7
|
runKeySet
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HZ2KWOOO.js";
|
|
9
9
|
import {
|
|
10
10
|
BinMissing,
|
|
11
11
|
COMMON_FORMATS,
|
|
@@ -127,7 +127,7 @@ import {
|
|
|
127
127
|
valueOf,
|
|
128
128
|
vendorFileName,
|
|
129
129
|
writeFileAtomic
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-XHH5OSQQ.js";
|
|
131
131
|
|
|
132
132
|
// src/key/index.ts
|
|
133
133
|
var key_exports = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hawkeyexl/manni",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.4",
|
|
4
4
|
"description": "One command line for documentation that is meant to be checked. `manni meta` validates the presence and format of document metadata (Markdown frontmatter and more) against JSON Schema, built for CI. Formerly docmeta.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|