lib/util.js
/**
 * fetchTagList returns Nim version tag list.
 */
fetchTagList returns Nim version tag list.
fetchTagList returns Nim version tag list .
function fetchTagList() {
    return __awaiter(this, void 0, void 0, function* () {
        const tagURL = 'https://api.github.com/repos/nim-lang/Nim/tags';
        return request({
            url: tagURL,
            method: 'GET',
            headers: {
                'User-Agent': 'setup-nim-action',
            },
            json: true,
        }).then((obj) => {
            return obj.map((v) => v.name);
        });
    });
}
function fetchTagList ( ) { return __awaiter ( this , void 0 , void 0 , function * ( ) { const tagURL = 'https://api.github.com/repos/nim-lang/Nim/tags' ; return request ( { url : tagURL , method : 'GET' , headers : { 'User-Agent' : 'setup-nim-action' , } , json : true , } ) . then ( ( obj ) => { return obj . map ( ( v ) => v . name ) ; } ) ; } ) ; }
fetchTagList returns Nim version tag list.
fetchTagList returns Nim version tag list .