Skip to content

Commit

Permalink
updated lodash to fix dependency vulnerability and fixed linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
damfinkel committed Aug 3, 2018
1 parent 871d8c4 commit ffbb208
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 20 deletions.
4 changes: 1 addition & 3 deletions generators/app/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ const UTILS_PATH = 'src/utils';
const SERVICES_PATH = 'src/services';
const CONSTANTS_PATH = 'src/constants';

module.exports.REDUX_COMPONENTS = [
`${COMPONENTS_PATH}/Field/index.js`,
]
module.exports.REDUX_COMPONENTS = [`${COMPONENTS_PATH}/Field/index.js`];

module.exports.TEMPLATE_FILES = [
'config-overrides.js',
Expand Down
8 changes: 7 additions & 1 deletion generators/app/tasks/copyTemplateFiles.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
const mkdirp = require('mkdirp');

const { TEMPLATE_FILES, LINTER_PATH, LOCAL_STORAGE_FILE, FLOWCONFIG_PATH, REDUX_COMPONENTS } = require('../constants');
const {
TEMPLATE_FILES,
LINTER_PATH,
LOCAL_STORAGE_FILE,
FLOWCONFIG_PATH,
REDUX_COMPONENTS
} = require('../constants');

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import React from 'react';
import PropTypes from 'prop-types';

function SearchBarContainer({ textButtonSearch, className, formClassName, buttonClassName, handleSubmit, children }) {
function SearchBarContainer({
textButtonSearch,
className,
formClassName,
buttonClassName,
handleSubmit,
children
}) {
return (
<div className={className}>
<form onSubmit={handleSubmit} className={formClassName}>
Expand Down
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"dependencies": {
"eslint-config-wolox": "^1.0.0",
"latest-semver": "^1.0.0",
"lodash": "^4.17.4",
"lodash": "^4.17.10",
"mkdirp": "^0.5.1",
"ora": "^2.1.0",
"semver-regex": "^2.0.0",
Expand Down

0 comments on commit ffbb208

Please sign in to comment.