Socket
Socket
Sign inDemoInstall

hosted-git-info

Package Overview
Dependencies
0
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.2 to 2.0.3

4

index.js

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

'docstemplate': 'https://{domain}/{user}/{project}{/tree/comittish}#readme',
'httpstemplate': 'https://{domain}/{user}/{project}.git{#comittish}',
'httpstemplate': 'git+https://{domain}/{user}/{project}.git{#comittish}',
'filetemplate': 'https://{domain}/{user}/{project}/raw/{comittish}/{path}',

@@ -133,3 +133,3 @@ 'shortcuttemplate': '{type}:{user}/{project}{#comittish}',

'docstemplate': 'https://{domain}/{project}{/comittish}',
'httpstemplate': 'https://{domain}/{project}.git{#comittish}',
'httpstemplate': 'git+https://{domain}/{project}.git{#comittish}',
'shortcuttemplate': '{type}:{project}{#comittish}',

@@ -136,0 +136,0 @@ 'pathtemplate': '{project}{#comittish}'

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

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

@@ -64,3 +64,3 @@ # hosted-git-info

eg, `https://github.com/npm/hosted-git-info.git`
eg, `git+https://github.com/npm/hosted-git-info.git`

@@ -67,0 +67,0 @@ * info.sshurl()

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

if (!hostinfo) return
t.is(hostinfo.https(), 'https://bitbucket.org/111/222.git' + hash, label + ' -> https')
t.is(hostinfo.https(), 'git+https://bitbucket.org/111/222.git' + hash, label + ' -> https')
t.is(hostinfo.browse(), 'https://bitbucket.org/111/222' + (branch ? '/src/' + branch : ''), label + ' -> browse')

@@ -14,0 +14,0 @@ t.is(hostinfo.docs(), 'https://bitbucket.org/111/222' + (branch ? '/src/' + branch : '') + '#readme', label + ' -> docs')

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

if (!hostinfo) return
t.is(hostinfo.https(), 'https://gist.github.com/222.git' + hash, label + ' -> https')
t.is(hostinfo.https(), 'git+https://gist.github.com/222.git' + hash, label + ' -> https')
t.is(hostinfo.git(), 'git://gist.github.com/222.git' + hash, label + ' -> git')

@@ -28,3 +28,3 @@ t.is(hostinfo.browse(), 'https://gist.github.com/222' + (branch ? '/' + branch : ''), label + ' -> browse')

if (t.ok(hostinfo, 'git@hex')) {
t.is(hostinfo.https(), 'https://gist.github.com/ef860c7z5e0de3179341.git', 'git@hex -> https')
t.is(hostinfo.https(), 'git+https://gist.github.com/ef860c7z5e0de3179341.git', 'git@hex -> https')
}

@@ -31,0 +31,0 @@ verify('git@gist.github.com:/222.git', 'git@/')

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

if (!hostinfo) return
t.is(hostinfo.https(), 'https://github.com/111/222.git' + hash, label + ' -> https')
t.is(hostinfo.https(), 'git+https://github.com/111/222.git' + hash, label + ' -> https')
t.is(hostinfo.git(), 'git://github.com/111/222.git' + hash, label + ' -> git')

@@ -14,0 +14,0 @@ t.is(hostinfo.browse(), 'https://github.com/111/222' + (branch ? '/tree/' + branch : ''), label + ' -> browse')

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

if (!hostinfo) return
t.is(hostinfo.https(), 'https://gitlab.com/111/222.git' + hash, label + ' -> https')
t.is(hostinfo.https(), 'git+https://gitlab.com/111/222.git' + hash, label + ' -> https')
t.is(hostinfo.browse(), 'https://gitlab.com/111/222' + (branch ? '/tree/' + branch : ''), label + ' -> browse')

@@ -14,0 +14,0 @@ t.is(hostinfo.docs(), 'https://gitlab.com/111/222' + (branch ? '/tree/' + branch : '') + '#README', label + ' -> docs')

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc