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

bbpr

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bbpr - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3

11

lib/hg.js

@@ -0,4 +1,11 @@

const outputError = require('./output-error')
const shell = require('shelljs')
const repositoryUrl = shell.exec('hg path default', { silent: true }).stdout.trim()
const hgPath = shell.exec('hg path default', { silent: true })
const hgBranch = shell.exec('hg branch', { silent: true })
const repositoryUrl = hgPath.stdout.trim()
// hgBranch error message is more explicit, so we put it first
if (hgBranch.stderr) outputError(hgBranch.stderr)
if (hgPath.stderr) outputError(hgPath.stderr)
const getCurrentBranchName = (() => {

@@ -9,3 +16,3 @@ let currentBranch

return currentBranch || (() => {
return shell.exec('hg branch', { silent: true }).stdout.trim()
return hgBranch.stdout.trim()
})()

@@ -12,0 +19,0 @@ }

2

package.json

@@ -51,3 +51,3 @@ {

},
"version": "2.1.2"
"version": "2.1.3"
}
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