Fix for errors+failures parsing package.json

closes: #230

Signed-off-by: Toure Dunnon <toure.dunnon@anchore.com>
This commit is contained in:
Toure Dunnon
2020-10-22 13:58:18 -04:00
committed by Toure
parent 931c796158
commit 15379d1075
6 changed files with 29 additions and 26 deletions
-11
View File
@@ -1,11 +0,0 @@
package pkg
type MetadataType string
const (
UnknownMetadataType MetadataType = "UnknownMetadata"
ApkMetadataType MetadataType = "apk-metadata"
DpkgMetadataType MetadataType = "dpkg-metadata"
GemgMetadataType MetadataType = "gem-metadata"
RpmdbMetadataType MetadataType = "rpmdb-metadata"
)
+1
View File
@@ -9,4 +9,5 @@ type NpmMetadata struct {
License string `mapstructure:"license" json:"license"`
Homepage string `mapstructure:"homepage" json:"homepage"`
Description string `mapstructure:"description" json:"description"`
URL string `mapstructure:"url" json:"url"`
}