Skip to content

Commit

Permalink
Version 1.0.1 - Fixes RetireJS#83
Browse files Browse the repository at this point in the history
  • Loading branch information
eoftedal committed Apr 13, 2015
1 parent bc45902 commit 043f904
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion node/lib/retire.js
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@


var exports = exports || {};
exports.version = '1.0.0';
exports.version = '1.0.1';

function isDefined(o) {
return typeof o !== 'undefined';
18 changes: 9 additions & 9 deletions node/lib/scanner.js
Original file line number Diff line number Diff line change
@@ -84,15 +84,15 @@ function scanDependencies(dependencies, nodeRepo, options) {
if (options.ignore && shouldIgnore(dependencies[i].component, options.ignore)) {
continue;
}
results = retire.scanNodeDependency(dependencies[i], nodeRepo);
if (retire.isVulnerable(results)) {
events.emit('vulnerable-dependency-found', {results: results});
var result = results[0]; //Only single scan here
log(options).warn(result.component + ' ' + result.version + ' has known vulnerabilities: ' + printVulnerability(result));
if (result.parent) {
printParent(result, options);
}
} else {
results = retire.scanNodeDependency(dependencies[i], nodeRepo);
if (retire.isVulnerable(results)) {
events.emit('vulnerable-dependency-found', {results: results});
var result = results[0]; //Only single scan here
log(options).warn(result.component + ' ' + result.version + ' has known vulnerabilities: ' + printVulnerability(result, options));
if (result.parent) {
printParent(result, options);
}
} else {
events.emit('dependency-found', results);
}
}
2 changes: 1 addition & 1 deletion node/package.json
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
"author": "Erlend Oftedal <erlend@oftedal.no>",
"name": "retire",
"description": "Retire is a tool for detecting use of vulnerable libraries",
"version": "1.0.0",
"version": "1.0.1",
"repository": {
"type": "git",
"url": "https://github.com/RetireJS/retire.js.git"

0 comments on commit 043f904

Please sign in to comment.