Merge branch 'javascript_parser_fix_author' of https://github.com/anchore/syft into javascript_parser_fix_author

This commit is contained in:
Toure Dunnon 2020-10-23 16:49:51 -04:00
commit 7c42a7441c
2 changed files with 38 additions and 47 deletions

View File

@ -53,11 +53,6 @@
"type": "integer"
},
"files": {
"anyOf": [
{
"type": "null"
},
{
"items": {
"anyOf": [
{
@ -107,8 +102,6 @@
]
},
"type": "array"
}
]
},
"gitCommitOfApkPort": {
"type": "string"

View File

@ -2,9 +2,7 @@ package pkg
// NpmPackageJSONMetadata holds extra information that is used in pkg.Package
type NpmPackageJSONMetadata struct {
Name string `mapstructure:"name" json:"name"`
Version string `mapstructure:"version" json:"version"`
Files []string `mapstructure:"files" json:"files"`
Files []string `mapstructure:"files" json:"files,omitempty"`
Author string `mapstructure:"author" json:"author"`
Licenses []string `mapstructure:"licenses" json:"licenses"`
Homepage string `mapstructure:"homepage" json:"homepage"`