Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vizion

Package Overview
Dependencies
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vizion - npm Package Compare versions

Comparing version 0.2.8 to 0.2.9

21

lib/git.js

@@ -8,2 +8,3 @@ var fs = require('fs');

var TIMEOUT = 5000;
var MAXBUFFER = 1024 * 16; // 16KB

@@ -18,3 +19,3 @@ git.parse = function(folder, cb) {

var getUrl = function(cb) {
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git config --get remote.origin.url", {timeout: TIMEOUT},
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git config --get remote.origin.url", {timeout: TIMEOUT, maxBuffer: MAXBUFFER},
function(err, stdout, stderr) {

@@ -31,3 +32,3 @@ if(err !== null)

var getMeta = function(data, cb) {
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git show --quiet --format=%H%n%aD%n%s%n%B HEAD", {timeout: TIMEOUT},
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git show --quiet --format=%H%n%aD%n%s%n%B HEAD", {timeout: TIMEOUT, maxBuffer: MAXBUFFER},
function(err, stdout, stderr) {

@@ -45,3 +46,3 @@ if(err !== null)

var getStaged = function(data, cb) {
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git status -s", {timeout: TIMEOUT},
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git status -s", {timeout: TIMEOUT, maxBuffer: MAXBUFFER},
function(err, stdout, stderr) {

@@ -56,3 +57,3 @@ if(err !== null)

var getBranch = function(data, cb) {
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git rev-parse --abbrev-ref HEAD", {timeout: TIMEOUT},
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git rev-parse --abbrev-ref HEAD", {timeout: TIMEOUT, maxBuffer: MAXBUFFER},
function(err, stdout, stderr) {

@@ -67,3 +68,3 @@ if(err !== null)

var getRemote = function(data, cb) {
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git remote", {timeout: TIMEOUT},
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git remote", {timeout: TIMEOUT, maxBuffer: MAXBUFFER},
function(err, stdout, stderr) {

@@ -81,3 +82,3 @@ if(err !== null)

var getRemoteBrancheExistence = function(data, cb) {
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git show-ref refs/remotes/"+data.remote+"/"+data.branch, {timeout: TIMEOUT},
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git show-ref refs/remotes/"+data.remote+"/"+data.branch, {timeout: TIMEOUT, maxBuffer: MAXBUFFER},
function(err, stdout, stderr) {

@@ -99,4 +100,4 @@ if (err)

exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git log "+ prefix + data.branch +" --pretty=oneline -n 200",
{timeout: TIMEOUT},
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git log "+ prefix + data.branch +" --pretty=oneline -n 100",
{timeout: TIMEOUT, maxBuffer: MAXBUFFER},
function(err, stdout, stderr) {

@@ -157,3 +158,3 @@ if(err !== null)

exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git remote update >> /dev/null 2>&1; git log "+ prefix+data.branch+
" --pretty=oneline -n 1", {timeout: 60000},
" --pretty=oneline -n 1", {timeout: 60000, maxBuffer: MAXBUFFER},
function(err, stdout, stderr) {

@@ -181,3 +182,3 @@ var res = {};

ret.success = true;
exec(command, {timeout: TIMEOUT},
exec(command, {timeout: TIMEOUT, maxBuffer: MAXBUFFER},
function(err, stdout, stderr) {

@@ -184,0 +185,0 @@ ret.output += stdout;

{
"name": "vizion",
"version": "0.2.8",
"version": "0.2.9",
"engines": {

@@ -5,0 +5,0 @@ "node": ">=0.10"

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