lib/utils/win-releases.js
function toSemver(tag) {
    var parts = tag.split('.');
    var version = parts.slice(0, 3).join('.');
    var prerelease = Number(parts[3]);

    // semver == windows version
    if (!prerelease) return version;

    var channelId = Math.floor(prerelease/CHANNEL_MAGINITUDE);
    var channel = CHANNELS[channelId - 1];
    var count = prerelease - (channelId*CHANNEL_MAGINITUDE);

    return version + '-' + channel + '.' + count
}
function toSemver(tag) {
    var parts = tag.split('.');
    var version = parts.slice(0, 3).join('.');
    var prerelease = Number(parts[3]);

    // semver == windows version
    if (!prerelease) return version;

    var channelId = Math.floor(prerelease/CHANNEL_MAGINITUDE);
    var channel = CHANNELS[channelId - 1];
    var count = prerelease - (channelId*CHANNEL_MAGINITUDE);

    return version + '-' + channel + '.' + count
}
function toSemver ( tag ) { var parts = tag . split ( '.' ) ; var version = parts . slice ( 0 , 3 ) . join ( '.' ) ; var prerelease = Number ( parts [ 3 ] ) ; // semver == windows version if ( ! prerelease ) return version ; var channelId = Math . floor ( prerelease / CHANNEL_MAGINITUDE ) ; var channel = CHANNELS [ channelId - 1 ] ; var count = prerelease - ( channelId * CHANNEL_MAGINITUDE ) ; return version + '-' + channel + '.' + count }
Map a windows version to a semver
Map a windows version to a semver