(url, opts = {})
| 158 | } |
| 159 | |
| 160 | async function fetchText(url, opts = {}) { |
| 161 | const res = await fetch(url, opts); |
| 162 | if (!res.ok) throw new Error(`HTTP ${res.status} for ${url}`); |
| 163 | return res.text(); |
| 164 | } |
| 165 | |
| 166 | function rawUrl(ref, path) { |
| 167 | // ref can be branch, tag or SHA |
no outgoing calls
no test coverage detected