git-semver-tags
Advanced tools
Comparing version 1.2.0-alpha.1 to 1.2.0
11
cli.js
@@ -11,14 +11,7 @@ #!/usr/bin/env node | ||
'Options', | ||
' --lerna, -l parse lerna style git tags', | ||
' --package, -p when listing lerna style tags, filter by a package' | ||
' --lerna parse lerna style git tags', | ||
' --package when listing lerna style tags, filter by a package' | ||
] | ||
}); | ||
// the package argument only makes sense | ||
// when used in the context of lerna-style git-tags. | ||
if (args.flags.package && !args.flags.lerna) { | ||
console.error('--package should only be used when running in --lerna mode'); | ||
process.exit(1); | ||
} | ||
gitSemverTags(function(err, tags) { | ||
@@ -25,0 +18,0 @@ if (err) { |
@@ -18,2 +18,7 @@ 'use strict'; | ||
if (opts.package && !opts.lernaTags) { | ||
callback(Error('opts.package should only be used when running in lerna mode')); | ||
return; | ||
} | ||
exec(cmd, { | ||
@@ -20,0 +25,0 @@ maxBuffer: Infinity |
{ | ||
"name": "git-semver-tags", | ||
"version": "1.2.0-alpha.1", | ||
"version": "1.2.0", | ||
"description": "Get all git semver tags of your repository in reverse chronological order", | ||
@@ -30,3 +30,2 @@ "homepage": "https://github.com/stevemao/git-semver-tags", | ||
"devDependencies": { | ||
"coveralls": "^2.11.2", | ||
"git-dummy-commit": "^1.1.0", | ||
@@ -40,5 +39,5 @@ "istanbul": "^0.4.2", | ||
"scripts": { | ||
"coverage": "istanbul cover _mocha -- -R spec && rm -rf ./coverage", | ||
"lint": "jshint *.js --exclude node_modules && jscs *.js", | ||
"test": "npm run-script lint && mocha --timeout 10000" | ||
"test": "npm run-script lint && mocha --timeout 30000", | ||
"test-windows": "mocha --timeout 30000" | ||
}, | ||
@@ -45,0 +44,0 @@ "bin": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4820
6
5
0
1
65