()
| 131 | } |
| 132 | |
| 133 | private async revalidateAsync(): Promise<void> { |
| 134 | const gen = ++this._enrichGeneration; |
| 135 | const [stats, conflicts, warnings] = await Promise.all([ |
| 136 | getSkillkitStatsWithDailyAsync(), |
| 137 | getSkillConflictsAsync(), |
| 138 | getSkillWarningsAsync(), |
| 139 | ]); |
| 140 | if (gen !== this._enrichGeneration) return; |
| 141 | this.applyEnrichment(stats, conflicts, warnings); |
| 142 | this.trigger("updated"); |
| 143 | saveEnrichmentCache({ |
| 144 | stats: Object.fromEntries(stats), |
| 145 | conflicts: Object.fromEntries(conflicts), |
| 146 | warnings, |
| 147 | }); |
| 148 | } |
| 149 | |
| 150 | private applyEnrichment( |
| 151 | stats: Map<string, SkillkitStatsWithDaily>, |
no test coverage detected