From 146b4bd01fc79e03d6a5657d4c7b31cb8db54710 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Tue, 28 Jul 2020 15:01:35 -0400 Subject: [PATCH] cataloger: rename npm to javascript to accommodate yarn parser Signed-off-by: Alfredo Deza --- syft/cataloger/{npm => javascript}/cataloger.go | 0 syft/cataloger/{npm => javascript}/parse_package_lock.go | 2 +- syft/cataloger/{npm => javascript}/parse_package_lock_test.go | 2 +- .../test-fixtures/pkg-lock/package-lock.json | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename syft/cataloger/{npm => javascript}/cataloger.go (100%) rename syft/cataloger/{npm => javascript}/parse_package_lock.go (98%) rename syft/cataloger/{npm => javascript}/parse_package_lock_test.go (99%) rename syft/cataloger/{npm => javascript}/test-fixtures/pkg-lock/package-lock.json (100%) 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 7374530bd..9027abd6f 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 cff7bff4e..1f0b0a086 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