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 b6f1306 commit 4a07942Copy full SHA for 4a07942
apps/svelte.dev/scripts/sync-packages/index.ts
@@ -155,7 +155,7 @@ async function getNpmAndGitHubData(pkg: string): Promise<PackageKey & PackageNpm
155
const token = process.env.GITHUB_TOKEN;
156
const headers = token ? new Headers({ authorization: 'Bearer ' + token }) : {};
157
const res = await fetchJson(`https://api.github.com/repos/${git_org}/${git_repo}`, { headers });
158
- if (res.message && res.message.startsWith('API rate limit exceeded')) {
+ if (res?.message && res?.message.startsWith('API rate limit exceeded')) {
159
skipGithubStars = true;
160
} else {
161
github_stars = res.stargazers_count;
0 commit comments