changed-log
Advanced tools
Comparing version 0.7.2 to 0.7.3
{ | ||
"name": "changed-log", | ||
"version": "0.7.2", | ||
"version": "0.7.3", | ||
"description": "Returns all commit messages between 2 versions of an NPM module", | ||
@@ -5,0 +5,0 @@ "main": "src/changed-log.js", |
@@ -11,2 +11,13 @@ require('lazy-ass'); | ||
function getRepo(info) { | ||
if (check.object(info.repository)) { | ||
return info.repository; | ||
} | ||
la(check.object(info.versions), 'missing versions', info); | ||
var latestTag = R.last(Object.keys(info.versions)); | ||
var latest = info.versions[latestTag]; | ||
return latest.repository; | ||
} | ||
// resolves with the github url for the given NPM package name | ||
@@ -29,4 +40,5 @@ function packageRepo(name) { | ||
}) | ||
.then(R.prop('repository')) | ||
.then(getRepo) | ||
.then(function (repo) { | ||
debug('just the repo', repo); | ||
utils.verifyGithub(json, repo); | ||
@@ -42,7 +54,10 @@ return repo; | ||
if (!module.parent) { | ||
var name = 'next-update'; | ||
log('getting repo info for package %s', name); | ||
packageRepo(name) | ||
.then(log) | ||
.catch(log); | ||
(function () { | ||
// var name = 'next-update'; | ||
var name = 'grunt-contrib-jshint'; | ||
log('getting repo info for package %s', name); | ||
packageRepo(name) | ||
.then(log) | ||
.catch(log); | ||
}()); | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
426221
798