Comments (12)
from badgen.net.
Weird, @nestjs/core/*
stop working for me now
I used to get latest from full meta list, then turn to that tricky method(use /*
to get latest only) to reduce response size, seems we need to go back again
from badgen.net.
No problem, i'm working on that.
from badgen.net.
just a note for curious devs working with the NPM API:
endpoint registry.npmjs.org/[pkg-name]
a) with scoped packages there is no /latest, but have /dist-tag-name
b) for not scoped ones is exactly the opposite - there IS /latest, but not have /dist-tag-name
pahahahaha
from badgen.net.
So.. it seems the api currently works as expected both for scoped and non-scoped ones?
So we can just request registry.npmjs.org/[pkg-name]
and get dist-tag
field, and get version from there dist-tag.latest
by default.
from badgen.net.
AHA! Got it... /latest
does not work for the scoped ones :D
from badgen.net.
The interesting thing in that API is that the problem is only when /latest
otherwise it works for other tags like /@nestjs/core/next
/@nestjs/core/latest
.
from badgen.net.
Watafak /next
gives me error (get not allowed method), no matter what package (except scoped ones)..
from badgen.net.
from badgen.net.
hahaaha
from badgen.net.
I don't know how some people build such APIs ;d
from badgen.net.
Just realized, that if you want to get another tag, you just can do it with another endpoint, like it is able for the latest
tag.
So in case we recieve different than latest
, we will trigger (only then) the full metadata and get it from dist-tags
...
from badgen.net.
Related Issues (20)
- build-date doesn't work with multi-arch images
- Winget badge service always returns 404
- [Feature request] Add support for Bitbucket Pipelines
- [Visual Studio Marketplace | Open Vsx] Add extension size badge HOT 1
- `docker/size/library/node` not work
- flat badgen.net builder for github workflows HOT 3
- add live flatpak version badge from flathub
- Add makedeb support
- License name of Dart packages are incorrectly shown
- Chrome web store badge doesn't always show the "K" HOT 9
- Docker Metadata should support OCI Schema because Label Schema is superseded by it HOT 3
- Gitlab Badges are broken HOT 1
- Suggested Icon: Snyk HOT 2
- Badgen with "complex" GET method requests HOT 1
- Improvement: Support Snyk NPM Repositories
- [bug] Matrix badge for `#openinf:matrix.org` channel times out HOT 3
- Icon Support HOT 3
- Docker metadata 500 response. HOT 2
- PeerTube badges does not work
- colorA & colorB HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from badgen.net.