@@ -9,7 +9,7 @@ export const clearCache = () => {
9
9
} ;
10
10
clearCache ( ) ;
11
11
12
- const processDefinition = ( definition ) => {
12
+ const mutateDefinition = ( definition ) => {
13
13
const constants = definition . constants ;
14
14
const computed = definition . computed ;
15
15
@@ -26,7 +26,7 @@ const processDefinition = (definition) => {
26
26
definition . constants = null ;
27
27
definition . computed = null ;
28
28
29
- return { styles : definition , constants, computed } ;
29
+ return { constants, computed } ;
30
30
} ;
31
31
32
32
const getValueFromStorageObject = ( key , object , isConstant , isComputed ) => {
@@ -42,7 +42,7 @@ const getValueFromStorageObject = (key, object, isConstant, isComputed) => {
42
42
} ;
43
43
44
44
export const setInCache = ( definition , namespace ) => {
45
- const { styles , constants, computed } = processDefinition ( definition ) ;
45
+ const { constants, computed } = mutateDefinition ( definition ) ;
46
46
let cache = globalCache ;
47
47
48
48
if ( namespace ) {
@@ -52,7 +52,7 @@ export const setInCache = (definition, namespace) => {
52
52
cache = cache [ GLOBAL_KEY ] ;
53
53
}
54
54
55
- Object . assign ( cache , styles ) ;
55
+ Object . assign ( cache , definition ) ;
56
56
Object . assign ( cache , {
57
57
[ CONSTANTS_KEY ] : constants ,
58
58
[ COMPUTED_KEY ] : computed ,
0 commit comments