We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a072411 commit 212d24dCopy full SHA for 212d24d
1 file changed
tools/dep_updaters/update-undici.sh
@@ -17,15 +17,11 @@ NPM="$ROOT/deps/npm/bin/npm-cli.js"
17
. "$ROOT/tools/dep_updaters/utils.sh"
18
19
NEW_VERSION="$("$NODE" --input-type=module <<'EOF'
20
-const res = await fetch('https://api.github.com/repos/nodejs/undici/releases/latest',
21
- process.env.GITHUB_TOKEN && {
22
- headers: {
23
- "Authorization": `Bearer ${process.env.GITHUB_TOKEN}`
24
- },
25
- });
+const res = await fetch('https://registry.npmjs.org/undici/seven');
26
if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res });
27
-const { tag_name } = await res.json();
28
-console.log(tag_name.replace('v', ''));
+const { version } = await res.json();
+if (!version) throw new Error('No "seven" dist-tag found');
+console.log(version);
29
EOF
30
)"
31
0 commit comments