pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/aboutcode-org/scancode-toolkit/pull/4766

ssets.com/assets/actions-109fb3a41bacb1c2.css" /> Fix: Authenticated Git dependencies incorrectly parsed as npm alias by pantha704 · Pull Request #4766 · aboutcode-org/scancode-toolkit · GitHub
Skip to content

Fix: Authenticated Git dependencies incorrectly parsed as npm alias#4766

Open
pantha704 wants to merge 2 commits intoaboutcode-org:developfrom
pantha704:issue-4753-NPM-git-urls
Open

Fix: Authenticated Git dependencies incorrectly parsed as npm alias#4766
pantha704 wants to merge 2 commits intoaboutcode-org:developfrom
pantha704:issue-4753-NPM-git-urls

Conversation

@pantha704
Copy link

Fixes #4753. The package parser inside npm.py's deps_mapper was evaluating dependencies via a naive string check (if : and @ exist in the requirement), which falsely captured authenticated git repos like git+ssh://git@github.com... as aliases of package 'git'. This modifies the check strictly to require the npm: prefix and an @ delimiter, fixing both NPM package aliases and YarnLock dependency statements. Tests are included.

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.

Authenticated Git dependency in package.json parsed as package "git" instead of declared dependency name

1 participant

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy