Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hosted-git-info

Package Overview
Dependencies
Maintainers
3
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hosted-git-info - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

4

index.js

@@ -32,3 +32,3 @@ 'use strict'

var parsed = parseGitUrl(url)
var shortcutMatch = url.match(new RegExp('^([^:]+):([^/]+)[/](.+)$'))
var shortcutMatch = url.match(new RegExp('^([^:]+):(?:(?:[^@:]+(?:[^@]+)?@)?([^/]*))[/](.+?)(?:[.]git)?($|#)'))
var matches = Object.keys(gitHosts).map(function (gitHostName) {

@@ -46,3 +46,3 @@ try {

if (shortcutMatch && shortcutMatch[1] === gitHostName) {
user = decodeURIComponent(shortcutMatch[2])
user = shortcutMatch[2] && decodeURIComponent(shortcutMatch[2])
project = decodeURIComponent(shortcutMatch[3])

@@ -49,0 +49,0 @@ defaultRepresentation = 'shortcut'

{
"name": "hosted-git-info",
"version": "2.3.0",
"version": "2.3.1",
"description": "Provides metadata and conversions from repository urls for Github, Bitbucket and Gitlab",

@@ -5,0 +5,0 @@ "main": "index.js",

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