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.4.2 to 1.5.0

4

index.js

@@ -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)

2

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

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