-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dts-generator] Cannot find any OpenUI5 library #488
Comments
This looks odd. The query being written as it is, I'm sure it used to work in the past. Maybe a temporary glitch on npmjs side? It would surprise me if they just change the search behavior like this. |
I checked again and pages like https://blog.npmjs.org/post/159539048360/scope-support-in-search-and-download-stats and https://stackoverflow.com/questions/44228981/npm-registry-api-scoped-packages clearly indicate this used to work. But I didn't find any announcement of this being no longer supported (e.g. on https://github.blog/changelog/label/npm/). Will look into a solution, as we are also affected. |
When I ran into this the last time, I simply replaced the query with a check for the scope |
Don't use the scoped search, which apparently stopped working, and use standard search instead. The max supported limit of search results is 250 right now and the current number of hits is still lower (183). This number might increase over time to a degree where relevant libraries are not within the first 250. Results are sorted by popularity etc., so the libraries are right now still at the very beginning of the result list. This creates a comfortable buffer for the time being. Fixes #488
Don't use the scoped search, which apparently stopped working, and use standard search instead. The max supported limit of search results is 250 right now and the current number of hits is still lower (183). This number might increase over time to a degree where relevant libraries are not within the first 250. Results are sorted by popularity etc., so the libraries are right now still at the very beginning of the result list. This creates a comfortable buffer for the time being. Fixes #488
Fixed, thanks for reporting. I am working on another thing, will trigger a release once that is done. |
@ui5/dts-generator 3.6.0 including the fix has just been published. |
...and then you created #482, which I unfortunately missed. You think we should go for that solution? |
Describe the bug
When running the command
it returns
Expected behavior
expected to have the api.json file with all libraries
Additional context
upon checking the code, it seems that the openui5 metadata is captured from
https://registry.npmjs.com/-/v1/search?text=scope:openui5&size=100
according to js-utils/ui5-metadata.js but the query always return emptyThe text was updated successfully, but these errors were encountered: