Socket
Socket
Sign inDemoInstall

github-url-to-object

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-url-to-object - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

2

index.js

@@ -58,3 +58,5 @@ "use strict"

obj.api_url = util.format("https://api.github.com/repos/%s/%s", obj.user, obj.repo)
return obj
}

2

package.json
{
"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")

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc