@hawkeyexl/manni 2.8.4 → 2.8.5
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-XHH5OSQQ.js → chunk-4UI4MDAG.js} +2 -2
- package/dist/{chunk-XHH5OSQQ.js.map → chunk-4UI4MDAG.js.map} +1 -1
- package/dist/{chunk-HZ2KWOOO.js → chunk-GRPDC5BY.js} +47 -6
- package/dist/chunk-GRPDC5BY.js.map +1 -0
- package/dist/{chunk-3QRJR6LM.js → chunk-JI52FTKZ.js} +2 -2
- package/dist/cli.js +3 -3
- package/dist/docmeta.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-HZ2KWOOO.js.map +0 -1
- /package/dist/{chunk-3QRJR6LM.js.map → chunk-JI52FTKZ.js.map} +0 -0
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
withValueAt,
|
|
76
76
|
writeEncryptionKey,
|
|
77
77
|
writeFileAtomic
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-4UI4MDAG.js";
|
|
79
79
|
|
|
80
80
|
// src/meta/core/reencrypt.ts
|
|
81
81
|
import { extname } from "node:path";
|
|
@@ -4284,8 +4284,21 @@ function apply2(content, format, plan) {
|
|
|
4284
4284
|
// The move is a page rewrite, applied to the whole page before any splice.
|
|
4285
4285
|
case "marker-moved":
|
|
4286
4286
|
return content;
|
|
4287
|
-
case "source-moved":
|
|
4288
|
-
|
|
4287
|
+
case "source-moved": {
|
|
4288
|
+
let out = spliceEntryField(content, format, index, ["source", "lines"], plan.lines);
|
|
4289
|
+
out = spliceEntryField(
|
|
4290
|
+
out,
|
|
4291
|
+
format,
|
|
4292
|
+
index,
|
|
4293
|
+
["source", "integrity"],
|
|
4294
|
+
plan.minted.source.integrity
|
|
4295
|
+
);
|
|
4296
|
+
const commit = plan.minted.source["commit-sha"];
|
|
4297
|
+
if (commit !== void 0) {
|
|
4298
|
+
out = spliceEntryField(out, format, index, ["source", "commit-sha"], commit);
|
|
4299
|
+
}
|
|
4300
|
+
return out;
|
|
4301
|
+
}
|
|
4289
4302
|
case "claim-accepted": {
|
|
4290
4303
|
let out = spliceEntryField(content, format, index, ["claim", "integrity"], plan.pin);
|
|
4291
4304
|
if (plan.lines !== void 0) {
|
|
@@ -4345,6 +4358,9 @@ function applyToEntry(entry, plan) {
|
|
|
4345
4358
|
const source = end("source");
|
|
4346
4359
|
if (source === void 0) return false;
|
|
4347
4360
|
source.lines = plan.lines;
|
|
4361
|
+
source.integrity = plan.minted.source.integrity;
|
|
4362
|
+
const commit = plan.minted.source["commit-sha"];
|
|
4363
|
+
if (commit !== void 0) source["commit-sha"] = commit;
|
|
4348
4364
|
return true;
|
|
4349
4365
|
}
|
|
4350
4366
|
case "claim-accepted": {
|
|
@@ -4698,8 +4714,33 @@ async function runUpdate(opts) {
|
|
|
4698
4714
|
}
|
|
4699
4715
|
if (result.source.status === "moved" && result.source.newLines !== void 0) {
|
|
4700
4716
|
const at2 = parseLines(result.source.newLines);
|
|
4701
|
-
|
|
4702
|
-
|
|
4717
|
+
const to = result.source.newSrc;
|
|
4718
|
+
const recorded = result.citation.source["commit-sha"];
|
|
4719
|
+
if (at2 !== void 0 && to !== void 0) {
|
|
4720
|
+
try {
|
|
4721
|
+
const minted = await mintCitation({
|
|
4722
|
+
root: run3.root,
|
|
4723
|
+
src: to,
|
|
4724
|
+
...run3.key === void 0 ? {} : { key: run3.key },
|
|
4725
|
+
...recorded === void 0 ? { commitSha: false } : {},
|
|
4726
|
+
gitClient: git,
|
|
4727
|
+
...pageOptions.sourceIndex === void 0 ? {} : { sourceIndex: pageOptions.sourceIndex }
|
|
4728
|
+
});
|
|
4729
|
+
if (recorded !== void 0 && minted.source["commit-sha"] === void 0) {
|
|
4730
|
+
declined.set(result.origin.index, {
|
|
4731
|
+
rule: "source-moved",
|
|
4732
|
+
why: "Not rewritten: git is not available here, so the entry's commit-sha cannot advance with its lines."
|
|
4733
|
+
});
|
|
4734
|
+
} else {
|
|
4735
|
+
out.push({ kind: "source-moved", result, lines: lineSpec(at2), to, minted });
|
|
4736
|
+
}
|
|
4737
|
+
} catch (error) {
|
|
4738
|
+
if (!(error instanceof CiteError)) throw error;
|
|
4739
|
+
declined.set(result.origin.index, {
|
|
4740
|
+
rule: "source-moved",
|
|
4741
|
+
why: `Not rewritten: ${error.message}`
|
|
4742
|
+
});
|
|
4743
|
+
}
|
|
4703
4744
|
}
|
|
4704
4745
|
}
|
|
4705
4746
|
if (!accept) return out;
|
|
@@ -6076,4 +6117,4 @@ export {
|
|
|
6076
6117
|
runKeyRotate,
|
|
6077
6118
|
runKeySet
|
|
6078
6119
|
};
|
|
6079
|
-
//# sourceMappingURL=chunk-
|
|
6120
|
+
//# sourceMappingURL=chunk-GRPDC5BY.js.map
|