Socket
Socket
Sign inDemoInstall

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.6.0 to 2.6.1

9

git-host.js
'use strict'
var gitHosts = require('./git-host-info.js')
var extend = Object.assign || require('util')._extend

@@ -25,5 +26,5 @@ var GitHost = module.exports = function (type, user, auth, project, committish, defaultRepresentation, opts) {

if (!template) return
var vars = Object.assign({}, opts)
var vars = extend({}, opts)
vars.path = vars.path ? vars.path.replace(/^[/]+/g, '') : ''
opts = Object.assign({}, this.opts, opts)
opts = extend(extend({}, this.opts), opts)
var self = this

@@ -83,3 +84,3 @@ Object.keys(this).forEach(function (key) {

}
return this._fill(this.browsefiletemplate, Object.assign({
return this._fill(this.browsefiletemplate, extend({
fragment: F,

@@ -122,3 +123,3 @@ path: P

GitHost.prototype.file = function (P, opts) {
return this._fill(this.filetemplate, Object.assign({ path: P }, opts))
return this._fill(this.filetemplate, extend({ path: P }, opts))
}

@@ -125,0 +126,0 @@

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

@@ -16,5 +16,2 @@ "main": "index.js",

],
"engines": {
"node": ">=4"
},
"author": "Rebecca Turner <me@re-becca.org> (http://re-becca.org)",

@@ -27,11 +24,6 @@ "license": "ISC",

"scripts": {
"prerelease": "npm t",
"postrelease": "npm publish && git push --follow-tags",
"pretest": "standard",
"release": "standard-version -s",
"test": "tap -J --nyc-arg=--all --coverage test"
"test": "standard && tap -J --coverage test/*.js"
},
"devDependencies": {
"standard": "^9.0.2",
"standard-version": "^4.3.0",
"tap": "^10.3.0"

@@ -38,0 +30,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