🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

node-git-server

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-git-server - npm Package Compare versions

Comparing version

to
0.6.1

@@ -0,1 +1,5 @@

# 0.6.1 (03/03/2019)
- Fixes bug with being able to overwrite git repos that a user doesn't have access to. @masasron
# 0.6.0 (03/03/2019)

@@ -2,0 +6,0 @@

@@ -146,3 +146,3 @@ const fs = require('fs');

this.dirMap = (dir) => {
return (path.normalize(dir ? path.resolve(repoDir, dir) : repoDir));
return (path.normalize(dir ? path.join(repoDir, dir) : repoDir));
};

@@ -149,0 +149,0 @@ }

{
"name": "node-git-server",
"version": "0.6.0",
"version": "0.6.1",
"description": "🎡 A configurable git server written in Node.js",

@@ -5,0 +5,0 @@ "author": "Gabriel J. Csapo <gabecsapo@gmail.com>",

@@ -132,3 +132,3 @@ # node-git-server

autoCreate: true,
authenticate: (type, repo, user, next) => {
authenticate: ({type, repo, user}, next) => {
if(type == 'push') {

@@ -135,0 +135,0 @@ user((username, password) => {