parse-github-url
Advanced tools
Comparing version 1.0.0 to 1.0.1
/*! | ||
* parse-github-url <https://github.com/jonschlinkert/parse-github-url> | ||
* | ||
* Copyright (c) 2015, Jon Schlinkert. | ||
* Licensed under the MIT License. | ||
* Copyright (c) 2015-2017, Jon Schlinkert. | ||
* Released under the MIT License. | ||
*/ | ||
@@ -32,2 +32,7 @@ | ||
if (!obj.host && /^git@/.test(str) === true) { | ||
// return the correct host for git@ URLs | ||
obj.host = url.parse('http://' + str).host; | ||
} | ||
obj.path = trimSlash(obj.path); | ||
@@ -34,0 +39,0 @@ obj.pathname = trimSlash(obj.pathname); |
{ | ||
"name": "parse-github-url", | ||
"description": "Parse a github URL into an object.", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"homepage": "https://github.com/jonschlinkert/parse-github-url", | ||
"author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"contributors": [ | ||
"Ben Meiri (https://github.com/bmeiri)", | ||
"Brian Woodward (https://twitter.com/doowb)", | ||
"Jeremy Ruppel (jeremyruppel.github.io)", | ||
"Jon Schlinkert (http://twitter.com/jonschlinkert)", | ||
"Pete Cook (cookpete.com)", | ||
"Philipp Alferov (https://github.com/alferov)", | ||
"William Bartholomew (https://willbar.com)" | ||
], | ||
"repository": "jonschlinkert/parse-github-url", | ||
@@ -23,5 +32,5 @@ "bugs": { | ||
"devDependencies": { | ||
"gulp-format-md": "^0.1.7", | ||
"mocha": "^2.4.5", | ||
"verb-generate-readme": "^0.2.1" | ||
"gulp-format-md": "^1.0.0", | ||
"mocha": "^3.2.0", | ||
"verb-generate-readme": "^0.6.0" | ||
}, | ||
@@ -43,2 +52,7 @@ "keywords": [ | ||
"run": true, | ||
"toc": false, | ||
"layout": "default", | ||
"tasks": [ | ||
"readme" | ||
], | ||
"plugins": [ | ||
@@ -49,19 +63,13 @@ "gulp-format-md" | ||
"list": [ | ||
"github-short-url-regex", | ||
"is-git-url", | ||
"parse-github-short-url" | ||
"git-add-remote", | ||
"git-branch", | ||
"git-repo-name", | ||
"git-username", | ||
"is-git-url" | ||
] | ||
}, | ||
"toc": false, | ||
"lint": { | ||
"reflinks": true | ||
}, | ||
"layout": "default", | ||
"tasks": [ | ||
"readme" | ||
], | ||
"reflinks": [ | ||
"verb" | ||
] | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
26080
120