(ref: RepoRef, branch: string)
| 234 | } |
| 235 | |
| 236 | export function getJsdelivrMetaUrl(ref: RepoRef, branch: string): string | null { |
| 237 | if (ref.provider !== "github") return null; |
| 238 | return `https://data.jsdelivr.net/v1/packages/gh/${ref.owner}/${ref.repo}@${branch}`; |
| 239 | } |
| 240 | |
| 241 | export function getRawFileUrl(ref: RepoRef, branch: string, filePath: string): string { |
| 242 | if (ref.provider === "gitlab") { |
no outgoing calls
no test coverage detected