conventional-commits-filter
Advanced tools
Comparing version 2.0.6 to 2.0.7
@@ -6,2 +6,10 @@ # Change Log | ||
## [2.0.7](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-commits-filter@2.0.6...conventional-commits-filter@2.0.7) (2020-11-05) | ||
**Note:** Version bump only for package conventional-commits-filter | ||
## [2.0.6](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-commits-filter@2.0.2...conventional-commits-filter@2.0.6) (2020-05-08) | ||
@@ -8,0 +16,0 @@ |
14
index.js
'use strict' | ||
var isMatch = require('lodash.ismatch') | ||
var modifyValues = require('modify-values') | ||
const isMatch = require('lodash.ismatch') | ||
const modifyValues = require('modify-values') | ||
@@ -19,5 +19,5 @@ function modifyValue (val) { | ||
var ret = [] | ||
var ignores = [] | ||
var remove = [] | ||
let ret = [] | ||
const ignores = [] | ||
const remove = [] | ||
commits.forEach(function (commit) { | ||
@@ -33,3 +33,3 @@ if (commit.revert) { | ||
ret = ret.filter(function (commit) { | ||
var ignoreThis = false | ||
let ignoreThis = false | ||
@@ -39,3 +39,3 @@ commit = commit.raw ? modifyValues(commit.raw, modifyValue) : modifyValues(commit, modifyValue) | ||
ignores.some(function (ignoreCommit) { | ||
var ignore = modifyValues(ignoreCommit.revert, modifyValue) | ||
const ignore = modifyValues(ignoreCommit.revert, modifyValue) | ||
@@ -42,0 +42,0 @@ ignoreThis = isMatch(commit, ignore) |
{ | ||
"name": "conventional-commits-filter", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"description": "Filter out reverted commits parsed by conventional-commits-parser", | ||
@@ -38,3 +38,3 @@ "bugs": { | ||
"license": "MIT", | ||
"gitHead": "83643c5a0d2c4d7c9ba14cbf990ffbc577a51e8c" | ||
"gitHead": "cc567b98facf71315f4b1620d81ce01d155efaca" | ||
} |
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
11933