Skip to content

wrong latest_download_url for scoped packages in the API of NPM #3138

@yzlzbql

Description

@yzlzbql

When I use the API (https://libraries.io/api/search?order=desc&platforms=npm&sort=created_at&api_key=KEY) to get the newly published packages of NPM, it provides the wrong latest_download_url for all scoped packages.

For example, it should be "https://registry.npmjs.org/@fish-cli/template-vue3/-/template-vue3-1.0.0.tgz" for the package @fish-cli/template-vue3 but it provides "https://registry.npmjs.org/@fish-cli/template-vue3/-/@fish-cli/template-vue3-1.0.0.tgz".

Hoping for some help. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions