github-url-to-object
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -58,3 +58,5 @@ "use strict" | ||
obj.api_url = util.format("https://api.github.com/repos/%s/%s", obj.user, obj.repo) | ||
return obj | ||
} |
{ | ||
"name": "github-url-to-object", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Extract user, repo, and other interesting properties from GitHub URLs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -50,2 +50,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) | ||
travis_url: 'https://travis-ci.org/monkey/business', | ||
api_url: 'https://api.github.com/repos/monkey/business' | ||
} | ||
@@ -63,4 +64,5 @@ ``` | ||
https_url: 'https://github.com/monkey/business/tree/nachos', | ||
tarball_url: 'https://api.github.com/repos/monkey/business/tarball/nachos' | ||
tarball_url: 'https://api.github.com/repos/monkey/business/tarball/nachos', | ||
travis_url: 'https://travis-ci.org/monkey/business', | ||
api_url: 'https://api.github.com/repos/monkey/business' | ||
} | ||
@@ -67,0 +69,0 @@ ``` |
@@ -152,2 +152,6 @@ var mocha = require("mocha") | ||
it("api_url", function() { | ||
assert.equal(obj.api_url, "https://api.github.com/repos/zeke/ord") | ||
}) | ||
it("https_url", function() { | ||
@@ -179,2 +183,6 @@ assert.equal(obj.https_url, "https://github.com/zeke/ord") | ||
it("doesn't apply to api_url", function() { | ||
assert.equal(obj.api_url, "https://api.github.com/repos/zeke/ord") | ||
}) | ||
it("applies to travis_url", function() { | ||
@@ -181,0 +189,0 @@ assert.equal(obj.travis_url, "https://travis-ci.org/zeke/ord?branch=experiment") |
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
76844
2114
81