Skip to content

Commit

Permalink
fix: update to security-patched dependency versions
Browse files Browse the repository at this point in the history
  • Loading branch information
marionebl committed Nov 30, 2018
1 parent 2f31524 commit 97c033b
Show file tree
Hide file tree
Showing 28 changed files with 589 additions and 2,231 deletions.
3 changes: 1 addition & 2 deletions @commitlint/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@
"babel-polyfill": "6.26.0",
"chalk": "2.3.1",
"get-stdin": "5.0.1",
"lodash.merge": "4.6.1",
"lodash.pick": "4.4.0",
"lodash": "4.17.11",
"meow": "5.0.0",
"resolve-from": "^4.0.0",
"resolve-global": "^0.1.0"
Expand Down
3 changes: 1 addition & 2 deletions @commitlint/cli/src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ const load = require('@commitlint/load');
const lint = require('@commitlint/lint');
const read = require('@commitlint/read');
const meow = require('meow');
const merge = require('lodash.merge');
const pick = require('lodash.pick');
const {merge, pick} = require('lodash');
const stdin = require('get-stdin');
const resolveFrom = require('resolve-from');
const resolveGlobal = require('resolve-global');
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/cli/src/cli.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import path from 'path';
import {fix, git} from '@commitlint/test';
import test from 'ava';
import execa from 'execa';
import merge from 'lodash.merge';
import {merge} from 'lodash';
import * as sander from 'sander';
import stream from 'string-to-stream';

Expand Down
2 changes: 1 addition & 1 deletion @commitlint/config-patternplate/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const path = require('path');
const globby = require('globby');
const merge = require('lodash.merge');
const {merge} = require('lodash');

function pathToId(root, filePath) {
const relativePath = path.relative(root, filePath);
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/config-patternplate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"dependencies": {
"@commitlint/config-angular": "^7.1.2",
"globby": "8.0.1",
"lodash.merge": "4.6.1"
"lodash": "4.17.11"
},
"devDependencies": {
"@commitlint/utils": "^7.1.2",
Expand Down
7 changes: 1 addition & 6 deletions @commitlint/ensure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,10 @@
"concurrently": "3.5.1",
"cross-env": "5.1.1",
"globby": "8.0.1",
"lodash.values": "4.3.0",
"rimraf": "2.6.1",
"xo": "0.20.3"
},
"dependencies": {
"lodash.camelcase": "4.3.0",
"lodash.kebabcase": "4.1.1",
"lodash.snakecase": "4.1.1",
"lodash.startcase": "4.4.0",
"lodash.upperfirst": "4.3.1"
"lodash": "4.17.11"
}
}
16 changes: 6 additions & 10 deletions @commitlint/ensure/src/case.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import camelCase from 'lodash.camelcase';
import kebabCase from 'lodash.kebabcase';
import snakeCase from 'lodash.snakecase';
import upperFirst from 'lodash.upperfirst';
import startCase from 'lodash.startcase';
import * as _ from 'lodash';

export default ensureCase;

