You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// biome-ignore lint/suspicious/noConsoleLog: this is a script
270
+
// biome-ignore lint/suspicious/noConsole: this is a script
271
271
console.log(`[${i}/${CONTRIBUTORS.size}] Updated for ${username}`);
272
-
fs.writeFileSync(newURL("../data/contributors.json",import.meta.url),JSON.stringify(data));// update file while fetching (sync happens safely in between fetches)
272
+
awaitfs.writeFile(newURL("../data/contributors.json",import.meta.url),JSON.stringify(data));// update file while fetching (sync happens safely in between fetches)
273
+
awaitnewPromise((resolve)=>setTimeout(resolve,1_000));// GitHub 403s with too many rapid requests.
273
274
}catch(err){
274
275
if(errinstanceofUserFetchError&&err.notFound){
276
+
// biome-ignore lint/suspicious/noConsole: this is a script
275
277
console.warn(`[${i}/${total}] (Skipped ${username}, not found)`);
0 commit comments