Socket
Socket
Sign inDemoInstall

cz-conventional-changelog

Package Overview
Dependencies
144
Maintainers
5
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.3 to 3.1.0

4

engine.js

@@ -86,3 +86,5 @@ 'format cjs';

filter: function(value) {
return value.trim().toLowerCase();
return options.disableScopeLowerCase
? value.trim()
: value.trim().toLowerCase();
}

@@ -89,0 +91,0 @@ },

@@ -21,3 +21,2 @@ var chai = require('chai');

var subject = 'testing123';
var subject2 = 'after the fall, I was gone';
var longBody =

@@ -89,2 +88,19 @@ 'a a aa a aa a aa a aa a aa a aa a aa a aa a aa a aa a aa a aa a aa a aa a' +

});
it('header and body w/ uppercase scope', function() {
var upperCaseScope = scope.toLocaleUpperCase();
expect(
commitMessage(
{
type,
scope: upperCaseScope,
subject,
body
},
{
...defaultOptions,
disableScopeLowerCase: true
}
)
).to.equal(`${type}(${upperCaseScope}): ${subject}\n\n${body}`);
});
it('header, body and issues w/ out scope', function() {

@@ -303,2 +319,5 @@ expect(

});
it('disableScopeLowerCase default', function() {
expect(questionDefault('disableScopeLowerCase')).to.be.undefined;
});
});

@@ -305,0 +324,0 @@

@@ -15,2 +15,4 @@ 'format cjs';

defaultIssues: process.env.CZ_ISSUES || config.defaultIssues,
disableScopeLowerCase:
process.env.DISABLE_SCOPE_LOWERCASE || config.disableScopeLowerCase,
maxHeaderWidth:

@@ -17,0 +19,0 @@ (process.env.CZ_MAX_HEADER_WIDTH &&

{
"name": "cz-conventional-changelog",
"version": "3.0.3",
"version": "3.1.0",
"description": "Commitizen adapter following the conventional-changelog format.",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc