Git Product home page Git Product logo

Comments (6)

bluwy avatar bluwy commented on June 16, 2024 1

I think this would be a limitation for now as I'm using https://registry.npmjs.org/-/v1/search?text=fs&size=1 to get the latest tag version so that we can fetch the package tar.

I could use https://registry.npmjs.org/fs for correctness, but I found this packument to be quite large even with the advised headers, so it's not worth the fetch.

You could access https://publint.bjornlu.com/[email protected] though if you know the version. Closing this one for now.

from publint.

sapphi-red avatar sapphi-red commented on June 16, 2024 1

Thanks for implementing 💙

from publint.

bluwy avatar bluwy commented on June 16, 2024

Actually we could do a secondary fetch if the first one fails, so it could work too 🤔

from publint.

sapphi-red avatar sapphi-red commented on June 16, 2024

It seems we can use /{pkgName}/latest.
https://github.com/npm/registry/blob/master/docs/REGISTRY-API.md#getpackageversion

https://registry.npmjs.org/fs/latest
https://registry.npmjs.org/typescript/latest

from publint.

bluwy avatar bluwy commented on June 16, 2024

Oh that is a lot better 👀 I just pushed a fix with my idea above, but yours seem simpler

from publint.

bluwy avatar bluwy commented on June 16, 2024

Alright 715fd0f should be a lot simpler now. Thanks for digging out the API, that somehow went pass me.

from publint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.