badgen.net icon indicating copy to clipboard operation
badgen.net copied to clipboard

Npm tags containing slashes are unsupported

Open jsamr opened this issue 4 years ago • 2 comments

Either url-encoded:

https://badgen.net/npm/v/react-native-render-html/release%2f4.2

Or not

https://badgen.net/npm/v/react-native-render-html/release/4.2

The request fails (404).

The original tag on npm is release/4.2, see screenshot bellow

2020-07-25-100251_810x385_scrot

jsamr avatar Jul 25 '20 13:07 jsamr

This is a bug in unpkg, where tags with / (slash) is not supported, even if they are url-encoded.

An issue has been raised in unpkg - mjackson/unpkg#272

libinvarghese avatar Aug 14 '20 16:08 libinvarghese

I can see in the code that it used to use jsDelivr but got switched to unpkg at some point. Not sure what was the reason there but wanted to note that jsDelivr works correctly in this case https://cdn.jsdelivr.net/npm/react-native-render-html@release%2f4.2/package.json.

MartinKolarik avatar Aug 14 '20 17:08 MartinKolarik