Git Product home page Git Product logo

Comments (6)

velut avatar velut commented on July 2, 2024

Hi @utillity, thanks for opening the issue.

On MDN, it says that the exception part can be omitted (see also their example):

exceptionVar Optional
An optional identifier to hold the caught exception for the associated catch block. If the catch block does not utilize the exception's value, you can omit the exceptionVar and its surrounding parentheses, as catch {...}.

The optional catch binding should be well supported by vendors and tools (see compatibility data).

Can you share some details about how you are getting the error (tools, Node or browser version, commands used) ?

from query-registry.

utillity avatar utillity commented on July 2, 2024

Hi, I am using this library with node 8.9.3 on an embedded device (unfortunately I can't install a newer node version there). if you want to make it backward-compatible that would be great :)

I'm just using getPackageManifest({ name: packageName, registry: registry }) from your library

from query-registry.

utillity avatar utillity commented on July 2, 2024

uff, looks like there are a couple of issues blocking me from using your library with node 8.9.3 - don't need to fix the catch :)

from query-registry.

velut avatar velut commented on July 2, 2024

That's unfortunate, what are the other issues if you don't mind? Maybe you could try compiling (part of) the library for your use case or use something like patch-package in your install step.

If you want to implement something yourself to fetch manifests from npm the endpoints look like this https://registry.npmjs.org/<bare name or scoped name>/<version or tag>, for example https://registry.npmjs.org/query-registry/2.6.0 or https://registry.npmjs.org/@types/node/latest.

from query-registry.

utillity avatar utillity commented on July 2, 2024

this old nodejs version also doesn't support Object.fromEntries. I could pull and try to get everything working, if you need it. I found a simple workaround which works for me - I just use fetch() to get the JSON directly from my private repository, so no dependencies needed :)

from query-registry.

velut avatar velut commented on July 2, 2024

I see. Don't worry about the PR, supporting older versions is not a priority right now and I plan to use features available in current and future releases anyway (like native fetch).

I'm glad you found a solution that works for you.

from query-registry.

Related Issues (9)

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.