Skip to content

Commit

Permalink
Define isUnsatisfied in outer context
Browse files Browse the repository at this point in the history
  • Loading branch information
quaertym committed Oct 29, 2014
1 parent 13e116e commit 6f6cfeb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ function EmberCLIDependencyChecker(project) {

EmberCLIDependencyChecker.prototype.checkDependencies = function() {

var isUnsatisfied = function(pkg) {
return !!pkg.needsUpdate;
};

var bowerDeps = this.readBowerDependencies();
var unsatisfiedBowerDeps = bowerDeps.filter(isUnsatisfied);

Expand Down Expand Up @@ -151,4 +147,8 @@ var isGitRepo = function(str) {
return (/^git(\+(ssh|https?))?:\/\//i).test(str) || (/\.git\/?$/i).test(str) || (/^git@/i).test(str);
};

var isUnsatisfied = function(pkg) {
return !!pkg.needsUpdate;
};

module.exports = EmberCLIDependencyChecker;

0 comments on commit 6f6cfeb

Please sign in to comment.