Update lodash dependency

This commit is contained in:
Kai Moseley 2017-02-22 10:03:36 +00:00
parent 438150f7a2
commit e88f936329
2 changed files with 7 additions and 3 deletions

View File

@ -48,7 +48,11 @@
"eslint-plugin-react": "^6.0.0" "eslint-plugin-react": "^6.0.0"
}, },
"dependencies": { "dependencies": {
"lodash": "^4.17.2", "lodash.find": "^4.6.0",
"lodash.flowright": "^3.5.0",
"lodash.isfunction": "^3.0.8",
"lodash.isobject": "^3.0.2",
"lodash.omit": "^4.5.0",
"redux": "^3.6.0" "redux": "^3.6.0"
} }
} }

View File

@ -37,7 +37,7 @@ import {
PROP_TYPES, PROP_TYPES,
} from './structure'; } from './structure';
import reduce from 'lodash/reduce'; import reduce from 'lodash/reduce';
import compose from 'lodash/fp/compose'; import flowright from 'lodash/fp/flowright';
import { createShapeReducer } from './reducers/objectReducer'; import { createShapeReducer } from './reducers/objectReducer';
import { createArrayReducer } from './reducers/arrayReducer'; import { createArrayReducer } from './reducers/arrayReducer';
import { createPrimitiveReducer } from './reducers/primitiveReducer'; import { createPrimitiveReducer } from './reducers/primitiveReducer';
@ -120,4 +120,4 @@ export function calculateDefaults(typeDescription: StructureType | PrimitiveType
} }
export const createReducer = compose(callReducer, determineReducerType); export const createReducer = flowright(callReducer, determineReducerType);