microsoft / microsoft/component-detection

NpmComponentDetector doesnt detect dependencies

Open
#1,405 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
553
Forks
135
Avg merge
20h 58m
Merged PRs (30d)
6

Description

From reading the Readme I was under the impression that the `NpmComponentDetector` detect the packages under the package.json "dependencies" field.
from reading the source it seems it only extract the name of the package and not its dependencies.
is this intended?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the README description of NpmComponentDetector and inspect its source, focusing on how package.json and its "dependencies" field are handled. Compare the documented behavior with the implementation and establish whether dependency extraction is expected; done means the intended behavior is clear and, if missing, covered by an existing or new test.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
devtools, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.