| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4d7d37f commit 97b6b61
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,20 +10,19 @@ DEPS_DIR="$BASE_DIR/deps" | |||
| 10 | 10 | # shellcheck disable=SC1091 | |
| 11 | 11 | . "$BASE_DIR/tools/dep_updaters/utils.sh" | |
| 12 | 12 | ||
| 13 | - NEW_VERSION="1.15.1" | ||
| 14 | - # NEW_VERSION="$("$NODE" --input-type=module <<'EOF' | ||
| 15 | - # const res = await fetch('https://api.github.com/repos/ngtcp2/ngtcp2/releases', | ||
| 16 | - # process.env.GITHUB_TOKEN && { | ||
| 17 | - # headers: { | ||
| 18 | - # "Authorization": `Bearer ${process.env.GITHUB_TOKEN}` | ||
| 19 | - # }, | ||
| 20 | - # }); | ||
| 21 | - # if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res }); | ||
| 22 | - # const releases = await res.json() | ||
| 23 | - # const { tag_name } = releases.at(0); | ||
| 24 | - # console.log(tag_name.replace('v', '')); | ||
| 25 | - # EOF | ||
| 26 | - # )" | ||
| 13 | + NEW_VERSION="$("$NODE" --input-type=module <<'EOF' | ||
| 14 | + const res = await fetch('https://api.github.com/repos/ngtcp2/ngtcp2/releases', | ||
| 15 | + process.env.GITHUB_TOKEN && { | ||
| 16 | + headers: { | ||
| 17 | + "Authorization": `Bearer ${process.env.GITHUB_TOKEN}` | ||
| 18 | + }, | ||
| 19 | + }); | ||
| 20 | + if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res }); | ||
| 21 | + const releases = await res.json() | ||
| 22 | + const { tag_name } = releases.at(0); | ||
| 23 | + console.log(tag_name.replace('v', '')); | ||
| 24 | + EOF | ||
| 25 | + )" | ||
| 27 | 26 | ||
| 28 | 27 | NGTCP2_VERSION_H="$DEPS_DIR/ngtcp2/ngtcp2/lib/includes/ngtcp2/version.h" | |
| 29 | 28 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments