projects
/
webi-installers
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bee07ff
)
make Prettier
author
AJ ONeal
<aj@therootcompany.com>
Sat, 2 May 2020 19:53:37 +0000
(19:53 +0000)
committer
AJ ONeal
<aj@therootcompany.com>
Sat, 2 May 2020 19:53:37 +0000
(19:53 +0000)
_common/github.js
patch
|
blob
|
history
diff --git
a/_common/github.js
b/_common/github.js
index 09eda590f104f5a12d7274daf0f15b2ba45f74ac..cc542f0ff2ce1a569d9074d4611dc290b6d5fb65 100644
(file)
--- a/
_common/github.js
+++ b/
_common/github.js
@@
-65,14
+65,16
@@
function getAllReleases(request, owner = 'BurntSushi', repo = 'ripgrep') {
}
const name = asset['name'];
}
const name = asset['name'];
- const os = Object.keys(osMap).find(regKey => {
- name.match(osMap[regKey]);
- }) || 'linux';
- const arch = Object.keys(archMap)
- .find(regKey => name.match(archMap[regKey]));
+ const os =
+ Object.keys(osMap).find((regKey) => {
+ name.match(osMap[regKey]);
+ }) || 'linux';
+ const arch = Object.keys(archMap).find((regKey) =>
+ name.match(archMap[regKey])
+ );
let fileExt = '';
let fileExt = '';
- Object.keys(fileExtMap).find(
regKey
=> {
+ Object.keys(fileExtMap).find(
(regKey)
=> {
const match = name.match(fileExtMap[regKey]);
if (match) {
fileExt = match[0];
const match = name.match(fileExtMap[regKey]);
if (match) {
fileExt = match[0];
@@
-100,7
+102,9
@@
function getAllReleases(request, owner = 'BurntSushi', repo = 'ripgrep') {
module.exports = getAllReleases;
if (module === require.main) {
module.exports = getAllReleases;
if (module === require.main) {
- getAllReleases(require('@root/request'), 'BurntSushi', 'ripgrep').then(function(all) {
- console.log(JSON.stringify(all, null, 2));
- });
+ getAllReleases(require('@root/request'), 'BurntSushi', 'ripgrep').then(
+ function (all) {
+ console.log(JSON.stringify(all, null, 2));
+ }
+ );
}
}