nestdotland / deno-import-intellisense Goto Github PK
View Code? Open in Web Editor NEWEndpoint for Deno's import intellisense
Home Page: https://intellisense.nest.land/api/x
License: MIT License
Endpoint for Deno's import intellisense
Home Page: https://intellisense.nest.land/api/x
License: MIT License
The current deno-import-intellisense.json
is problematic:
{
"version": 1,
"registries": [
{
"schema": "/:module([a-zA-Z0-9_]*)@:version/:path*",
"variables": [
{
"key": "module",
"url": "https://intellisense.nest.land/api/x"
},
{
"key": "version",
"url": "https://intellisense.nest.land/api/x/${module}"
},
{
"key": "path",
"url": "https://intellisense.nest.land/api/x/${module}/${version}"
}
]
}
]
}
Which causes code completions in the editor to not work properly. There are a few issues:
[a-zA-Z0-9_]*
) does not require any length. This means that https://x.next.land/@
becomes a valid match and effectively makes the module variable optional. Consider using [a-zA-Z0-9_]+
so the module is at least 1 char long.[a-zA-Z0-9_]*
) does match real world results returned from the API endpoint (https://intellisense.nest.land/api/x
) which means that when someone tries to select a module like node-crawler
in the editor, the completion is not calculated properly, because node-crawler
or jpeg.ts
is allegedly an invalid package name. Consider validating module names against a regex and updating the regex to include valid values. (e.g. [a-zA-z0-9_.\-]+
)@
and /
. This isn't specifically problematic, but it does mean if there are issues elsewhere, the pattern matching can get a bit mixed up. If there is any validation on a version string, consider reflecting it in the pattern.A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.