google / google/deps.dev

Issues with Unicode Handling and Missing Primary Package Links in PackageVersions API

Open
#190 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
443
Forks
54
Avg merge
1d 22h
Merged PRs (30d)
3

Description

Hello,

I am currently using the packageversions API to retrieve package names corresponding to Git links, but I am encountering a couple of issues:

Unicode in Package Versions: When querying package names like @nio/ui-kit\u003E2.1.7\u003Ereact-dom, which includes Unicode characters (such as \u003E for >), I am not sure how to properly query these versions. Could you provide guidance on how to handle this type of input correctly?

Missing Main Package in Dependencies: When querying a Git link like https://github.com/facebook/react, I expect the package react to be included, as it is the primary package linked to this Git repository. However, when I query via the packageversions API, the main package is not included, which causes an issue. Specifically, when I attempt to use the GetDependents endpoint to retrieve the number of dependents, the count seems much smaller than expected due to the absence of the core package. Is there a way to solve this problem and retrieve the core package as well?

Any guidance or suggestions to solve these issues would be greatly appreciated.

Thank you!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.