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.2.0-beta.0 to 0.2.0-beta.1

13

index.js

@@ -135,4 +135,3 @@ var impromptu = require('impromptu')

update: function(done) {
var trackingBranchCommand = "git for-each-ref --format='%(upstream:short)'" +
" $(git symbolic-ref -q HEAD)"
var trackingBranchCommand = "git rev-parse --abbrev-ref --symbolic-full-name @{u}"

@@ -264,5 +263,7 @@ impromptu.exec(trackingBranchCommand, function(err, result) {

// This command *must* be passed through a formatter before its displayed
// We exclude any unstaged added files. Searching for them scans the entire repo and causes
// significant slow downs.
git.register('_status', {
update: function(done) {
impromptu.exec('git status --porcelain -z 2>/dev/null', function(err, result) {
impromptu.exec('git status -uno --porcelain -z 2>/dev/null', function(err, result) {
if (err) {

@@ -290,3 +291,3 @@ done(err, null)

git._status(function(err, statuses) {
done(err, new Statuses(statuses[type]))
done(err, statuses ? new Statuses(statuses[type]) : null)
})

@@ -301,3 +302,3 @@ }

git["_" + type](function(err, statuses) {
done(err, statuses.toString())
done(err, statuses ? statuses.toString() : '')
})

@@ -311,3 +312,3 @@ }

cache: 'repository',
expire: 60,
expire: 600,
update: function(done) {

@@ -314,0 +315,0 @@ git.isRepo(function(err, isRepo) {

{
"name": "impromptu-git",
"description": "A git module for Impromptu.",
"version": "0.2.0-beta.0",
"version": "0.2.0-beta.1",
"homepage": "http://impromptu.sh/",

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

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