Skip to content

Commit

Permalink
fix(npm): lockfile v3 is_direct_dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
iseki0 committed May 15, 2023
1 parent 833cff6 commit 0ac2a96
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions module/npm/lockfile_v3.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ func parseLockfileV3(data []byte) (r *v3ParsedLockfile, e error) {
Version: lockfile.Version,
Deps: make([]model.DependencyItem, 0),
}
for i := range parsedLockfile.Deps {
parsedLockfile.Deps[i].IsDirectDependency = true
}
root := lockfile._v3Conv("", "", make(map[string]struct{}))
if root != nil {
parsedLockfile.Deps = root.Dependencies
Expand Down

0 comments on commit 0ac2a96

Please sign in to comment.