File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11import Model from './model' ;
22import SchemaType from './schematype' ;
33import ObjectId from './objectid' ;
4- import _ from 'lodash' ;
4+ import assign from 'lodash.assign' ;
5+ import cloneDeep from 'lodash.clonedeep' ;
56
67const allowedTypes = [
78 ObjectId ,
@@ -72,9 +73,9 @@ export default class Schema {
7273 } ,
7374 } ;
7475
75- const obj = _ . cloneDeep ( object ) ;
76+ const obj = cloneDeep ( object ) ;
7677
77- return _ . extend ( mainPropsObj , obj ) ;
78+ return assign ( mainPropsObj , obj ) ;
7879 }
7980
8081 static _buildTypes ( object ) {
Original file line number Diff line number Diff line change 3333 },
3434 "license" : " MIT" ,
3535 "dependencies" : {
36- "lodash" : " ^3.10.1"
36+ "lodash.assign" : " ^3.2.0" ,
37+ "lodash.clonedeep" : " ^3.0.2"
3738 }
3839}
You can’t perform that action at this time.
0 commit comments