(file: string, contents: string, type: string | undefined)
| 366 | } |
| 367 | |
| 368 | function getExampleFiles(file: string, contents: string, type: string | undefined): DownloadFiles { |
| 369 | let npmDeps = {}; |
| 370 | let urls = {}; |
| 371 | let fileDeps = parseFile(file, contents, npmDeps, urls); |
| 372 | let {files} = getFiles([...fileDeps], type, npmDeps); |
| 373 | return {files, deps: npmDeps, urls}; |
| 374 | } |
| 375 | |
| 376 | let packageVersionCache = new Map<string, string>(); |
| 377 | function getPackageVersion(pkg: string) { |