GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tools: deps update authenticate github api request · nodejs/node@a60bc41

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tools/dep_updaters
    • update-ada.sh
    • update-base64.sh
    • update-brotli.sh
    • update-c-ares.sh
    • update-cjs-module-lexer.sh
    • update-icu.sh
    • update-libuv.sh
    • update-llhttp.sh
    • update-nghttp2.sh
    • update-nghttp3.sh
    • update-ngtcp2.sh
    • update-simdutf.sh
    • update-uvwasi.sh
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tools/dep_updaters/update-ada.sh‎

Copy file name to clipboardExpand all lines: tools/dep_updaters/update-ada.sh
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ DEPS_DIR="$BASE_DIR/deps"
1111
. "$BASE_DIR/tools/dep_updaters/utils.sh"
1212

1313
NEW_VERSION="$("$NODE" --input-type=module <<'EOF'
14-
const res = await fetch('https://api.github.com/repos/ada-url/ada/releases/latest');
14+
const res = await fetch('https://api.github.com/repos/ada-url/ada/releases/latest',
15+
process.env.GITHUB_TOKEN && {
16+
headers: {
17+
"Authorization": `Bearer ${process.env.GITHUB_TOKEN}`
18+
},
19+
});
1520
if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res });
1621
const { tag_name } = await res.json();
1722
console.log(tag_name.replace('v', ''));
Collapse file

‎tools/dep_updaters/update-base64.sh‎

Copy file name to clipboardExpand all lines: tools/dep_updaters/update-base64.sh
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ DEPS_DIR="$BASE_DIR/deps"
1212
. "$BASE_DIR/tools/dep_updaters/utils.sh"
1313

1414
NEW_VERSION="$("$NODE" --input-type=module <<'EOF'
15-
const res = await fetch('https://api.github.com/repos/aklomp/base64/releases/latest');
15+
const res = await fetch('https://api.github.com/repos/aklomp/base64/releases/latest',
16+
process.env.GITHUB_TOKEN && {
17+
headers: {
18+
"Authorization": `Bearer ${process.env.GITHUB_TOKEN}`
19+
},
20+
});
1621
if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res });
1722
const { tag_name } = await res.json();
1823
console.log(tag_name.replace('v', ''));
Collapse file

‎tools/dep_updaters/update-brotli.sh‎

Copy file name to clipboardExpand all lines: tools/dep_updaters/update-brotli.sh
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ DEPS_DIR="$BASE_DIR/deps"
1212
. "$BASE_DIR/tools/dep_updaters/utils.sh"
1313

1414
NEW_VERSION="$("$NODE" --input-type=module <<'EOF'
15-
const res = await fetch('https://api.github.com/repos/google/brotli/releases/latest');
15+
const res = await fetch('https://api.github.com/repos/google/brotli/releases/latest',
16+
process.env.GITHUB_TOKEN && {
17+
headers: {
18+
"Authorization": `Bearer ${process.env.GITHUB_TOKEN}`
19+
},
20+
});
1621
if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res });
1722
const { tag_name } = await res.json();
1823
console.log(tag_name.replace('v', ''));
Collapse file

‎tools/dep_updaters/update-c-ares.sh‎

Copy file name to clipboardExpand all lines: tools/dep_updaters/update-c-ares.sh
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ DEPS_DIR="$BASE_DIR/deps"
1212
. "$BASE_DIR/tools/dep_updaters/utils.sh"
1313

1414
NEW_VERSION="$("$NODE" --input-type=module <<'EOF'
15-
const res = await fetch('https://api.github.com/repos/c-ares/c-ares/releases/latest');
15+
const res = await fetch('https://api.github.com/repos/c-ares/c-ares/releases/latest',
16+
process.env.GITHUB_TOKEN && {
17+
headers: {
18+
"Authorization": `Bearer ${process.env.GITHUB_TOKEN}`
19+
},
20+
});
1621
if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res });
1722
const { tag_name } = await res.json();
1823
console.log(tag_name.replace('cares-', '').replaceAll('_', '.'));
Collapse file

‎tools/dep_updaters/update-cjs-module-lexer.sh‎

Copy file name to clipboardExpand all lines: tools/dep_updaters/update-cjs-module-lexer.sh
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ DEPS_DIR="$BASE_DIR/deps"
1111
NPM="$DEPS_DIR/npm/bin/npm-cli.js"
1212

1313
NEW_VERSION="$("$NODE" --input-type=module <<'EOF'
14-
const res = await fetch('https://api.github.com/repos/nodejs/cjs-module-lexer/tags');
14+
const res = await fetch('https://api.github.com/repos/nodejs/cjs-module-lexer/tags',
15+
process.env.GITHUB_TOKEN && {
16+
headers: {
17+
"Authorization": `Bearer ${process.env.GITHUB_TOKEN}`
18+
},
19+
});
1520
if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res });
1621
const tags = await res.json();
1722
const { name } = tags.at(0)
Collapse file

