github-url-to-object
Advanced tools
Comparing version 1.4.2 to 1.5.0
@@ -29,2 +29,6 @@ "use strict" | ||
} else { | ||
// Turn git+http URLs into http URLs | ||
repo_url = repo_url.replace(/^git\+/, "") | ||
if (!isUrl(repo_url)) return null | ||
@@ -31,0 +35,0 @@ var parsedURL = url.parse(repo_url) |
{ | ||
"name": "github-url-to-object", | ||
"version": "1.4.2", | ||
"version": "1.5.0", | ||
"description": "Extract user, repo, and other interesting properties from GitHub URLs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -38,2 +38,3 @@ # github-url-to-object [![Build Status](https://travis-ci.org/zeke/github-url-to-object.png?branch=master)](https://travis-ci.org/zeke/github-url-to-object) | ||
gh('git://github.com/monkey/business.git') | ||
gh('git+https://github.com/monkey/business.git') | ||
``` | ||
@@ -40,0 +41,0 @@ |
@@ -73,2 +73,8 @@ var mocha = require("mocha") | ||
it("supports git+https:// URLs", function() { | ||
var obj = gh("git+https://github.com/foo/bar.git") | ||
assert.equal(obj.user, 'foo') | ||
assert.equal(obj.repo, 'bar') | ||
}) | ||
it("supports git:// URLs", function() { | ||
@@ -75,0 +81,0 @@ var obj = gh("git://github.com/foo/bar.git") |
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
14370
242
82
0