Skip to content

Commit

Permalink
#1
Browse files Browse the repository at this point in the history
Corresponding to the following commit vuls
future-architect/vuls#95
future-architect/vuls#67
  • Loading branch information
usiusi360 committed Jun 11, 2016
1 parent ab66d26 commit 6aa9112
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.project
current/all.json
current/all.json
src/current/all.json
23 changes: 23 additions & 0 deletions src/dist/js/vulsrepo.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,18 @@ var createPivotData = function(json_data) {
"Packages" : p_val.Name,
};

if (x_val.Platform.Name !== "") {
KnownObj["Platform"] = x_val.Platform.Name;
} else {
KnownObj["Platform"] = "None";
}

if (x_val.Container.Name !== "") {
KnownObj["Container"] = x_val.Container.Name;
} else {
KnownObj["Container"] = "None";
}

if (y_val.CveDetail.Jvn.Score !== 0) {
KnownObj["CVSS Score"] = y_val.CveDetail.Jvn.Score;
KnownObj["CVSS Severity"] = y_val.CveDetail.Jvn.Severity;
Expand Down Expand Up @@ -239,6 +251,17 @@ var createPivotData = function(json_data) {
"CVSS (I)" : "Unknown",
"CVSS (A)" : "Unknown"
};

if (x_val.Platform.Name !== "") {
} else {
}

if (x_val.Container.Name !== "") {
UnknownObj["Container"] = x_val.Container.Name;
} else {
UnknownObj["Container"] = "None";
}

array.push(UnknownObj);
});
});
Expand Down

0 comments on commit 6aa9112

Please sign in to comment.