MCPcopy Create free account
hub / github.com/ServeRest/ServeRest / normalizeVersion

Function normalizeVersion

src/utils/github-release.js:6–9  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

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

Callers 3

fetchLatestReleaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected