(file: string, contents: string, type: string | undefined)
| 397 | } |
| 398 | |
| 399 | function getExampleFiles(file: string, contents: string, type: string | undefined): DownloadFiles { |
| 400 | let npmDeps = {}; |
| 401 | let urls = {}; |
| 402 | let fileDeps = parseFile(file, contents, npmDeps, urls); |
| 403 | let {files} = getFiles([...fileDeps], type, npmDeps); |
| 404 | return {files, deps: npmDeps, urls}; |
| 405 | } |
| 406 | |
| 407 | let packageVersionCache = new Map<string, string>(); |
| 408 | function getPackageVersion(pkg: string) { |