Coder Social home page Coder Social logo

Comments (10)

alexindigo avatar alexindigo commented on June 10, 2024

+1 :)

As workaround I'm checking package.repository.url for internal domain on frontend.

from kappa.

aredridel avatar aredridel commented on June 10, 2024

Yeah, though that comes from the package, not the registry -- one of the uses of this change would be to identify things published to the wrong registry.

from kappa.

alexindigo avatar alexindigo commented on June 10, 2024

Interesting, can you elaborate on use case?

from kappa.

aredridel avatar aredridel commented on June 10, 2024

We had a package that should have been published to registry.npmjs.com get published to our internal registry by mistake (shadowing the real package) -- diagnosing this was a little bit of guesswork since nothing outright said which registry the answer came from.

from kappa.

alexindigo avatar alexindigo commented on June 10, 2024

I see. We're trying to have only-local-per-package-npmrc rule to fight this kind of issues. But more visibility will definitely help.

from kappa.

jasisk avatar jasisk commented on June 10, 2024

Unfortunately, this is a tough thing to accomplish given we're operating within the confines of an application we don't own. That said, we do add an x-registry header to every response. I believe (without looking ... fingers crossed) you can see that information if you set verbose logging.

Any ideas how else we might be able to accomplish this?

from kappa.

aredridel avatar aredridel commented on June 10, 2024

Perhaps add "kappaRegistryInfo": { "origin": "registryname" } to the returned JSON?

from kappa.

aredridel avatar aredridel commented on June 10, 2024

(and no, it doesn't show with --verbose to npm)

from kappa.

jasisk avatar jasisk commented on June 10, 2024

Shows up with --loglevel=silly but, it is, after all, a silly amount of logging.

from kappa.

aredridel avatar aredridel commented on June 10, 2024

That is indeed silly.

from kappa.

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.