Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

conventional-commits-filter

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

conventional-commits-filter - npm Package Compare versions

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",

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