(name)
| 139 | |
| 140 | // Scoped names must have their separator encoded to address a single version. |
| 141 | function encodeName(name) { |
| 142 | return name.replaceAll('/', '%2f'); |
| 143 | } |
| 144 | |
| 145 | async function isVersionPublished(registry, name, version) { |
| 146 | return (await fetchJson(`${registry}/${encodeName(name)}/${version}`)) !== null; |
no outgoing calls
no test coverage detected