@hawkeyexl/manni 2.3.8 → 2.3.9
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-L73SKPCW.js → chunk-HOLRWVCO.js} +2 -2
- package/dist/{chunk-EYD2RYKV.js → chunk-LC4H35XX.js} +11 -12
- package/dist/chunk-LC4H35XX.js.map +1 -0
- package/dist/{chunk-TIZE6GXU.js → chunk-YSI2VNKE.js} +14 -8
- package/dist/chunk-YSI2VNKE.js.map +1 -0
- package/dist/cli.js +105 -38
- package/dist/cli.js.map +1 -1
- package/dist/docmeta.js +2 -2
- package/dist/index.d.ts +18 -6
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-EYD2RYKV.js.map +0 -1
- package/dist/chunk-TIZE6GXU.js.map +0 -1
- /package/dist/{chunk-L73SKPCW.js.map → chunk-HOLRWVCO.js.map} +0 -0
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
withValueAt,
|
|
71
71
|
writeEncryptionKey,
|
|
72
72
|
writeFileAtomic
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-LC4H35XX.js";
|
|
74
74
|
|
|
75
75
|
// src/meta/core/reencrypt.ts
|
|
76
76
|
import { extname } from "node:path";
|
|
@@ -2594,7 +2594,8 @@ async function resolveCiteRun(opts) {
|
|
|
2594
2594
|
const cwd = resolve2(opts.cwd);
|
|
2595
2595
|
const env = opts.env ?? process.env;
|
|
2596
2596
|
const wanted = opts.collection ?? [];
|
|
2597
|
-
|
|
2597
|
+
const typedInputs = opts.inputs.filter((input) => input !== STDIN);
|
|
2598
|
+
if (wanted.length > 0 && typedInputs.length > 0) {
|
|
2598
2599
|
throw new CiteError(
|
|
2599
2600
|
"--collection selects a configured collection; it cannot be combined with paths."
|
|
2600
2601
|
);
|
|
@@ -2607,9 +2608,10 @@ async function resolveCiteRun(opts) {
|
|
|
2607
2608
|
if (loaded) opts.onConfigLoaded?.({ path: loaded.path, dir: loaded.dir });
|
|
2608
2609
|
const config = loaded ? loaded.config : null;
|
|
2609
2610
|
const collections = loaded ? selectCollections(loaded.collections, wanted, loaded.source, (message) => new CiteError(message)) : [];
|
|
2610
|
-
const fromCollections = opts.inputs.length === 0;
|
|
2611
|
-
const
|
|
2612
|
-
const
|
|
2611
|
+
const fromCollections = wanted.length > 0 || opts.inputs.length === 0;
|
|
2612
|
+
const collectionPaths = fromCollections ? collections.flatMap((c) => c.paths) : [];
|
|
2613
|
+
const inputs = fromCollections ? [...opts.inputs, ...collectionPaths] : opts.inputs;
|
|
2614
|
+
const base = collectionPaths.length > 0 && loaded ? loaded.dir : cwd;
|
|
2613
2615
|
let root;
|
|
2614
2616
|
if (opts.root !== void 0) {
|
|
2615
2617
|
root = resolve2(cwd, opts.root);
|
|
@@ -3831,7 +3833,7 @@ var NAMES_ITS_SUBJECT = /* @__PURE__ */ new Set([
|
|
|
3831
3833
|
"marker-repeated",
|
|
3832
3834
|
"anchor-invalid"
|
|
3833
3835
|
]);
|
|
3834
|
-
function
|
|
3836
|
+
function findingMessage(finding2) {
|
|
3835
3837
|
const subject = finding2.id ?? finding2.src;
|
|
3836
3838
|
if (subject === void 0) return finding2.message;
|
|
3837
3839
|
if (NAMES_ITS_SUBJECT.has(finding2.rule)) return finding2.message;
|
|
@@ -3849,7 +3851,7 @@ function renderCheckGithub(run3) {
|
|
|
3849
3851
|
if (site.line !== void 0) params.push(`line=${String(site.line)}`);
|
|
3850
3852
|
params.push(`title=${escapeWorkflowCommandProperty(finding2.ruleId)}`);
|
|
3851
3853
|
lines.push(
|
|
3852
|
-
`::${finding2.severity} ${params.join(",")}::${escapeWorkflowCommandMessage(
|
|
3854
|
+
`::${finding2.severity} ${params.join(",")}::${escapeWorkflowCommandMessage(findingMessage(finding2))}`
|
|
3853
3855
|
);
|
|
3854
3856
|
}
|
|
3855
3857
|
});
|
|
@@ -4285,8 +4287,11 @@ export {
|
|
|
4285
4287
|
codeEndAt,
|
|
4286
4288
|
CiteError,
|
|
4287
4289
|
asCiteError,
|
|
4290
|
+
RULE_ID_PREFIX,
|
|
4291
|
+
isCiteRule,
|
|
4288
4292
|
spellSource,
|
|
4289
4293
|
runAdd,
|
|
4294
|
+
errorSite,
|
|
4290
4295
|
runCheck,
|
|
4291
4296
|
runUpdate,
|
|
4292
4297
|
shortPin,
|
|
@@ -4294,6 +4299,7 @@ export {
|
|
|
4294
4299
|
shortSrc,
|
|
4295
4300
|
renderCheckPretty,
|
|
4296
4301
|
renderUpdatePretty,
|
|
4302
|
+
findingMessage,
|
|
4297
4303
|
renderCheckGithub,
|
|
4298
4304
|
renderCheckJson,
|
|
4299
4305
|
renderUpdateJson,
|
|
@@ -4302,4 +4308,4 @@ export {
|
|
|
4302
4308
|
runKeyRotate,
|
|
4303
4309
|
runKeySet
|
|
4304
4310
|
};
|
|
4305
|
-
//# sourceMappingURL=chunk-
|
|
4311
|
+
//# sourceMappingURL=chunk-YSI2VNKE.js.map
|