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 2.0.0 to 2.1.0

1

dist/gh.js

@@ -54,2 +54,3 @@ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.gh=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){

obj.tarball_url = util.format('https://api.github.com/repos/%s/%s/tarball/%s', obj.user, obj.repo, obj.branch)
obj.clone_url = util.format('https://github.com/%s/%s', obj.user, obj.repo)

@@ -56,0 +57,0 @@ if (obj.branch === 'master') {

@@ -53,2 +53,3 @@ 'use strict'

obj.tarball_url = util.format('https://api.github.com/repos/%s/%s/tarball/%s', obj.user, obj.repo, obj.branch)
obj.clone_url = util.format('https://github.com/%s/%s', obj.user, obj.repo)

@@ -55,0 +56,0 @@ if (obj.branch === 'master') {

4

package.json
{
"name": "github-url-to-object",
"version": "2.0.0",
"version": "2.1.0",
"description": "Extract user, repo, and other interesting properties from GitHub URLs",
"main": "index.js",
"scripts": {
"test": "standard --format && mocha",
"test": "standard --format index.js && mocha",
"build": "browserify index.js --standalone gh > dist/gh.js"

@@ -9,0 +9,0 @@ },

@@ -48,4 +48,5 @@ # 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)

branch: 'master',
tarball_url: 'https://api.github.com/repos/monkey/business/tarball/master',
clone_url: 'https://github.com/monkey/business',
https_url: 'https://github.com/monkey/business',
tarball_url: 'https://api.github.com/repos/monkey/business/tarball'
travis_url: 'https://travis-ci.org/monkey/business',

@@ -67,3 +68,4 @@ api_url: 'https://api.github.com/repos/monkey/business'

tarball_url: 'https://api.github.com/repos/monkey/business/tarball/nachos',
travis_url: 'https://travis-ci.org/monkey/business',
clone_url: 'https://github.com/monkey/business',
travis_url: 'https://travis-ci.org/monkey/business?branch=nachos',
api_url: 'https://api.github.com/repos/monkey/business'

@@ -70,0 +72,0 @@ zip_url: 'https://github.com/monkey/business/archive/nachos.zip'

@@ -197,2 +197,6 @@ /* globals before, describe, it */

it('applies to clone_url', function () {
assert.equal(obj.clone_url, 'https://github.com/zeke/ord')
})
it("doesn't apply to api_url", function () {

@@ -199,0 +203,0 @@ assert.equal(obj.api_url, 'https://api.github.com/repos/zeke/ord')

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