‎tools/dep_updaters/update-icu.sh‎

Copy file name to clipboardExpand all lines: tools/dep_updaters/update-icu.sh
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ TOOLS_DIR="$BASE_DIR/tools"
1010
[ -x "$NODE" ] || NODE=$(command -v node)
1111

1212
NEW_VERSION="$("$NODE" --input-type=module <<'EOF'
13-
const res = await fetch('https://api.github.com/repos/unicode-org/icu/releases/latest');
13+
const res = await fetch('https://api.github.com/repos/unicode-org/icu/releases/latest',
14+
process.env.GITHUB_TOKEN && {
15+
headers: {
16+
"Authorization": `Bearer ${process.env.GITHUB_TOKEN}`
17+
},
18+
});
1419
if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res });
1520
const { tag_name } = await res.json();
1621
console.log(tag_name.replace('release-', '').replace('-','.'));
Collapse file

‎tools/dep_updaters/update-libuv.sh‎

Copy file name to clipboardExpand all lines: tools/dep_updaters/update-libuv.sh
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ DEPS_DIR="$BASE_DIR/deps"
1111
. "$BASE_DIR/tools/dep_updaters/utils.sh"
1212

1313
NEW_VERSION="$("$NODE" --input-type=module <<'EOF'
14-
const res = await fetch('https://api.github.com/repos/libuv/libuv/releases/latest');
14+
const res = await fetch('https://api.github.com/repos/libuv/libuv/releases/latest',
15+
process.env.GITHUB_TOKEN && {
16+
headers: {
17+
"Authorization": `Bearer ${process.env.GITHUB_TOKEN}`
18+
},
19+
});
1520
if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res });
1621
const { tag_name } = await res.json();
1722
console.log(tag_name.replace('v', ''));
Collapse file

‎tools/dep_updaters/update-llhttp.sh‎

Copy file name to clipboardExpand all lines: tools/dep_updaters/update-llhttp.sh
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ DEPS_DIR="${BASE_DIR}/deps"
1313
. "$BASE_DIR/tools/dep_updaters/utils.sh"
1414

1515
NEW_VERSION="$("$NODE" --input-type=module <<'EOF'
16-
const res = await fetch('https://api.github.com/repos/nodejs/llhttp/releases/latest');
16+
const res = await fetch('https://api.github.com/repos/nodejs/llhttp/releases/latest',
17+
process.env.GITHUB_TOKEN && {
18+
headers: {
19+
"Authorization": `Bearer ${process.env.GITHUB_TOKEN}`
20+
},
21+
});
1722
if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res });
1823
const { tag_name } = await res.json();
1924
console.log(tag_name.replace('release/v', ''));
Collapse file

‎tools/dep_updaters/update-nghttp2.sh‎

Copy file name to clipboardExpand all lines: tools/dep_updaters/update-nghttp2.sh
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ DEPS_DIR="$BASE_DIR/deps"
1212
. "$BASE_DIR/tools/dep_updaters/utils.sh"
1313

1414
NEW_VERSION="$("$NODE" --input-type=module <<'EOF'
15-
const res = await fetch('https://api.github.com/repos/nghttp2/nghttp2/releases/latest');
15+
const res = await fetch('https://api.github.com/repos/nghttp2/nghttp2/releases/latest',
16+
process.env.GITHUB_TOKEN && {
17+
headers: {
18+
"Authorization": `Bearer ${process.env.GITHUB_TOKEN}`
19+
},
20+
});
1621
if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res });
1722
const { tag_name } = await res.json();
1823
console.log(tag_name.replace('v', ''));
Collapse file

‎tools/dep_updaters/update-nghttp3.sh‎

Copy file name to clipboardExpand all lines: tools/dep_updaters/update-nghttp3.sh
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ DEPS_DIR="$BASE_DIR/deps"
1111
. "$BASE_DIR/tools/dep_updaters/utils.sh"
1212

1313
NEW_VERSION="$("$NODE" --input-type=module <<'EOF'
14-
const res = await fetch('https://api.github.com/repos/ngtcp2/nghttp3/releases');
14+
const res = await fetch('https://api.github.com/repos/ngtcp2/nghttp3/releases',
15+
process.env.GITHUB_TOKEN && {
16+
headers: {
17+
"Authorization": `Bearer ${process.env.GITHUB_TOKEN}`
18+
},
19+
});
1520
if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res });
1621
const releases = await res.json()
1722
const { tag_name } = releases.at(0);

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.