(mentions: Arr.NonEmptyArray<VersionMention>)
| 73 | } |
| 74 | |
| 75 | const selectVersionMentions = (mentions: Arr.NonEmptyArray<VersionMention>) => { |
| 76 | for (const packageName of packagePreference) { |
| 77 | const selected = mentions.filter((mention) => mention.name === packageName) |
| 78 | if (Arr.isArrayNonEmpty(selected)) return selected |
| 79 | } |
| 80 | |
| 81 | return mentions |
| 82 | } |
| 83 | |
| 84 | const describeMentions = (mentions: ReadonlyArray<VersionMention>) => |
| 85 | mentions |
no test coverage detected
searching dependent graphs…