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.1.5 to 2.2.0

12

git-host-info.js

@@ -12,3 +12,4 @@ 'use strict'

'bugstemplate': 'https://{domain}/{user}/{project}/issues',
'gittemplate': 'git://{auth@}{domain}/{user}/{project}.git{#committish}'
'gittemplate': 'git://{auth@}{domain}/{user}/{project}.git{#committish}',
'tarballtemplate': 'https://{domain}/{user}/{project}/archive/{committish}.tar.gz'
},

@@ -18,3 +19,4 @@ bitbucket: {

'domain': 'bitbucket.org',
'treepath': 'src'
'treepath': 'src',
'tarballtemplate': 'https://{domain}/{user}/{project}/get/{committish}.tar.gz'
},

@@ -26,3 +28,4 @@ gitlab: {

'docstemplate': 'https://{domain}/{user}/{project}{/tree/committish}#README',
'bugstemplate': 'https://{domain}/{user}/{project}/issues'
'bugstemplate': 'https://{domain}/{user}/{project}/issues',
'tarballtemplate': 'https://{domain}/{user}/{project}/repository/archive.tar.gz?ref={committish}'
},

@@ -42,3 +45,4 @@ gist: {

'shortcuttemplate': '{type}:{project}{#committish}',
'pathtemplate': '{project}{#committish}'
'pathtemplate': '{project}{#committish}',
'tarballtemplate': 'https://{domain}/{user}/{project}/archive/{committish}.tar.gz'
}

@@ -45,0 +49,0 @@ }

@@ -84,2 +84,6 @@ 'use strict'

GitHost.prototype.tarball = function () {
return this._fill(this.tarballtemplate)
}
GitHost.prototype.file = function (P) {

@@ -86,0 +90,0 @@ return this._fill(this.filetemplate, {

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

@@ -23,8 +23,8 @@ "main": "index.js",

"scripts": {
"test": "standard && tap test/*.js"
"test": "standard && tap -j8 test/*.js"
},
"devDependencies": {
"standard": "^3.3.2",
"tap": "^0.4.13"
"tap": "^10.0.2"
}
}

@@ -78,2 +78,6 @@ # hosted-git-info

* info.tarball()
eg, `https://github.com/npm/hosted-git-info/archive/v1.2.0.tar.gz`
* info.getDefaultRepresentation()

@@ -80,0 +84,0 @@

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