Closed chris48s closed 1 week ago
Warnings | |
---|---|
:warning: | :books: Remember to ensure any changes to `config.private` in `services/npm/npm-base.js` are reflected in the [server secrets documentation](https://github.com/badges/shields/blob/master/doc/server-secrets.md) |
Messages | |
---|---|
:book: | :sparkles: Thanks for your contribution to Shields, @chris48s! |
Generated by :no_entry_sign: dangerJS against 8cfefe77f8b08e7e8a1ad4922868405f1f8ad3a0
In this PR, I am following up on my suggestion in https://github.com/badges/shields/pull/10641#issuecomment-2453554943
/npm/last-update/{packageName}
request the abbreviated API response/npm/last-update/{packageName}/{tag}
request the full versionThis will reduce the amount of json we have to download and parse in order to serve a badge in the case where when a tag is not specified. For packages (e.g: npm) that produce a really large response, it would make it possible to use the tag-less variant.