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

git-conventional-commits

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-conventional-commits - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

11

lib/git.js

@@ -21,3 +21,3 @@ const execAsync = require('./execAsync');

// return undefined if no tag was found
if (err.exitCode === 128) {
if (err.code === 128) {
return;

@@ -35,3 +35,10 @@ }

const gitLog = await execAsync(`git log --reverse --format=${gitLogFormat} ${from ? `${from}..` : ''}${to}`, {encoding: 'UTF-8'})
.then(result => result.split(LOG_COMMIT_DELIMITER + '\n').slice(0, -1));
.then(result => result.split(LOG_COMMIT_DELIMITER + '\n').slice(0, -1))
.catch(err => {
// return empty log if no commits available
if (err.code === 128) {
return [];
}
throw err;
});

@@ -38,0 +45,0 @@ return gitLog.map(commit => commit.split(LOG_FIELD_SEPARATOR))

2

lib/gitCommitConvention.js

@@ -23,3 +23,3 @@ const Git = require("./git");

major: 0,
minor: 0,
minor: 1,
patch: 0

@@ -26,0 +26,0 @@ };

{
"name": "git-conventional-commits",
"version": "2.1.0",
"version": "2.1.1",
"description": "git conventional commits util",

@@ -5,0 +5,0 @@ "licence": "GPLv3",

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