diff --git a/module/npm/lockfile_v3.go b/module/npm/lockfile_v3.go index f9f97f06..e760589d 100644 --- a/module/npm/lockfile_v3.go +++ b/module/npm/lockfile_v3.go @@ -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