chore: fmt (prettier@3.x)

This commit is contained in:
AJ ONeal
2023-10-11 23:25:10 +00:00
parent eff21a266c
commit 476548cd06
4 changed files with 22 additions and 21 deletions
+5 -5
View File
@@ -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
View File
@@ -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
View File
@@ -28,7 +28,7 @@ curl -H "Host: example.com" http://localhost:3000
```
```html
<!DOCTYPE html>
<!doctype html>
<html>
<body>
<h1>Example Domain</h1>
-1
View File
@@ -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.
>