Comments (6)
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 associatedcatch
block. If thecatch
block does not utilize the exception's value, you can omit theexceptionVar
and its surrounding parentheses, ascatch {...}
.
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.
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.
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.
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.
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.
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)
- The automated release is failing 🚨 HOT 1
- [Feature Request]: get only install data HOT 3
- Pathnames in registry URLs are not preserved HOT 3
- when normalizeRepository gitRepository can not use sub domain HOT 1
- Does it work with NextJS? HOT 3
- Update vulnerable dependency HOT 1
- TSConfig library setting `dom` causing issues on Node-only compilations HOT 1
- ability to fetch dependants HOT 2
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 query-registry.