Skip to content

Commit ffbb208

Browse files
author
damfinkel
committed
updated lodash to fix dependency vulnerability and fixed linter errors
1 parent 871d8c4 commit ffbb208

File tree

5 files changed

+31
-20
lines changed

5 files changed

+31
-20
lines changed

generators/app/constants.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ const UTILS_PATH = 'src/utils';
4848
const SERVICES_PATH = 'src/services';
4949
const CONSTANTS_PATH = 'src/constants';
5050

51-
module.exports.REDUX_COMPONENTS = [
52-
`${COMPONENTS_PATH}/Field/index.js`,
53-
]
51+
module.exports.REDUX_COMPONENTS = [`${COMPONENTS_PATH}/Field/index.js`];
5452

5553
module.exports.TEMPLATE_FILES = [
5654
'config-overrides.js',

generators/app/tasks/copyTemplateFiles.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
const mkdirp = require('mkdirp');
22

3-
const { TEMPLATE_FILES, LINTER_PATH, LOCAL_STORAGE_FILE, FLOWCONFIG_PATH, REDUX_COMPONENTS } = require('../constants');
3+
const {
4+
TEMPLATE_FILES,
5+
LINTER_PATH,
6+
LOCAL_STORAGE_FILE,
7+
FLOWCONFIG_PATH,
8+
REDUX_COMPONENTS
9+
} = require('../constants');
410

511
const { copyTpl, copy } = require('./utils');
612

generators/app/templates/src/app/components/SearchBar/index.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33

4-
function SearchBarContainer({ textButtonSearch, className, formClassName, buttonClassName, handleSubmit, children }) {
4+
function SearchBarContainer({
5+
textButtonSearch,
6+
className,
7+
formClassName,
8+
buttonClassName,
9+
handleSubmit,
10+
children
11+
}) {
512
return (
613
<div className={className}>
714
<form onSubmit={handleSubmit} className={formClassName}>

package-lock.json

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"dependencies": {
3434
"eslint-config-wolox": "^1.0.0",
3535
"latest-semver": "^1.0.0",
36-
"lodash": "^4.17.4",
36+
"lodash": "^4.17.10",
3737
"mkdirp": "^0.5.1",
3838
"ora": "^2.1.0",
3939
"semver-regex": "^2.0.0",

0 commit comments

Comments
 (0)