@@ -8,9 +8,13 @@ import createBuildActions from './utils/create-build-actions'
88import createMapActionGroup from './utils/create-map-action-group'
99import actionsMapCustom from './utils/action-map-custom'
1010import actionsMapAssets from './assets-actions'
11- import * as categoryActions from './category-actions'
12- import * as diffpatcher from './utils/diffpatcher'
11+ import {
12+ actionsMapBase ,
13+ actionsMapMeta ,
14+ actionsMapReferences ,
15+ } from './category-actions'
1316import copyEmptyArrayProps from './utils/copy-empty-array-props'
17+ import { diff } from './utils/diffpatcher'
1418
1519export const actionGroups = [ 'base' , 'references' , 'meta' , 'custom' , 'assets' ]
1620
@@ -29,23 +33,21 @@ function createCategoryMapActions(
2933 mapActionGroup (
3034 'base' ,
3135 ( ) : Array < UpdateAction > =>
32- categoryActions . actionsMapBase ( diff , oldObj , newObj , syncActionConfig )
36+ actionsMapBase ( diff , oldObj , newObj , syncActionConfig )
3337 )
3438 )
3539
3640 allActions . push (
3741 mapActionGroup (
3842 'references' ,
39- ( ) : Array < UpdateAction > =>
40- categoryActions . actionsMapReferences ( diff , oldObj , newObj )
43+ ( ) : Array < UpdateAction > => actionsMapReferences ( diff , oldObj , newObj )
4144 )
4245 )
4346
4447 allActions . push (
4548 mapActionGroup (
4649 'meta' ,
47- ( ) : Array < UpdateAction > =>
48- categoryActions . actionsMapMeta ( diff , oldObj , newObj )
50+ ( ) : Array < UpdateAction > => actionsMapMeta ( diff , oldObj , newObj )
4951 )
5052 )
5153
@@ -88,7 +90,7 @@ export default (
8890 syncActionConfig
8991 )
9092 const buildActions = createBuildActions (
91- diffpatcher . diff ,
93+ diff ,
9294 doMapActions ,
9395 copyEmptyArrayProps
9496 )
0 commit comments