arcane-cli 0.38.0 → 0.38.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/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5589,6 +5589,9 @@ function buildShowReportView(model) {
|
|
|
5589
5589
|
const corrections = model.corrections ? { ...model.corrections, highlights: model.corrections.highlights.map(toRowView) } : void 0;
|
|
5590
5590
|
return {
|
|
5591
5591
|
...model,
|
|
5592
|
+
// Same reason as parkedIsSingular: the template needs a flag to write "commit"
|
|
5593
|
+
// rather than "commits" for a contributor with exactly one.
|
|
5594
|
+
cast: model.cast.map((member) => ({ ...member, isSingular: member.commits === 1 })),
|
|
5592
5595
|
sections: model.sections.map((section) => ({
|
|
5593
5596
|
...section,
|
|
5594
5597
|
hasNote: typeof section.note === "string" && section.note.length > 0,
|
|
@@ -5602,6 +5605,11 @@ function buildShowReportView(model) {
|
|
|
5602
5605
|
hasCorrections: corrections !== void 0,
|
|
5603
5606
|
hasParked: model.parked.length > 0,
|
|
5604
5607
|
parkedCount: model.parked.length,
|
|
5608
|
+
// Mustache has no conditional on a VALUE -- only truthiness of a name -- so a
|
|
5609
|
+
// template cannot choose "item" vs "items" from the number itself. It needs a
|
|
5610
|
+
// flag, and only this side can derive one. Without it a one-item program reads
|
|
5611
|
+
// "1 items", which is what the compiled template shipped.
|
|
5612
|
+
parkedIsSingular: model.parked.length === 1,
|
|
5605
5613
|
hasCast: model.cast.length > 0,
|
|
5606
5614
|
hasOutcome: typeof model.outcome === "string" && model.outcome.length > 0,
|
|
5607
5615
|
hasVersionSpan: model.program.versionSpan !== void 0,
|