(file: string, contents: string, type: string | undefined)
| 382 | } |
| 383 | |
| 384 | function getExampleFiles(file: string, contents: string, type: string | undefined): DownloadFiles { |
| 385 | let npmDeps = {}; |
| 386 | let urls = {}; |
| 387 | let fileDeps = parseFile(file, contents, npmDeps, urls); |
| 388 | let {files} = getFiles([...fileDeps], type, npmDeps); |
| 389 | return {files, deps: npmDeps, urls}; |
| 390 | } |
| 391 | |
| 392 | let packageVersionCache = new Map<string, string>(); |
| 393 | function getPackageVersion(pkg: string) { |