@commitlint/load
Advanced tools
Comparing version 7.2.1 to 7.3.1
@@ -6,2 +6,26 @@ # Change Log | ||
<a name="7.3.1"></a> | ||
## [7.3.1](https://github.com/marionebl/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11) | ||
**Note:** Version bump only for package @commitlint/load | ||
<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 | ||
* update to security-patched dependency versions ([97c033b](https://github.com/marionebl/commitlint/commit/97c033b)) | ||
### Features | ||
* check stage before entering prompt ([#495](https://github.com/marionebl/commitlint/issues/495)) ([3b3667a](https://github.com/marionebl/commitlint/commit/3b3667a)), closes [#51](https://github.com/marionebl/commitlint/issues/51) [#51](https://github.com/marionebl/commitlint/issues/51) | ||
<a name="7.2.1"></a> | ||
@@ -8,0 +32,0 @@ ## [7.2.1](https://github.com/marionebl/commitlint/compare/v7.2.0...v7.2.1) (2018-10-11) |
@@ -27,18 +27,4 @@ 'use strict'; | ||
var _lodash = require('lodash.topairs'); | ||
var _lodash = require('lodash'); | ||
var _lodash2 = _interopRequireDefault(_lodash); | ||
var _lodash3 = require('lodash.merge'); | ||
var _lodash4 = _interopRequireDefault(_lodash3); | ||
var _lodash5 = require('lodash.mergewith'); | ||
var _lodash6 = _interopRequireDefault(_lodash5); | ||
var _lodash7 = require('lodash.pick'); | ||
var _lodash8 = _interopRequireDefault(_lodash7); | ||
var _resolveFrom = require('resolve-from'); | ||
@@ -51,3 +37,3 @@ | ||
const w = (a, b) => Array.isArray(b) ? b : undefined; | ||
const valid = input => (0, _lodash8.default)(input, 'extends', 'rules', 'parserPreset', 'formatter'); | ||
const valid = input => (0, _lodash.pick)(input, 'extends', 'rules', 'parserPreset', 'formatter'); | ||
@@ -60,4 +46,4 @@ exports.default = (seed = {}, options = { cwd: process.cwd() }) => new Promise(function ($return, $error) { | ||
base = loaded.filepath ? _path2.default.dirname(loaded.filepath) : options.cwd; | ||
config = valid((0, _lodash4.default)(loaded.config, seed)); | ||
opts = (0, _lodash4.default)({ extends: [], rules: {}, formatter: '@commitlint/format' }, (0, _lodash8.default)(config, 'extends')); | ||
config = valid((0, _lodash.merge)(loaded.config, seed)); | ||
opts = (0, _lodash.merge)({ extends: [], rules: {}, formatter: '@commitlint/format' }, (0, _lodash.pick)(config, 'extends')); | ||
@@ -91,3 +77,3 @@ | ||
}); | ||
preset = valid((0, _lodash6.default)(extended, config, w)); | ||
preset = valid((0, _lodash.mergeWith)(extended, config, w)); | ||
@@ -119,3 +105,3 @@ // Await parser-preset if applicable | ||
key = _item[0], value = _item[1]; | ||
return Promise.resolve(Promise.all((0, _lodash2.default)(value || {}).map(entry => (0, _executeRule2.default)(entry)))).then(function ($await_6) { | ||
return Promise.resolve(Promise.all((0, _lodash.toPairs)(value || {}).map(entry => (0, _executeRule2.default)(entry)))).then(function ($await_6) { | ||
try { | ||
@@ -122,0 +108,0 @@ executedValue = $await_6; |
{ | ||
"name": "@commitlint/load", | ||
"version": "7.2.1", | ||
"version": "7.3.1", | ||
"description": "Load shared commitlint configuration", | ||
@@ -62,7 +62,7 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@commitlint/test": "^7.1.2", | ||
"@commitlint/utils": "^7.1.2", | ||
"@commitlint/test": "^7.3.1", | ||
"@commitlint/utils": "^7.3.1", | ||
"ava": "0.22.0", | ||
"babel-cli": "6.26.0", | ||
"babel-preset-commitlint": "^7.1.2", | ||
"babel-preset-commitlint": "^7.3.1", | ||
"babel-register": "6.26.0", | ||
@@ -77,12 +77,9 @@ "concurrently": "3.5.1", | ||
"dependencies": { | ||
"@commitlint/execute-rule": "^7.1.2", | ||
"@commitlint/resolve-extends": "^7.1.2", | ||
"@commitlint/execute-rule": "^7.3.1", | ||
"@commitlint/resolve-extends": "^7.3.1", | ||
"babel-runtime": "^6.23.0", | ||
"cosmiconfig": "^4.0.0", | ||
"lodash.merge": "4.6.1", | ||
"lodash.mergewith": "4.6.1", | ||
"lodash.pick": "4.4.0", | ||
"lodash.topairs": "4.3.0", | ||
"resolve-from": "4.0.0" | ||
"lodash": "4.17.11", | ||
"resolve-from": "^4.0.0" | ||
} | ||
} |
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
51491
6
728
1
+ Addedlodash@4.17.11
- Removedlodash.merge@4.6.1
- Removedlodash.mergewith@4.6.1
- Removedlodash.pick@4.4.0
- Removedlodash.topairs@4.3.0
- Removedlodash.merge@4.6.1(transitive)
- Removedlodash.mergewith@4.6.1(transitive)
- Removedlodash.pick@4.4.0(transitive)
- Removedlodash.topairs@4.3.0(transitive)
Updatedresolve-from@^4.0.0