File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 38
38
"engines" : {
39
39
"node" : " >=0.10.0"
40
40
},
41
- "license" : " MIT"
41
+ "license" : " MIT" ,
42
+ "dependencies" : {
43
+ "object-assign" : " ^4.0.1"
44
+ }
42
45
}
Original file line number Diff line number Diff line change
1
+ import assign from 'object-assign' ;
1
2
import Literal from '../Literal' ;
2
3
import Identifier from './Identifier' ;
3
4
import TemplateLiteral from './TemplateLiteral' ;
@@ -22,7 +23,7 @@ const TYPES = {
22
23
23
24
const noop = ( ) => null ;
24
25
25
- const LITERAL_TYPES = Object . assign ( { } , TYPES , {
26
+ const LITERAL_TYPES = assign ( { } , TYPES , {
26
27
Identifier : value => {
27
28
const isUndefined = TYPES . Identifier ( value ) === undefined ;
28
29
return isUndefined ? undefined : null ;
Original file line number Diff line number Diff line change
1
+ import assign from 'object-assign' ;
1
2
import Literal from './Literal' ;
2
3
import JSXElement from './JSXElement' ;
3
4
import JSXExpressionContainer from './expressions' ;
@@ -9,7 +10,7 @@ const TYPES = {
9
10
JSXExpressionContainer
10
11
} ;
11
12
12
- const LITERAL_TYPES = Object . assign ( { } , TYPES , {
13
+ const LITERAL_TYPES = assign ( { } , TYPES , {
13
14
JSXElement : ( ) => null ,
14
15
JSXExpressionContainer : extractLiteral
15
16
} ) ;
You can’t perform that action at this time.
0 commit comments