diff --git a/syft/cataloger/npm/cataloger.go b/syft/cataloger/javascript/cataloger.go similarity index 100% rename from syft/cataloger/npm/cataloger.go rename to syft/cataloger/javascript/cataloger.go diff --git a/syft/cataloger/npm/parse_package_lock.go b/syft/cataloger/javascript/parse_package_lock.go similarity index 98% rename from syft/cataloger/npm/parse_package_lock.go rename to syft/cataloger/javascript/parse_package_lock.go index 7374530bda9..9027abd6f6f 100644 --- a/syft/cataloger/npm/parse_package_lock.go +++ b/syft/cataloger/javascript/parse_package_lock.go @@ -1,4 +1,4 @@ -package npm +package javascript import ( "encoding/json" diff --git a/syft/cataloger/npm/parse_package_lock_test.go b/syft/cataloger/javascript/parse_package_lock_test.go similarity index 99% rename from syft/cataloger/npm/parse_package_lock_test.go rename to syft/cataloger/javascript/parse_package_lock_test.go index cff7bff4e74..1f0b0a08634 100644 --- a/syft/cataloger/npm/parse_package_lock_test.go +++ b/syft/cataloger/javascript/parse_package_lock_test.go @@ -1,4 +1,4 @@ -package npm +package javascript import ( "os" diff --git a/syft/cataloger/npm/test-fixtures/pkg-lock/package-lock.json b/syft/cataloger/javascript/test-fixtures/pkg-lock/package-lock.json similarity index 100% rename from syft/cataloger/npm/test-fixtures/pkg-lock/package-lock.json rename to syft/cataloger/javascript/test-fixtures/pkg-lock/package-lock.json