-
Notifications
You must be signed in to change notification settings - Fork 0
/
print-all.js
53 lines (46 loc) · 1.63 KB
/
print-all.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
const me = require('.');
(async () => {
// First query all versions, because this is cached
var ver = await me.r_versions();
// Then we can do the rest in parallel
var rel = me.r_release();
var old = me.r_oldrel();
var ol1 = me.r_oldrel(which = 1);
var ol2 = me.r_oldrel(which = 2);
var ol3 = me.r_oldrel(which = 3);
var ol4 = me.r_oldrel(which = 4);
var ol5 = me.r_oldrel(which = 5);
var mac = me.r_release_macos();
var maa = me.r_release_macos(undefined, 'arm64');
var tar = me.r_release_tarball();
var win = me.r_release_win();
var dev = me.r_devel();
var nxt = me.r_next();
var nxw = me.r_next_win();
var nxm = me.r_next_macos();
var nxa = me.r_next_macos(undefined, 'arm64');
var all = await Promise.all(
[rel, old, ol1, ol2, ol3, ol4, ol5, mac, maa, tar, win, dev,
nxt, nxw, nxm, nxa]
);
var all2 = {
"r_versions": ver,
"r_release": all[0],
"r_oldrel": all[1],
"r_oldrel/1": all[2],
"r_oldrel/2": all[3],
"r_oldrel/3": all[4],
"r_oldrel/4": all[5],
"r_oldrel/5": all[6],
"r_release_macos_x86_64": all[7],
"r_release_macos_arm64": all[8],
"r_release_tarball": all[9],
"r_release_win": all[10],
"r_devel": all[11],
"r_next": all[12],
"r_next_win": all[13],
"r_next_macos_x86_64": all[14],
"r_next_macos_arm64": all[15],
};
console.log(all2);
})();