MCPcopy Create free account
hub / github.com/XmirrorSecurity/OpenSCA-cli / _depSet

Function _depSet

opensca/sca/javascript/npm.go:59–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57}
58
59func _depSet() *model.DepGraphMap {
60 return model.NewDepGraphMap(nil, func(s ...string) *model.DepGraph {
61 return &model.DepGraph{
62 Name: s[0],
63 Version: s[1],
64 Develop: len(s) > 2 && s[2] == "dev",
65 }
66 })
67}
68
69func readJson[T any](reader io.Reader) *T {
70 var data T

Callers 3

ParsePackageJsonWithNodeFunction · 0.85
ParsePackageJsonWithLockFunction · 0.85

Calls 1

NewDepGraphMapFunction · 0.92

Tested by

no test coverage detected