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

@commitlint/load

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commitlint/load - npm Package Compare versions

Comparing version 7.1.2 to 7.2.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

<a name="7.2.0"></a>
# [7.2.0](https://github.com/marionebl/commitlint/compare/v7.1.2...v7.2.0) (2018-10-05)
### Features
* **load:** add formatter option with default value ([b0e63d9](https://github.com/marionebl/commitlint/commit/b0e63d9))
<a name="7.1.2"></a>

@@ -8,0 +19,0 @@ ## [7.1.2](https://github.com/marionebl/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)

4

lib/index.js

@@ -50,3 +50,3 @@ 'use strict';

const w = (a, b) => Array.isArray(b) ? b : undefined;
const valid = input => (0, _lodash8.default)(input, 'extends', 'rules', 'parserPreset');
const valid = input => (0, _lodash8.default)(input, 'extends', 'rules', 'parserPreset', 'formatter');

@@ -60,3 +60,3 @@ exports.default = (seed = {}, options = { cwd: process.cwd() }) => new Promise(function ($return, $error) {

config = valid((0, _lodash4.default)(loaded.config, seed));
opts = (0, _lodash4.default)({ extends: [], rules: {} }, (0, _lodash8.default)(config, 'extends'));
opts = (0, _lodash4.default)({ extends: [], rules: {}, formatter: '@commitlint/format' }, (0, _lodash8.default)(config, 'extends'));

@@ -63,0 +63,0 @@

@@ -181,2 +181,3 @@ 'use strict';

t.deepEqual(actual, {
formatter: '@commitlint/format',
extends: ['./second-extended'],

@@ -209,2 +210,3 @@ rules: {

t.deepEqual(actual, {
formatter: '@commitlint/format',
extends: ['./first-extended'],

@@ -239,2 +241,3 @@ rules: {

t.deepEqual(actual, {
formatter: '@commitlint/format',
extends: ['./first-extended'],

@@ -269,2 +272,3 @@ rules: {

t.deepEqual(actual, {
formatter: '@commitlint/format',
extends: ['./first-extended'],

@@ -299,2 +303,3 @@ rules: {

t.deepEqual(actual, {
formatter: '@commitlint/format',
extends: ['./first-extended'],

@@ -329,2 +334,3 @@ rules: {

t.deepEqual(actual, {
formatter: '@commitlint/format',
extends: ['./first-extended'],

@@ -406,2 +412,3 @@ rules: {

t.deepEqual(actual, {
formatter: '@commitlint/format',
extends: [],

@@ -435,2 +442,3 @@ rules: {

t.deepEqual(actual, {
formatter: '@commitlint/format',
extends: ['./one'],

@@ -467,2 +475,3 @@ rules: {

t.deepEqual(actual, {
formatter: '@commitlint/format',
extends: [],

@@ -504,2 +513,3 @@ rules: {

t.deepEqual(actual, {
formatter: '@commitlint/format',
extends: [],

@@ -526,2 +536,28 @@ rules: {

}.bind(this)));
(0, _ava2.default)('respects formatter option', t => new Promise(function ($return, $error) {
var cwd, actual;
return Promise.resolve(_test.git.bootstrap('fixtures/formatter')).then(function ($await_41) {
try {
cwd = $await_41;
return Promise.resolve((0, _2.default)({}, { cwd })).then(function ($await_42) {
try {
actual = $await_42;
t.deepEqual(actual, {
formatter: 'commitlint-junit',
extends: [],
rules: {}
});
return $return();
} catch ($boundEx) {
return $error($boundEx);
}
}.bind(this), $error);
} catch ($boundEx) {
return $error($boundEx);
}
}.bind(this), $error);
}.bind(this)));
//# sourceMappingURL=index.test.js.map
{
"name": "@commitlint/load",
"version": "7.1.2",
"version": "7.2.0",
"description": "Load shared commitlint configuration",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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