@commitlint/format
Advanced tools
Comparing version 7.2.1 to 7.3.0
@@ -6,2 +6,14 @@ # Change Log | ||
<a name="7.3.0"></a> | ||
# [7.3.0](https://github.com/marionebl/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11) | ||
### Bug Fixes | ||
* **format:** add new line to result ([#518](https://github.com/marionebl/commitlint/issues/518)) ([f1d443b](https://github.com/marionebl/commitlint/commit/f1d443b)), closes [#504](https://github.com/marionebl/commitlint/issues/504) | ||
* update to security-patched dependency versions ([97c033b](https://github.com/marionebl/commitlint/commit/97c033b)) | ||
<a name="7.2.1"></a> | ||
@@ -8,0 +20,0 @@ ## [7.2.1](https://github.com/marionebl/commitlint/compare/v7.2.0...v7.2.1) (2018-10-11) |
@@ -77,3 +77,3 @@ 'use strict'; | ||
const decoration = enabled ? _chalk2.default[color](sign) : sign; | ||
const summary = `${decoration} found ${errors.length} problems, ${warnings.length} warnings`; | ||
const summary = `${decoration} found ${errors.length} problems, ${warnings.length} warnings \n (Need help? -> https://github.com/marionebl/commitlint#what-is-commitlint)\n\n`; | ||
return [...problems, enabled ? _chalk2.default.bold(summary) : summary]; | ||
@@ -80,0 +80,0 @@ } |
@@ -11,6 +11,4 @@ 'use strict'; | ||
var _lodash = require('lodash.includes'); | ||
var _lodash = require('lodash'); | ||
var _lodash2 = _interopRequireDefault(_lodash); | ||
var _ = require('.'); | ||
@@ -22,3 +20,3 @@ | ||
const ok = _chalk2.default.bold(`${_chalk2.default.green('✔')} found 0 problems, 0 warnings`); | ||
const ok = _chalk2.default.bold(`${_chalk2.default.green('✔')} found 0 problems, 0 warnings \n (Need help? -> https://github.com/marionebl/commitlint#what-is-commitlint)\n\n`); | ||
@@ -72,6 +70,6 @@ (0, _ava2.default)('does nothing without arguments', t => { | ||
t.true((0, _lodash2.default)(actualError, 'There was an error')); | ||
t.true((0, _lodash2.default)(actualError, '1 problems, 0 warnings')); | ||
t.true((0, _lodash2.default)(actualWarning, 'There was a problem')); | ||
t.true((0, _lodash2.default)(actualWarning, '0 problems, 1 warnings')); | ||
t.true((0, _lodash.includes)(actualError, 'There was an error')); | ||
t.true((0, _lodash.includes)(actualError, '1 problems, 0 warnings')); | ||
t.true((0, _lodash.includes)(actualWarning, 'There was a problem')); | ||
t.true((0, _lodash.includes)(actualWarning, '0 problems, 1 warnings')); | ||
}); | ||
@@ -100,4 +98,4 @@ | ||
t.true((0, _lodash2.default)(actualError, '✖')); | ||
t.true((0, _lodash2.default)(actualWarning, '⚠')); | ||
t.true((0, _lodash.includes)(actualError, '✖')); | ||
t.true((0, _lodash.includes)(actualWarning, '⚠')); | ||
}); | ||
@@ -127,5 +125,5 @@ | ||
t.true((0, _lodash2.default)(actualError, 'ERR')); | ||
t.true((0, _lodash2.default)(actualWarning, 'WRN')); | ||
t.true((0, _lodash.includes)(actualError, 'ERR')); | ||
t.true((0, _lodash.includes)(actualWarning, 'WRN')); | ||
}); | ||
//# sourceMappingURL=index.test.js.map |
{ | ||
"name": "@commitlint/format", | ||
"version": "7.2.1", | ||
"version": "7.3.0", | ||
"description": "Format commitlint reports", | ||
@@ -62,11 +62,11 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@commitlint/test": "^7.1.2", | ||
"@commitlint/utils": "^7.1.2", | ||
"@commitlint/test": "^7.3.0", | ||
"@commitlint/utils": "^7.3.0", | ||
"ava": "0.22.0", | ||
"babel-cli": "6.26.0", | ||
"babel-preset-commitlint": "^7.1.2", | ||
"babel-preset-commitlint": "^7.3.0", | ||
"babel-register": "6.26.0", | ||
"concurrently": "3.5.1", | ||
"cross-env": "5.1.1", | ||
"lodash.includes": "4.3.0", | ||
"lodash": "4.17.11", | ||
"rimraf": "2.6.1", | ||
@@ -73,0 +73,0 @@ "xo": "0.20.3" |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
22634
172
1