Skip to content
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

feat: support repository.homepage #85

Merged
merged 2 commits into from
Feb 25, 2024
Merged

Conversation

PierreDemailly
Copy link
Member

Theses changes add support for repository.homepage.

When using await scorecard.result("@topcli/prompts", { resolveOnVersionControl: false }); it fails because the package does not have the repository field set in package.json. However, the homepage is set.

Note: this is also what we do in scanner so we are ISO: https://github.com/NodeSecure/scanner/blob/master/src/utils/getLinks.js#L34

Note: I'll add (in a next PR) a npmVersion option that allow to fetch a specific package version instead of the latest-release, it will allow to functional test theses changes with the @topcli/prompts package, i'll lock the version to 1.9.0 then if we add the repository field the test does not break.

Draft until NodeSecure/npm-registry-sdk#125

@PierreDemailly PierreDemailly marked this pull request as ready for review February 25, 2024 13:27
@PierreDemailly PierreDemailly merged commit de97b06 into main Feb 25, 2024
5 checks passed
@PierreDemailly PierreDemailly deleted the support-homepage-url branch February 25, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants