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: sort OpenSSL releases numerically · nodejs/node@3f6bebd

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tools/dep_updaters
    • update-openssl.sh
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tools/dep_updaters/update-openssl.sh‎

Copy file name to clipboardExpand all lines: tools/dep_updaters/update-openssl.sh
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ download() {
1313
LATEST_TAG_NAME="$("$NODE" --input-type=module <<'EOF'
1414
const res = await fetch('https://api.github.com/repos/openssl/openssl/git/matching-refs/tags/openssl-3.5');
1515
if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res });
16-
const releases = await res.json()
16+
const releases = (await res.json())
17+
.sort(({ ref: a }, { ref: b }) => a.localeCompare(b, 'en', { numeric: true }));
1718
const latest = releases.at(-1);
1819
if(!latest) throw new Error(`Could not find latest release`);
1920
console.log(latest.ref.replace('refs/tags/',''));

0 commit comments

Comments
0 (0)
You are visitor 01402775 — 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.