(file: string, contents: string, type: string | undefined)
| 390 | } |
| 391 | |
| 392 | function getExampleFiles(file: string, contents: string, type: string | undefined): DownloadFiles { |
| 393 | let npmDeps = {}; |
| 394 | let urls = {}; |
| 395 | let fileDeps = parseFile(file, contents, npmDeps, urls); |
| 396 | let {files} = getFiles([...fileDeps], type, npmDeps); |
| 397 | return {files, deps: npmDeps, urls}; |
| 398 | } |
| 399 | |
| 400 | let packageVersionCache = new Map<string, string>(); |
| 401 | function getPackageVersion(pkg: string) { |