hosted-git-info
Advanced tools
Comparing version 2.6.0 to 2.6.1
'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 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2
298
17127
6