* Retrieve all the package info stored for a list of patterns.
(patterns: string[])
| 240 | */ |
| 241 | |
| 242 | getAllInfoForPatterns(patterns: string[]): Array<Manifest> { |
| 243 | const infos = []; |
| 244 | const seen = new Set(); |
| 245 | |
| 246 | for (const pattern of patterns) { |
| 247 | const info = this.patterns[pattern]; |
| 248 | if (seen.has(info)) { |
| 249 | continue; |
| 250 | } |
| 251 | |
| 252 | seen.add(info); |
| 253 | infos.push(info); |
| 254 | } |
| 255 | |
| 256 | return infos; |
| 257 | } |
| 258 | |
| 259 | /** |
| 260 | * Get a flat list of all package info. |
no test coverage detected