(version)
| 4 | const REQUEST_TIMEOUT_MS = 4000 |
| 5 | |
| 6 | function normalizeVersion (version) { |
| 7 | if (!version) return '' |
| 8 | return version.toString().trim().replace(/^v/i, '') |
| 9 | } |
| 10 | |
| 11 | async function fetchLatestRelease () { |
| 12 | const response = await axios.get(RELEASES_URL, { |
no outgoing calls
no test coverage detected