(prefix: string)
| 5 | const systemRegister = System.constructor.prototype.register; |
| 6 | |
| 7 | function getLoadedVersions(prefix: string) { |
| 8 | return [...System.entries()] |
| 9 | .filter(([name]) => name.startsWith(prefix)) |
| 10 | .map(([name]) => name.substring(prefix.length)); |
| 11 | } |
| 12 | |
| 13 | function findMatchingPackage(id: string) { |
| 14 | const sep = id.indexOf('@', 1); |
no test coverage detected