tasks/voguesy.js
function(dependencies) {
        var _dependencies = dependencies || {};
        var _numberOfOudatedPackages = Object.keys(_dependencies).length;
        var _minor = semver.allMinor(dependencies, 'latest');
        var _major = semver.allMajor(dependencies, 'latest');
        var _patch = semver.allPatch(dependencies, 'latest`');
        var _passing = (
          options['up-to-dateness'].number >= _numberOfOudatedPackages &&
          _major.passing === true &&
          _minor.passing === true &&
          _patch.passing === true
        );

        return {
          passing: _passing,
          outdated: _.merge(_major.outdated, _minor.outdated, _patch.outdated)
        };
      }
function(dependencies) {
        var _dependencies = dependencies || {};
        var _numberOfOudatedPackages = Object.keys(_dependencies).length;
        var _minor = semver.allMinor(dependencies, 'latest');
        var _major = semver.allMajor(dependencies, 'latest');
        var _patch = semver.allPatch(dependencies, 'latest`');
        var _passing = (
          options['up-to-dateness'].number >= _numberOfOudatedPackages &&
          _major.passing === true &&
          _minor.passing === true &&
          _patch.passing === true
        );

        return {
          passing: _passing,
          outdated: _.merge(_major.outdated, _minor.outdated, _patch.outdated)
        };
      }
function ( dependencies ) { var _dependencies = dependencies || { } ; var _numberOfOudatedPackages = Object . keys ( _dependencies ) . length ; var _minor = semver . allMinor ( dependencies , 'latest' ) ; var _major = semver . allMajor ( dependencies , 'latest' ) ; var _patch = semver . allPatch ( dependencies , 'latest`' ) ; var _passing = ( options [ 'up-to-dateness' ] . number >= _numberOfOudatedPackages && _major . passing === true && _minor . passing === true && _patch . passing === true ) ; return { passing : _passing , outdated : _ . merge ( _major . outdated , _minor . outdated , _patch . outdated ) } ; }
Helper function to avoid code repetition
Helper function to avoid code repetition