Expand All @@ -24,15 +20,15 @@ function ensureCase(raw = '', target = 'lowercase') {
function toCase(input, target) {
switch (target) {
case 'camel-case':
return camelCase(input);
return _.camelCase(input);
case 'kebab-case':
return kebabCase(input);
return _.kebabCase(input);
case 'snake-case':
return snakeCase(input);
return _.snakeCase(input);
case 'pascal-case':
return upperFirst(camelCase(input));
return _.upperFirst(_.camelCase(input));
case 'start-case':
return startCase(input);
return _.startCase(input);
case 'upper-case':
case 'uppercase':
return input.toUpperCase();
Expand Down
3 changes: 1 addition & 2 deletions @commitlint/ensure/src/index.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import path from 'path';
import test from 'ava';
import globby from 'globby';
import camelCase from 'lodash.camelcase';
import values from 'lodash.values';
import {camelCase, values} from 'lodash';
import * as ensure from '.';

test('exports all rules', async t => {
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/format/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"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",
"xo": "0.20.3"
},
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/format/src/index.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava';
import chalk from 'chalk';
import includes from 'lodash.includes';
import {includes} from 'lodash';
import format from '.';

const ok = chalk.bold(
Expand Down
5 changes: 2 additions & 3 deletions @commitlint/lint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,14 @@
"cross-env": "5.1.1",
"execa": "0.9.0",
"globby": "8.0.1",
"lodash.includes": "4.3.0",
"lodash": "4.17.11",
"rimraf": "2.6.1",
"xo": "0.20.3"
},
"dependencies": {
"@commitlint/is-ignored": "^7.2.1",
"@commitlint/parse": "^7.1.2",
"@commitlint/rules": "^7.2.0",
"babel-runtime": "^6.23.0",
"lodash.topairs": "4.3.0"
"babel-runtime": "^6.23.0"
}
}
8 changes: 4 additions & 4 deletions @commitlint/lint/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import util from 'util';
import isIgnored from '@commitlint/is-ignored';
import parse from '@commitlint/parse';
import implementations from '@commitlint/rules';
import entries from 'lodash.topairs';
import {toPairs} from 'lodash';

const buildCommitMesage = ({header, body, footer}) => {
let message = header;
Expand Down Expand Up @@ -41,7 +41,7 @@ export default async (message, rules = {}, opts = {}) => {
);
}

const invalid = entries(rules)
const invalid = toPairs(rules)
.map(([name, config]) => {
if (!Array.isArray(config)) {
return new Error(
Expand Down Expand Up @@ -106,9 +106,9 @@ export default async (message, rules = {}, opts = {}) => {
}

// Validate against all rules
const results = entries(rules)
const results = toPairs(rules)
.filter(entry => {
const [, [level]] = entry;
const [, [level]] = toPairs(entry);
return level > 0;
})
.map(entry => {
Expand Down
7 changes: 2 additions & 5 deletions @commitlint/load/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@
"@commitlint/resolve-extends": "^7.1.2",
"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"
}
}
7 changes: 2 additions & 5 deletions @commitlint/load/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ import path from 'path';
import executeRule from '@commitlint/execute-rule';
import resolveExtends from '@commitlint/resolve-extends';
import cosmiconfig from 'cosmiconfig';
import entries from 'lodash.topairs';
import merge from 'lodash.merge';
import mergeWith from 'lodash.mergewith';
import pick from 'lodash.pick';
import {toPairs, merge, mergeWith, pick} from 'lodash';
import resolveFrom from 'resolve-from';

const w = (a, b) => (Array.isArray(b) ? b : undefined);
Expand Down Expand Up @@ -67,7 +64,7 @@ export default async (seed = {}, options = {cwd: process.cwd()}) => {
.map(async item => {
const [key, value] = item;
const executedValue = await Promise.all(
entries(value || {}).map(entry => executeRule(entry))
toPairs(value || {}).map(entry => executeRule(entry))
);
return [
key,
Expand Down
9 changes: 2 additions & 7 deletions @commitlint/prompt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,8 @@
"@commitlint/load": "^7.2.1",
"babel-runtime": "^6.23.0",
"chalk": "^2.0.0",
"lodash.camelcase": "4.3.0",
"lodash.kebabcase": "4.1.1",
"lodash.snakecase": "4.1.1",
"lodash.startcase": "4.4.0",
"lodash.topairs": "4.3.0",
"lodash.upperfirst": "4.3.1",
"lodash": "4.17.11",
"throat": "^4.1.0",
"vorpal": "^1.10.0"
"vorpal": "^1.12.0"
}
}
4 changes: 2 additions & 2 deletions @commitlint/prompt/src/library/format.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import chalk from 'chalk';
import entries from 'lodash.topairs';
import {toPairs} from 'lodash';

export default format;

Expand All @@ -11,7 +11,7 @@ export default format;
*/
function format(input, debug = false) {
const results = debug
? entries(input).reduce((registry, item) => {
? toPairs(input).reduce((registry, item) => {
const [name, value] = item;
registry[name] =
value === null ? chalk.grey(`<${name}>`) : chalk.bold(value);
Expand Down
16 changes: 6 additions & 10 deletions @commitlint/prompt/src/library/get-forced-case-fn.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import camelCase from 'lodash.camelcase';
import kebabCase from 'lodash.kebabcase';
import snakeCase from 'lodash.snakecase';
import upperFirst from 'lodash.upperfirst';
import startCase from 'lodash.startcase';
import * as _ from 'lodash';

/**
* Get forced case for rule
Expand Down Expand Up @@ -42,15 +38,15 @@ export default function getForcedCaseFn(rule) {

switch (target) {
case 'camel-case':
return input => camelCase(input);
return input => _.camelCase(input);
case 'kebab-case':
return input => kebabCase(input);
return input => _.kebabCase(input);
case 'snake-case':
return input => snakeCase(input);
return input => _.snakeCase(input);
case 'pascal-case':
return input => upperFirst(camelCase(input));
return input => _.upperFirst(_.camelCase(input));
case 'start-case':
return input => startCase(input);
return input => _.startCase(input);
case 'upper-case':
case 'uppercase':
return input => input.toUpperCase();
Expand Down
4 changes: 2 additions & 2 deletions @commitlint/prompt/src/library/meta.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import chalk from 'chalk';
import entries from 'lodash.topairs';
import {toPairs} from 'lodash';

/**
* Get formatted meta hints for configuration
Expand All @@ -8,7 +8,7 @@ import entries from 'lodash.topairs';
*/
export default function meta(settings) {
return chalk.grey(
entries(settings)
toPairs(settings)
.filter(item => item[1])
.map(item => {
const [name, value] = item;
Expand Down
3 changes: 1 addition & 2 deletions @commitlint/resolve-extends/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@
},
"dependencies": {
"babel-runtime": "6.26.0",
"lodash.merge": "4.6.1",
"lodash.omit": "4.5.0",
"lodash": "4.17.11",
"require-uncached": "^1.0.3",
"resolve-from": "^4.0.0",
"resolve-global": "^0.1.0"
Expand Down
3 changes: 1 addition & 2 deletions @commitlint/resolve-extends/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import path from 'path';
import 'resolve-global'; // eslint-disable-line import/no-unassigned-import
import requireUncached from 'require-uncached';
import resolveFrom from 'resolve-from';
import merge from 'lodash.merge';
import omit from 'lodash.omit';
import {merge, omit} from 'lodash';

// Resolve extend configs
export default function resolveExtends(config = {}, context = {}) {
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/rules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"conventional-changelog-angular": "1.6.6",
"cross-env": "5.1.1",
"globby": "8.0.1",
"lodash.values": "4.3.0",
"lodash": "4.17.11",
"rimraf": "2.6.1",
"xo": "0.20.3"
},
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/rules/src/index.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from 'path';
import test from 'ava';
import globby from 'globby';
import values from 'lodash.values';
import {values} from 'lodash';
import rules from '.';

test('exports all rules', async t => {
Expand Down
3 changes: 1 addition & 2 deletions @packages/babel-preset-commitlint/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const addModuleExports = require('babel-plugin-add-module-exports');
const fastAsync = require('fast-async');
const jsx = require('babel-plugin-transform-react-jsx');
const istanbul = require('babel-plugin-istanbul').default;
const transformRuntime = require('babel-plugin-transform-runtime').default;
const env = require('babel-preset-env').default;

Expand All @@ -18,7 +17,7 @@ function preset() {
return {
env: {
development: {
plugins: plugins.concat([istanbul])
plugins
}
},
plugins,
Expand Down
1 change: 0 additions & 1 deletion @packages/babel-preset-commitlint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
},
"dependencies": {
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-istanbul": "^4.1.4",
"babel-plugin-transform-react-jsx": "^6.24.1",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.0",
Expand Down
2 changes: 1 addition & 1 deletion @packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@marionebl/sander": "0.6.1",
"execa": "0.9.0",
"is-builtin-module": "2.0.0",
"lodash.values": "4.3.0",
"lodash": "4.17.11",
"meow": "4.0.0",
"read-pkg": "3.0.0",
"require-from-string": "2.0.1",
Expand Down
4 changes: 2 additions & 2 deletions @packages/utils/pkg-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const meow = require('meow');
const readPkg = require('read-pkg');
const requireFromString = require('require-from-string');
const tar = require('tar-fs');
const values = require('lodash.values');
const fix = require('@commitlint/test').fix;
const {values} = require('lodash');
const {fix} = require('@commitlint/test');

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

Expand Down
14 changes: 12 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,12 @@
"@marionebl/sander": "0.6.1"
},
"devDependencies": {
"docsify-cli": "4.2.1",
"docsify-cli": "^4.3.0",
"eslint": "4.18.1",
"eslint-config-prettier": "2.9.0",
"husky": "1.1.2",
"lerna": "2.11.0",
"lint-staged": "6.1.1",
"npx": "9.7.1",
"prettier": "1.10.2",
"xo": "0.20.3"
},
Expand All @@ -106,5 +105,16 @@
"commit-msg": "node @commitlint/cli/lib/cli.js -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
},
"resolutions": {
"**/lodash": "4.17.11",
"docsify-cli/**/randomatic": "3",
"docsify-cli/**/stringstream": "0.0.6",
"docsify-cli/**/sshpk": "1.14.1",
"docsify-cli/**/marked": "0.3.9",
"docsify-cli/**/hoek": "5.0.3",
"deep-extend": "0.5.1",
"moment": "2.19.3",
"xo/**/atob": "2.1.0"
}
}
Loading

0 comments on commit 97c033b

Please sign in to comment.