refactor: finish moving ssh-* scripts to own installers
[webi-installers/.git] / syncthing / releases.js
1 'use strict';
2
3 var github = require('../_common/github.js');
4 var owner = 'syncthing';
5 var repo = 'syncthing';
6
7 module.exports = function (request) {
8   return github(request, owner, repo).then(function (all) {
9     return all;
10   });
11 };
12
13 if (module === require.main) {
14   module.exports(require('@root/request')).then(function (all) {
15     all = require('../_webi/normalize.js')(all);
16     // just select the first 5 for demonstration
17     all.releases = all.releases.slice(0, 5);
18     console.info(JSON.stringify(all, null, 2));
19   });
20 }