@commitlint/message
Advanced tools
Comparing version 6.1.3 to 7.0.0
@@ -9,5 +9,3 @@ 'use strict'; | ||
function message() { | ||
var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; | ||
function message(input = []) { | ||
return input.filter(Boolean).join(' '); | ||
@@ -14,0 +12,0 @@ } |
@@ -13,13 +13,13 @@ 'use strict'; | ||
(0, _ava2.default)('should return an empty string for empty input', function (t) { | ||
(0, _ava2.default)('should return an empty string for empty input', t => { | ||
t.deepEqual((0, _2.default)(), ''); | ||
}); | ||
(0, _ava2.default)('should return an empty string for empty input array', function (t) { | ||
(0, _ava2.default)('should return an empty string for empty input array', t => { | ||
t.deepEqual((0, _2.default)([]), ''); | ||
}); | ||
(0, _ava2.default)('should filter falsy values', function (t) { | ||
(0, _ava2.default)('should filter falsy values', t => { | ||
t.deepEqual((0, _2.default)([null, 'some', null, 'message', null]), 'some message'); | ||
}); | ||
//# sourceMappingURL=index.test.js.map |
{ | ||
"name": "@commitlint/message", | ||
"version": "6.1.3", | ||
"version": "7.0.0", | ||
"description": "Lint your commit messages", | ||
@@ -62,7 +62,7 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@commitlint/test": "^6.1.3", | ||
"@commitlint/utils": "^6.1.3", | ||
"@commitlint/test": "^7.0.0", | ||
"@commitlint/utils": "^7.0.0", | ||
"ava": "0.22.0", | ||
"babel-cli": "6.26.0", | ||
"babel-preset-commitlint": "^6.1.3", | ||
"babel-preset-commitlint": "^7.0.0", | ||
"babel-register": "6.26.0", | ||
@@ -69,0 +69,0 @@ "concurrently": "3.5.1", |
Sorry, the diff of this file is not supported yet
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
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
4999
24