conventional-commits-filter
Advanced tools
Comparing version 0.1.0 to 0.1.1
26
index.js
@@ -5,2 +5,10 @@ 'use strict'; | ||
function modifyValue(val) { | ||
if (typeof val === 'string') { | ||
return val.trim(); | ||
} | ||
return val; | ||
} | ||
function conventionalCommitsFilter (commits) { | ||
@@ -24,20 +32,8 @@ if (!Array.isArray(commits)) { | ||
var raw = modifyValues(commit.raw, function (val) { | ||
if (typeof val === 'string') { | ||
return val.trim(); | ||
} | ||
commit = commit.raw ? modifyValues(commit.raw, modifyValue) : modifyValues(commit, modifyValue); | ||
return val; | ||
}); | ||
ignores.some(function (ignore) { | ||
ignore = modifyValues(ignore, function (val) { | ||
if (typeof val === 'string') { | ||
return val.trim(); | ||
} | ||
ignore = modifyValues(ignore, modifyValue); | ||
return val; | ||
}); | ||
ignoreThis = isSubset(raw, ignore); | ||
ignoreThis = isSubset(commit, ignore); | ||
return ignoreThis; | ||
@@ -44,0 +40,0 @@ }); |
{ | ||
"name": "conventional-commits-filter", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Filter out reverted commits parsed by conventional-commits-parser", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/stevemao/conventional-commits-filter", |
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
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
7487
35