Skip to content

Commit 97c033b

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

28 files changed

+589
-2231
lines changed

@commitlint/cli/package.json

+1-2
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

+1-2
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

+1-1
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

+1-1
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

+1-1
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

+1-6
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

+6-10
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

+1-2
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

+1-1
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

+1-1
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(

@commitlint/lint/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,14 @@
6969
"cross-env": "5.1.1",
7070
"execa": "0.9.0",
7171
"globby": "8.0.1",
72-
"lodash.includes": "4.3.0",
72+
"lodash": "4.17.11",
7373
"rimraf": "2.6.1",
7474
"xo": "0.20.3"
7575
},
7676
"dependencies": {
7777
"@commitlint/is-ignored": "^7.2.1",
7878
"@commitlint/parse": "^7.1.2",
7979
"@commitlint/rules": "^7.2.0",
80-
"babel-runtime": "^6.23.0",
81-
"lodash.topairs": "4.3.0"
80+
"babel-runtime": "^6.23.0"
8281
}
8382
}

@commitlint/lint/src/index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import util from 'util';
22
import isIgnored from '@commitlint/is-ignored';
33
import parse from '@commitlint/parse';
44
import implementations from '@commitlint/rules';
5-
import entries from 'lodash.topairs';
5+
import {toPairs} from 'lodash';
66

77
const buildCommitMesage = ({header, body, footer}) => {
88
let message = header;
@@ -41,7 +41,7 @@ export default async (message, rules = {}, opts = {}) => {
4141
);
4242
}
4343

