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

bithound

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bithound - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

3

bithound.js

@@ -7,3 +7,4 @@ var program = require('commander');

.option('--branch [branch]', 'An optional branch argument. If not provided, the command will attempt to discover it through an env variable')
.option('--sha [sha]', 'An optional commit sha argument. If not provided, the command will attempt to discover it through an env variable');
.option('--sha [sha]', 'An optional commit sha argument. If not provided, the command will attempt to discover it through an env variable')
.option('--timeout [minutes]', 'An optional timeout in minutes. If none is specified, 10 minutes will be used.');

@@ -10,0 +11,0 @@ program

@@ -39,5 +39,5 @@ var async = require('async');

sha = process.env.WERCKER_GIT_COMMIT;
} else if (process.env.BAMBOO_REPOSITORY_GIT_BRANCH) {
branch = process.env.BAMBOO_REPOSITORY_GIT_BRANCH;
sha = process.env.BAMBOO_REPOSITORY_REVISION_NUMBER;
} else if (process.env.bamboo_repository_git_branch) {
branch = process.env.bamboo_repository_git_branch;
sha = process.env.bamboo_repository_revision_number;
}

@@ -56,3 +56,9 @@

var stillRunning;
var timeout = (parseInt(program.timeout, 10) || 10);
setTimeout(function () {
process.stderr.write('Timed out after ' + timeout + ' minute' + (timeout > 1 ? 's.' : '.'));
return process.exit(1);
}, timeout * 60 * 1000);
if (!commit.branch) {

@@ -89,3 +95,3 @@ process.stderr.write('Branch could not be determined.');

if (res.statusCode === 403) return done(new Error('Not permitted.'));
if (res.statusCode === 404) return done(new Error('Repo not found.'));
if (res.statusCode === 404) return done(new Error('Repo or commit not found.'));
if (res.statusCode === 400) return done(new Error('Invalid request.'));

@@ -92,0 +98,0 @@

{
"name": "bithound",
"version": "1.1.0",
"version": "1.2.0",
"description": "Commands for interacting with bitHound: https://bithound.io",

@@ -5,0 +5,0 @@ "repository": {

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