X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=syncthing%2Freleases.js;fp=syncthing%2Freleases.js;h=a3809ea6d9aff0844987cfae6339eaa157892797;hb=c8433d78c302573bbf1f3800404f9c82bc0596ab;hp=0000000000000000000000000000000000000000;hpb=9611a24e8bf33b1e81342e384322d3497469f2b0;p=webi-installers%2F.git diff --git a/syncthing/releases.js b/syncthing/releases.js new file mode 100644 index 0000000..a3809ea --- /dev/null +++ b/syncthing/releases.js @@ -0,0 +1,20 @@ +'use strict'; + +var github = require('../_common/github.js'); +var owner = 'syncthing'; +var repo = 'syncthing'; + +module.exports = function (request) { + return github(request, owner, repo).then(function (all) { + return all; + }); +}; + +if (module === require.main) { + module.exports(require('@root/request')).then(function (all) { + all = require('../_webi/normalize.js')(all); + // just select the first 5 for demonstration + all.releases = all.releases.slice(0, 5); + console.info(JSON.stringify(all, null, 2)); + }); +}