git-username
Advanced tools
Comparing version 0.1.2 to 0.2.0
@@ -11,4 +11,4 @@ /*! | ||
const gitUrl = require('github-url-from-git'); | ||
const log = require('verbalize'); | ||
/** | ||
@@ -19,3 +19,8 @@ * Get the username from the GitHub remote origin URL | ||
module.exports = (function() { | ||
if (/\bhas not been defined\b/.test(origin.url())) { | ||
log.warn(" Can't calculate git-username. This probably means that"); | ||
log.warn(" a git remote origin has not been defined."); | ||
return ''; | ||
} | ||
return url.parse(gitUrl(origin.url())).path.split('/')[1]; | ||
})(); |
{ | ||
"name": "git-username", | ||
"description": "Extract the username from a git remote origin URL.", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"homepage": "https://github.com/jonschlinkert/git-username", | ||
@@ -43,5 +43,6 @@ "author": { | ||
"dependencies": { | ||
"github-url-from-git": "~1.1.1", | ||
"remote-origin-url": "~0.2.1", | ||
"github-url-from-git": "~1.1.1" | ||
"verbalize": "^0.1.2" | ||
} | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
591253
8835
0
3
+ Addedverbalize@^0.1.2
+ Addedverbalize@0.1.2(transitive)