@commitlint/is-ignored
Advanced tools
Comparing version 8.0.0 to 8.1.0
@@ -6,2 +6,10 @@ # Change Log | ||
# [8.1.0](https://github.com/conventional-changelog/commitlint/compare/v8.0.0...v8.1.0) (2019-07-15) | ||
**Note:** Version bump only for package @commitlint/is-ignored | ||
# [7.6.0](https://github.com/conventional-changelog/commitlint/compare/v7.5.2...v7.6.0) (2019-05-06) | ||
@@ -8,0 +16,0 @@ |
@@ -1,33 +0,7 @@ | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.WILDCARDS = undefined; | ||
exports.default = isIgnored; | ||
var _semver = require('semver'); | ||
var _semver2 = _interopRequireDefault(_semver); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const WILDCARDS = exports.WILDCARDS = [c => c.match(/^((Merge pull request)|(Merge (.*?) into (.*?)|(Merge branch (.*?)))(?:\r?\n)*$)/m), c => c.match(/^(R|r)evert (.*)/), c => c.match(/^(fixup|squash)!/), c => _semver2.default.valid(c.split('\n').shift().replace(/^chore(\([^)]+\))?:/, '').trim()), c => c.match(/^Merged (.*?)(in|into) (.*)/), c => c.match(/^Merge remote-tracking branch (.*)/), c => c.match(/^Automatic merge(.*)/), c => c.match(/^Auto-merged (.*?) into (.*)/)]; | ||
function isIgnored(commit = '', opts = {}) { | ||
const ignores = typeof opts.ignores === 'undefined' ? [] : opts.ignores; | ||
if (!Array.isArray(ignores)) { | ||
throw new Error(`ignores must be of type array, received ${ignores} of type ${typeof ignores}`); | ||
} | ||
const invalids = ignores.filter(c => typeof c !== 'function'); | ||
if (invalids.length > 0) { | ||
throw new Error(`ignores must be array of type function, received items of type: ${invalids.map(i => typeof i).join(', ')}`); | ||
} | ||
const base = opts.defaults === false ? [] : WILDCARDS; | ||
return [...base, ...ignores].some(w => w(commit)); | ||
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
exports.__esModule = true; | ||
__export(require("./is-ignored")); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@commitlint/is-ignored", | ||
"version": "8.0.0", | ||
"version": "8.1.0", | ||
"description": "Lint your commit messages", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"files": [ | ||
@@ -10,28 +11,5 @@ "lib/" | ||
"scripts": { | ||
"build": "cross-env NODE_ENV=production babel src --out-dir lib --source-maps", | ||
"deps": "dep-check", | ||
"pkg": "pkg-check", | ||
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"", | ||
"test": "ava -c 4 --verbose", | ||
"watch": "babel src --out-dir lib --watch --source-maps" | ||
"pkg": "pkg-check" | ||
}, | ||
"ava": { | ||
"files": [ | ||
"src/**/*.test.js", | ||
"!lib/**/*" | ||
], | ||
"source": [ | ||
"src/**/*.js", | ||
"!lib/**/*" | ||
], | ||
"babel": "inherit", | ||
"require": [ | ||
"babel-register" | ||
] | ||
}, | ||
"babel": { | ||
"presets": [ | ||
"babel-preset-commitlint" | ||
] | ||
}, | ||
"engines": { | ||
@@ -60,16 +38,11 @@ "node": ">=4" | ||
"devDependencies": { | ||
"@commitlint/parse": "^8.0.0", | ||
"@commitlint/test": "^8.0.0", | ||
"@commitlint/utils": "^8.0.0", | ||
"ava": "0.22.0", | ||
"babel-cli": "6.26.0", | ||
"babel-preset-commitlint": "^8.0.0", | ||
"babel-register": "6.26.0", | ||
"concurrently": "3.5.1", | ||
"cross-env": "5.1.1" | ||
"@commitlint/parse": "^8.1.0", | ||
"@commitlint/test": "8.0.0", | ||
"@commitlint/utils": "^8.1.0" | ||
}, | ||
"dependencies": { | ||
"semver": "6.0.0" | ||
"@types/semver": "^6.0.1", | ||
"semver": "6.1.1" | ||
}, | ||
"gitHead": "29d1cee10ee7734a85d97ef039c4ce2da633628c" | ||
"gitHead": "c17420d67adafdf37f68d6861d29a0e85a4a3bd7" | ||
} |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
3
15
12212
2
72
1
+ Added@types/semver@^6.0.1
+ Added@types/semver@6.2.7(transitive)
+ Addedsemver@6.1.1(transitive)
- Removedsemver@6.0.0(transitive)
Updatedsemver@6.1.1