Closed SimenB closed 4 months ago
Avoid the extra network call per version as we have all the info needed from the index.json file.
index.json
See #2031
// tested in repl which has TLA const { Octokit } = require('@octokit/rest'); const github = new Octokit(); const { data: unofficialBuildsIndexText } = await github.request('https://unofficial-builds.nodejs.org/download/release/index.json'); const buildVersion = unofficialBuildsIndexText.find(indexVersion => indexVersion.version === 'v20.0.0'); console.log(buildVersion?.files.includes('linux-x64-musl')); console.log(buildVersion?.security);
(I'll land this after today's security release, just in case it messes something up)
Description
Avoid the extra network call per version as we have all the info needed from the
index.json
file.Motivation and Context
See #2031
Testing Details
Example Output(if appropriate)
Types of changes
Checklist