cataloger: update controller to use javascript (vs. npm)

Signed-off-by: Alfredo Deza <adeza@anchore.com>
This commit is contained in:
Alfredo Deza 2020-07-28 15:17:32 -04:00
parent d79cecea3e
commit 713f660528

View File

@ -9,7 +9,7 @@ import (
"github.com/anchore/syft/syft/cataloger/dpkg" "github.com/anchore/syft/syft/cataloger/dpkg"
golang "github.com/anchore/syft/syft/cataloger/golang" golang "github.com/anchore/syft/syft/cataloger/golang"
"github.com/anchore/syft/syft/cataloger/java" "github.com/anchore/syft/syft/cataloger/java"
"github.com/anchore/syft/syft/cataloger/npm" "github.com/anchore/syft/syft/cataloger/javascript"
"github.com/anchore/syft/syft/cataloger/python" "github.com/anchore/syft/syft/cataloger/python"
"github.com/anchore/syft/syft/cataloger/rpmdb" "github.com/anchore/syft/syft/cataloger/rpmdb"
"github.com/anchore/syft/syft/event" "github.com/anchore/syft/syft/event"
@ -53,7 +53,7 @@ func newController() controller {
ctrlr.add(java.NewCataloger()) ctrlr.add(java.NewCataloger())
ctrlr.add(apkdb.NewCataloger()) ctrlr.add(apkdb.NewCataloger())
ctrlr.add(golang.NewCataloger()) ctrlr.add(golang.NewCataloger())
ctrlr.add(npm.NewCataloger()) ctrlr.add(javascript.NewCataloger())
return ctrlr return ctrlr
} }