lib/forest.js
function (name) {
        if (name === undefined || name === 'stable') {
            return 0;
        }
        else if (name === 'alpha') {
            return Number.MAX_SAFE_INTEGER - 1;
        }
        else if (name == 'beta') {
            return Number.MAX_SAFE_INTEGER - 2;
        }
        else {
            // Possibly something like "RC", but for not officially supported
            return Number.MAX_SAFE_INTEGER - 3;
        }
    }
function (name) {
        if (name === undefined || name === 'stable') {
            return 0;
        }
        else if (name === 'alpha') {
            return Number.MAX_SAFE_INTEGER - 1;
        }
        else if (name == 'beta') {
            return Number.MAX_SAFE_INTEGER - 2;
        }
        else {
            // Possibly something like "RC", but for not officially supported
            return Number.MAX_SAFE_INTEGER - 3;
        }
    }
function ( name ) { if ( name === undefined || name === 'stable' ) { return 0 ; } else if ( name === 'alpha' ) { return Number . MAX_SAFE_INTEGER - 1 ; } else if ( name == 'beta' ) { return Number . MAX_SAFE_INTEGER - 2 ; } else { // Possibly something like "RC", but for not officially supported return Number . MAX_SAFE_INTEGER - 3 ; } }
Convert a release stage into a number
Convert a release stage into a number