Closed Kapcash closed 3 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/egoist/gh-pinned-repos/FhEXMjf9rLRU2FuBhtDuwgtjUDQM
✅ Preview: https://gh-pinned-repos-git-fork-kapcash-master-egoist.vercel.app
closing since it's fixed by #10, thanks
I propose to return the number properties (
stars
andforks
) as number :) Currently, it's returned as string if there is a value, or 0 (so it's mixing up the types).If a weird value is passed to
parseInt
, it will returnNaN
and be defaulted to0
.Note: I just hope nobody's relying heavily on this service because it's kinda a breaking change 😬