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

happy-conventional-commit

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

happy-conventional-commit - npm Package Compare versions

Comparing version 0.0.17 to 0.0.18

.eslintignore

11

lib/ConventionalCommitVersion.js

@@ -40,4 +40,4 @@ "use strict";

const parts = commit.trim().split(':');
if (parts.length === 1 && !commit.startsWith('Merge ')) {
if (parts[0]) {
if (parts.length === 1) {
if (parts[0] && !commit.startsWith('Merge ')) {
change.patch = true;

@@ -47,3 +47,3 @@ }

else {
const type = parts[0];
const type = parts[0].split('[')[0];
switch (type) {

@@ -59,2 +59,7 @@ case 'BREAKING CHANGE':

break;
case 'chore':
break;
default:
change.patch = true;
break;
}

@@ -61,0 +66,0 @@ }

{
"name": "happy-conventional-commit",
"description": "Tools for getting a happy conventional commit setup.",
"version": "0.0.17",
"version": "0.0.18",
"author": "David Ortner",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -40,8 +40,8 @@ import ChildProcess from 'child_process';

const parts = commit.trim().split(':');
if (parts.length === 1 && !commit.startsWith('Merge ')) {
if (parts[0]) {
if (parts.length === 1) {
if (parts[0] && !commit.startsWith('Merge ')) {
change.patch = true;
}
} else {
const type = parts[0];
const type = parts[0].split('[')[0];
switch (type) {

@@ -57,2 +57,7 @@ case 'BREAKING CHANGE':

break;
case 'chore':
break;
default:
change.patch = true;
break;
}

@@ -59,0 +64,0 @@ }

Sorry, the diff of this file is not supported yet

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