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

Fix Source.constructSource to use versionSpec instead of parsedVersionSpec #332

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xhalo32
Copy link

@xhalo32 xhalo32 commented Jul 6, 2024

Previously, parsedVersionSpec was passed to NPMRegistrySource.prototype.fetch which stripped the alias if the versionSpec also contained a semver range, like npm:@codingame/monaco-vscode-api@ >= 1.69.0 < 1.70.0.

This change removes the semver parsing from Source.constructSource as it is the rensponsibility of NPMRegistrySource.prototype.fetch.

Fixes #331

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.

Source.constructSource passes wrong versionSpec to NPMRegistrySource in case of aliased package name
1 participant