mirror of
https://github.com/anchore/syft.git
synced 2026-10-31 22:46:36 +01:00
Fix for errors+failures parsing package.json
closes: #230 Signed-off-by: Toure Dunnon <toure.dunnon@anchore.com>
This commit is contained in:
@@ -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"
|
||||
)
|
||||
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user