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

extension-tools

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extension-tools - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

2

package.json
{
"name": "extension-tools",
"version": "0.4.1",
"version": "0.4.2",
"description": "A collection of tools for automated publishing of browser extensions",

@@ -5,0 +5,0 @@ "main": "exec.js",

@@ -38,2 +38,4 @@ var child_process = require('child_process');

module.exports = exec;
module.exports.CommandError = CommandError;

@@ -15,5 +15,14 @@ #!/usr/bin/env node

/// Returns the name of the currently checked-out Git branch or null
/// if HEAD is not a Git branch.
function gitBranch() {
return exec('git', 'symbolic-ref', '--short', 'HEAD').then(function(result) {
return exec('git', 'symbolic-ref', '--short', '--quiet', 'HEAD').then(function(result) {
return result[0].trim();
}).catch(function(err) {
if (err instanceof exec.CommandError && err.status == 1) {
// detached HEAD, return null to represent an unknown branch
return null;
} else {
throw err;
}
});

@@ -20,0 +29,0 @@ }

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