cz-conventional-changelog
Advanced tools
Comparing version 3.0.3 to 3.1.0
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28859
798
13