From 57904743aa99c5e4d160ea4420f1e4655ad26b50 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Tue, 28 Jul 2020 15:03:10 -0400 Subject: [PATCH] pkg: define the Yarn package type Signed-off-by: Alfredo Deza --- syft/pkg/type.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/syft/pkg/type.go b/syft/pkg/type.go index 9aa23007355..bdf906e4535 100644 --- a/syft/pkg/type.go +++ b/syft/pkg/type.go @@ -10,6 +10,7 @@ const ( RpmPkg WheelPkg NpmPkg + YarnPkg PythonRequirementsPkg JavaPkg JenkinsPluginPkg @@ -28,6 +29,7 @@ var typeStr = []string{ "rpm", "wheel", "npm", + "yarn", "python-requirements", "java-archive", "jenkins-plugin", @@ -43,6 +45,7 @@ var AllPkgs = []Type{ RpmPkg, WheelPkg, NpmPkg, + YarnPkg, PythonRequirementsPkg, JavaPkg, JenkinsPluginPkg,