44-
const invalid = entries(rules)
44+
const invalid = toPairs(rules)
4545
.map(([name, config]) => {
4646
if (!Array.isArray(config)) {
4747
return new Error(
@@ -106,9 +106,9 @@ export default async (message, rules = {}, opts = {}) => {
106106
}
107107

108108
// Validate against all rules
109-
const results = entries(rules)
109+
const results = toPairs(rules)
110110
.filter(entry => {
111-
const [, [level]] = entry;
111+
const [, [level]] = toPairs(entry);
112112
return level > 0;
113113
})
114114
.map(entry => {

@commitlint/load/package.json

+2-5
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,7 @@
7777
"@commitlint/resolve-extends": "^7.1.2",
7878
"babel-runtime": "^6.23.0",
7979
"cosmiconfig": "^4.0.0",
80-
"lodash.merge": "4.6.1",
81-
"lodash.mergewith": "4.6.1",
82-
"lodash.pick": "4.4.0",
83-
"lodash.topairs": "4.3.0",
84-
"resolve-from": "4.0.0"
80+
"lodash": "4.17.11",
81+
"resolve-from": "^4.0.0"
8582
}
8683
}

@commitlint/load/src/index.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ import path from 'path';
22
import executeRule from '@commitlint/execute-rule';
33
import resolveExtends from '@commitlint/resolve-extends';
44
import cosmiconfig from 'cosmiconfig';
5-
import entries from 'lodash.topairs';
6-
import merge from 'lodash.merge';
7-
import mergeWith from 'lodash.mergewith';
8-
import pick from 'lodash.pick';
5+
import {toPairs, merge, mergeWith, pick} from 'lodash';
96
import resolveFrom from 'resolve-from';
107

118
const w = (a, b) => (Array.isArray(b) ? b : undefined);
@@ -67,7 +64,7 @@ export default async (seed = {}, options = {cwd: process.cwd()}) => {
6764
.map(async item => {
6865
const [key, value] = item;
6966
const executedValue = await Promise.all(
70-
entries(value || {}).map(entry => executeRule(entry))
67+
toPairs(value || {}).map(entry => executeRule(entry))
7168
);
7269
return [
7370
key,

@commitlint/prompt/package.json

+2-7
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,8 @@
7272
"@commitlint/load": "^7.2.1",
7373
"babel-runtime": "^6.23.0",
7474
"chalk": "^2.0.0",
75-
"lodash.camelcase": "4.3.0",
76-
"lodash.kebabcase": "4.1.1",
77-
"lodash.snakecase": "4.1.1",
78-
"lodash.startcase": "4.4.0",
79-
"lodash.topairs": "4.3.0",
80-
"lodash.upperfirst": "4.3.1",
75+
"lodash": "4.17.11",
8176
"throat": "^4.1.0",
82-
"vorpal": "^1.10.0"
77+
"vorpal": "^1.12.0"
8378
}
8479
}

@commitlint/prompt/src/library/format.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import chalk from 'chalk';
2-
import entries from 'lodash.topairs';
2+
import {toPairs} from 'lodash';
33

44
export default format;
55

@@ -11,7 +11,7 @@ export default format;
1111
*/
1212
function format(input, debug = false) {
1313
const results = debug
14-
? entries(input).reduce((registry, item) => {
14+
? toPairs(input).reduce((registry, item) => {
1515
const [name, value] = item;
1616
registry[name] =
1717
value === null ? chalk.grey(`<${name}>`) : chalk.bold(value);

@commitlint/prompt/src/library/get-forced-case-fn.js

+6-10
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
/**
84
* Get forced case for rule
@@ -42,15 +38,15 @@ export default function getForcedCaseFn(rule) {
4238

4339
switch (target) {
4440
case 'camel-case':
45-
return input => camelCase(input);
41+
return input => _.camelCase(input);
4642
case 'kebab-case':
47-
return input => kebabCase(input);
43+
return input => _.kebabCase(input);
4844
case 'snake-case':
49-
return input => snakeCase(input);
45+
return input => _.snakeCase(input);
5046
case 'pascal-case':
51-
return input => upperFirst(camelCase(input));
47+
return input => _.upperFirst(_.camelCase(input));
5248
case 'start-case':
53-
return input => startCase(input);
49+
return input => _.startCase(input);
5450
case 'upper-case':
5551
case 'uppercase':
5652
return input => input.toUpperCase();

@commitlint/prompt/src/library/meta.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import chalk from 'chalk';
2-
import entries from 'lodash.topairs';
2+
import {toPairs} from 'lodash';
33

44
/**
55
* Get formatted meta hints for configuration
@@ -8,7 +8,7 @@ import entries from 'lodash.topairs';
88
*/
99
export default function meta(settings) {
1010
return chalk.grey(
11-
entries(settings)
11+
toPairs(settings)
1212
.filter(item => item[1])
1313
.map(item => {
1414
const [name, value] = item;

@commitlint/resolve-extends/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@
7575
},
7676
"dependencies": {
7777
"babel-runtime": "6.26.0",
78-
"lodash.merge": "4.6.1",
79-
"lodash.omit": "4.5.0",
78+
"lodash": "4.17.11",
8079
"require-uncached": "^1.0.3",
8180
"resolve-from": "^4.0.0",
8281
"resolve-global": "^0.1.0"

@commitlint/resolve-extends/src/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import path from 'path';
33
import 'resolve-global'; // eslint-disable-line import/no-unassigned-import
44
import requireUncached from 'require-uncached';
55
import resolveFrom from 'resolve-from';
6-
import merge from 'lodash.merge';
7-
import omit from 'lodash.omit';
6+
import {merge, omit} from 'lodash';
87

98
// Resolve extend configs
109
export default function resolveExtends(config = {}, context = {}) {

@commitlint/rules/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"conventional-changelog-angular": "1.6.6",
7171
"cross-env": "5.1.1",
7272
"globby": "8.0.1",
73-
"lodash.values": "4.3.0",
73+
"lodash": "4.17.11",
7474
"rimraf": "2.6.1",
7575
"xo": "0.20.3"
7676
},

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import path from 'path';
22
import test from 'ava';
33
import globby from 'globby';
4-
import values from 'lodash.values';
4+
import {values} from 'lodash';
55
import rules from '.';
66

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

@packages/babel-preset-commitlint/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const addModuleExports = require('babel-plugin-add-module-exports');
22
const fastAsync = require('fast-async');
33
const jsx = require('babel-plugin-transform-react-jsx');
4-
const istanbul = require('babel-plugin-istanbul').default;
54
const transformRuntime = require('babel-plugin-transform-runtime').default;
65
const env = require('babel-preset-env').default;
76

@@ -18,7 +17,7 @@ function preset() {
1817
return {
1918
env: {
2019
development: {
21-
plugins: plugins.concat([istanbul])
20+
plugins
2221
}
2322
},
2423
plugins,

@packages/babel-preset-commitlint/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
},
5959
"dependencies": {
6060
"babel-plugin-add-module-exports": "^0.2.1",
61-
"babel-plugin-istanbul": "^4.1.4",
6261
"babel-plugin-transform-react-jsx": "^6.24.1",
6362
"babel-plugin-transform-runtime": "^6.23.0",
6463
"babel-preset-env": "^1.6.0",

@packages/utils/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"@marionebl/sander": "0.6.1",
5151
"execa": "0.9.0",
5252
"is-builtin-module": "2.0.0",
53-
"lodash.values": "4.3.0",
53+
"lodash": "4.17.11",
5454
"meow": "4.0.0",
5555
"read-pkg": "3.0.0",
5656
"require-from-string": "2.0.1",

@packages/utils/pkg-check.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const meow = require('meow');
88
const readPkg = require('read-pkg');
99
const requireFromString = require('require-from-string');
1010
const tar = require('tar-fs');
11-
const values = require('lodash.values');
12-
const fix = require('@commitlint/test').fix;
11+
const {values} = require('lodash');
12+
const {fix} = require('@commitlint/test');
1313

1414
const builtin = require.resolve('is-builtin-module');
1515

package.json

+12-2
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,12 @@
9191
"@marionebl/sander": "0.6.1"
9292
},
9393
"devDependencies": {
94-
"docsify-cli": "4.2.1",
94+
"docsify-cli": "^4.3.0",
9595
"eslint": "4.18.1",
9696
"eslint-config-prettier": "2.9.0",
9797
"husky": "1.1.2",
9898
"lerna": "2.11.0",
9999
"lint-staged": "6.1.1",
100-
"npx": "9.7.1",
101100
"prettier": "1.10.2",
102101
"xo": "0.20.3"
103102
},
@@ -106,5 +105,16 @@
106105
"commit-msg": "node @commitlint/cli/lib/cli.js -E HUSKY_GIT_PARAMS",
107106
"pre-commit": "lint-staged"
108107
}
108+
},
109+
"resolutions": {
110+
"**/lodash": "4.17.11",
111+
"docsify-cli/**/randomatic": "3",
112+
"docsify-cli/**/stringstream": "0.0.6",
113+
"docsify-cli/**/sshpk": "1.14.1",
114+
"docsify-cli/**/marked": "0.3.9",
115+
"docsify-cli/**/hoek": "5.0.3",
116+
"deep-extend": "0.5.1",
117+
"moment": "2.19.3",
118+
"xo/**/atob": "2.1.0"
109119
}
110120
}

0 commit comments

Comments
 (0)