New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

impromptu-git

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

impromptu-git - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

37

index.js

@@ -1,7 +0,12 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.6.2
(function() {
var getStatuses;
var fs, getStatuses, path;
fs = require('fs');
path = require('path');
getStatuses = function(porcelainStatus) {
var PORCELAIN;
PORCELAIN = {

@@ -16,2 +21,3 @@ staged: /^[^\?\s]/,

var prop, regex, status;
status = line.substring(0, 2);

@@ -22,2 +28,3 @@ return {

var _results;
_results = [];

@@ -38,5 +45,7 @@ for (prop in PORCELAIN) {

var Statuses;
register('isRepo', {
update: function(done) {
var command;
command = '([ -d .git ] || [[ "true" == `git rev-parse --is-inside-work-tree 2>&1` ]])';

@@ -51,2 +60,3 @@ return Impromptu.exec(command, function(err) {

var command;
command = 'git rev-parse --show-toplevel 2>/dev/null';

@@ -65,2 +75,3 @@ return Impromptu.exec(command, function(err, result) {

var command;
command = 'git rev-parse --abbrev-ref HEAD 2>/dev/null';

@@ -102,2 +113,3 @@ return Impromptu.exec(command, function(err, result) {

var tracking_branch_command;
tracking_branch_command = "git for-each-ref --format='%(upstream:short)' $(git symbolic-ref -q HEAD)";

@@ -117,2 +129,3 @@ return Impromptu.exec(tracking_branch_command, function(err, result) {

var command;
if (!remoteBranch) {

@@ -124,2 +137,3 @@ return done(err, null);

var data;
if (err) {

@@ -156,2 +170,3 @@ return done(err, null);

var formatter, properties, property, status, _i, _j, _k, _len, _len1, _len2, _ref, _ref1;
this.statuses = statuses;

@@ -184,2 +199,3 @@ properties = ['added', 'modified', 'deleted', 'staged', 'unstaged'];

var results;
results = [];

@@ -229,2 +245,3 @@ if (this.modified.length) {

var statuses;
if (err) {

@@ -270,6 +287,14 @@ return done(err, null);

update: function(done) {
var command;
command = 'git stash list | wc -l';
return Impromptu.exec(command, function(err, count) {
return done(err, parseInt(count.trim(), 10));
return git.root(function(err, root) {
if (err) {
return done(err);
}
return fs.exists(path.join(root, '.git/logs/refs/stash'), function(exists) {
if (!exists) {
return done(null, 0);
}
return Impromptu.exec("wc -l " + (path.join(root, '.git/logs/refs/stash')), function(err, count) {
return done(err, parseInt(count.trim(), 10));
});
});
});

@@ -276,0 +301,0 @@ }

2

package.json
{
"name": "impromptu-git",
"description": "A git module for Impromptu.",
"version": "0.1.7",
"version": "0.1.8",
"homepage": "http://impromptu.sh/",

@@ -6,0 +6,0 @@ "author": "Impromptu Team (http://impromptu.sh/)",

Sorry, the diff of this file is not supported yet

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