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

git-tag-version

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-tag-version - npm Package Compare versions

Comparing version 1.3.1 to 1.4.0

2

package.json
{
"name": "git-tag-version",
"description": "Calculate project version from git tags.",
"version": "1.3.1",
"version": "1.4.0",
"homepage": "https://github.com/bushee/git-tag-version",

@@ -6,0 +6,0 @@ "author": {

@@ -78,3 +78,3 @@ /*

branchNameTrimmed = cp.execSync(getBranchName, {cwd: '.'}).toString().trim().replace(/[^0-9A-Za-z-]/g, '-');
if (branchNameTrimmed === 'master') {
if (branchNameTrimmed === 'master' || branchNameTrimmed === 'main') {
return versionPrefix + getSnapshotSuffix();

@@ -81,0 +81,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