mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-23 22:16:48 +00:00
chore: fmt (prettier@3.x)
This commit is contained in:
+5
-5
@@ -15,11 +15,11 @@ function getAllReleases(request, owner, repo, baseurl) {
|
||||
if (!baseurl) {
|
||||
return Promise.reject('missing baseurl');
|
||||
}
|
||||
return ghRelease(request, owner, repo, baseurl + '/api/v1').then(function (
|
||||
all,
|
||||
) {
|
||||
return all;
|
||||
});
|
||||
return ghRelease(request, owner, repo, baseurl + '/api/v1').then(
|
||||
function (all) {
|
||||
return all;
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
module.exports = getAllReleases;
|
||||
|
||||
+16
-14
@@ -1,20 +1,22 @@
|
||||
'use strict';
|
||||
|
||||
function getRawReleases(request) {
|
||||
return request({ url: 'https://iterm2.com/downloads.html' }).then(function (
|
||||
resp,
|
||||
) {
|
||||
var links = resp.body
|
||||
.split(/[<>]+/g)
|
||||
.map(function (str) {
|
||||
var m = str.match(/href="(https:\/\/iterm2\.com\/downloads\/.*\.zip)"/);
|
||||
if (m && /iTerm2-[34]/.test(m[1])) {
|
||||
return m[1];
|
||||
}
|
||||
})
|
||||
.filter(Boolean);
|
||||
return links;
|
||||
});
|
||||
return request({ url: 'https://iterm2.com/downloads.html' }).then(
|
||||
function (resp) {
|
||||
var links = resp.body
|
||||
.split(/[<>]+/g)
|
||||
.map(function (str) {
|
||||
var m = str.match(
|
||||
/href="(https:\/\/iterm2\.com\/downloads\/.*\.zip)"/,
|
||||
);
|
||||
if (m && /iTerm2-[34]/.test(m[1])) {
|
||||
return m[1];
|
||||
}
|
||||
})
|
||||
.filter(Boolean);
|
||||
return links;
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
function transformReleases(links) {
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ curl -H "Host: example.com" http://localhost:3000
|
||||
```
|
||||
|
||||
```html
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html>
|
||||
<body>
|
||||
<h1>Example Domain</h1>
|
||||
|
||||
@@ -23,7 +23,6 @@ install:
|
||||
>
|
||||
> 1. A drop-in cross-compiling toolchain for C and C++ (and Rust and CGo for
|
||||
> that matter).
|
||||
>
|
||||
> 2. A general purpose systems programming language, like C, but intentional,
|
||||
> and with benefit of hindsight.
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user