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.6.2 to 2.6.3

5

lib/changelogGenerator.js

@@ -230,4 +230,5 @@ module.exports = function (config) {

if (config.commitRangeUrl) {
const commitRangeUrl = config.commitRangeUrl.replace("%from%", formCommitHash).replace("%to%",
toCommitHash);
const commitRangeUrl = config.commitRangeUrl
.replace("%from%", formCommitHash)
.replace("%to%", toCommitHash);
return markdownLink(`${formCommitHash.substring(0, 7)}...${toCommitHash.substring(0, 7)}`, commitRangeUrl);

@@ -234,0 +235,0 @@ }

2

lib/git.js

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

async function getCommitLog(from, to = 'HEAD') {
const gitLogFormat = ["%h", "%aI", "%s", "%b"].join(LOG_FIELD_SEPARATOR) + LOG_COMMIT_DELIMITER;
const gitLogFormat = ["%H", "%aI", "%s", "%b"].join(LOG_FIELD_SEPARATOR) + LOG_COMMIT_DELIMITER;
const gitLog = await execAsync(`git log --reverse --format=${gitLogFormat} ${from ? `${from}..` : ''}${to}`, {encoding: 'UTF-8'})

@@ -35,0 +35,0 @@ .then(result => result.split(LOG_COMMIT_DELIMITER + '\n').slice(0, -1))

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

} else {
console.warn(`[WARN] ${commit.hash ? `${commit.hash} - ` : ''}Invalid commit subject format: '${commit.subject}'`);
console.warn(`[WARN] ${commit.hash ? `${commit.hash.substring(0, 7)} - ` : ''}Invalid commit subject format: '${commit.subject}'`);
return conventionalSubject;

@@ -108,0 +108,0 @@ }

{
"name": "git-conventional-commits",
"version": "2.6.2",
"version": "2.6.3",
"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