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

hg-auto-semver

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hg-auto-semver - npm Package Compare versions

Comparing version 1.1.3 to 1.2.0

5

bin/cli.js

@@ -36,7 +36,8 @@ #!/usr/bin/env node

if (branch) {
const releaseRegex = new RegExp('^release\\-', 'gim');
const fixRegex = new RegExp('^fix\\-|[^a-z]fix\\-', 'gim');
const featureRegex = new RegExp('^feature\\-|[^a-z]feature\\-', 'gim');
if (fixRegex.test(branch)) {
console.log('Branch name contains "fix-", bumping a PATCH version');
if (releaseRegex.test(branch) || fixRegex.test(branch)) {
console.log('Branch name contains "release-" or "fix-", bumping a PATCH version');
const version = bump(Version.PATCH);

@@ -43,0 +44,0 @@ publish(version);

2

package.json
{
"name": "hg-auto-semver",
"version": "1.1.3",
"version": "1.2.0",
"description": "Automatically bump versions according to hg parent branch name.",

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

Sorry, the diff of this file is not supported yet

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