Skip to content

Commit 97c033b

Browse files
committed
fix: update to security-patched dependency versions
1 parent 2f31524 commit 97c033b

File tree

28 files changed

+589
-2231
lines changed

28 files changed

+589
-2231
lines changed

@commitlint/cli/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@
8282
"babel-polyfill": "6.26.0",
8383
"chalk": "2.3.1",
8484
"get-stdin": "5.0.1",
85-
"lodash.merge": "4.6.1",
86-
"lodash.pick": "4.4.0",
85+
"lodash": "4.17.11",
8786
"meow": "5.0.0",
8887
"resolve-from": "^4.0.0",
8988
"resolve-global": "^0.1.0"

@commitlint/cli/src/cli.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ const load = require('@commitlint/load');
55
const lint = require('@commitlint/lint');
66
const read = require('@commitlint/read');
77
const meow = require('meow');
8-
const merge = require('lodash.merge');
9-
const pick = require('lodash.pick');
8+
const {merge, pick} = require('lodash');
109
const stdin = require('get-stdin');
1110
const resolveFrom = require('resolve-from');
1211
const resolveGlobal = require('resolve-global');

@commitlint/cli/src/cli.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import path from 'path';
22
import {fix, git} from '@commitlint/test';
33
import test from 'ava';
44
import execa from 'execa';
5-
import merge from 'lodash.merge';
5+
import {merge} from 'lodash';
66
import * as sander from 'sander';
77
import stream from 'string-to-stream';
88

@commitlint/config-patternplate/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const path = require('path');
22
const globby = require('globby');
3-
const merge = require('lodash.merge');
3+
const {merge} = require('lodash');
44

55
function pathToId(root, filePath) {
66
const relativePath = path.relative(root, filePath);

@commitlint/config-patternplate/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"dependencies": {
3434
"@commitlint/config-angular": "^7.1.2",
3535
"globby": "8.0.1",
36-
"lodash.merge": "4.6.1"
36+
"lodash": "4.17.11"
3737
},
3838
"devDependencies": {
3939
"@commitlint/utils": "^7.1.2",

@commitlint/ensure/package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,10 @@
6868
"concurrently": "3.5.1",
6969
"cross-env": "5.1.1",
7070
"globby": "8.0.1",
71-
"lodash.values": "4.3.0",
7271
"rimraf": "2.6.1",
7372
"xo": "0.20.3"
7473
},
7574
"dependencies": {
76-
"lodash.camelcase": "4.3.0",
77-
"lodash.kebabcase": "4.1.1",
78-
"lodash.snakecase": "4.1.1",
79-
"lodash.startcase": "4.4.0",
80-
"lodash.upperfirst": "4.3.1"
75+
"lodash": "4.17.11"
8176
}
8277
}

@commitlint/ensure/src/case.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
import camelCase from 'lodash.camelcase';
2-
import kebabCase from 'lodash.kebabcase';
3-
import snakeCase from 'lodash.snakecase';
4-
import upperFirst from 'lodash.upperfirst';
5-
import startCase from 'lodash.startcase';
1+
import * as _ from 'lodash';
62

73
export default ensureCase;
84

@@ -24,15 +20,15 @@ function ensureCase(raw = '', target = 'lowercase') {
2420
function toCase(input, target) {
2521
switch (target) {
2622
case 'camel-case':
27-
return camelCase(input);
23+
return _.camelCase(input);
2824
case 'kebab-case':
29-
return kebabCase(input);
25+
return _.kebabCase(input);
3026
case 'snake-case':
31-
return snakeCase(input);
27+
return _.snakeCase(input);
3228
case 'pascal-case':
33-
return upperFirst(camelCase(input));
29+
return _.upperFirst(_.camelCase(input));
3430
case 'start-case':
35-
return startCase(input);
31+
return _.startCase(input);
3632
case 'upper-case':
3733
case 'uppercase':
3834
return input.toUpperCase();

@commitlint/ensure/src/index.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import path from 'path';
22
import test from 'ava';
33
import globby from 'globby';
4-
import camelCase from 'lodash.camelcase';
5-
import values from 'lodash.values';
4+
import {camelCase, values} from 'lodash';
65
import * as ensure from '.';
76

87
test('exports all rules', async t => {

@commitlint/format/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"babel-register": "6.26.0",
6868
"concurrently": "3.5.1",
6969
"cross-env": "5.1.1",
70-
"lodash.includes": "4.3.0",
70+
"lodash": "4.17.11",
7171
"rimraf": "2.6.1",
7272
"xo": "0.20.3"
7373
},

@commitlint/format/src/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import test from 'ava';
22
import chalk from 'chalk';
3-
import includes from 'lodash.includes';
3+
import {includes} from 'lodash';
44
import format from '.';
55

66
const ok = chalk.bold(

0 commit comments

Comments
 (0)