File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 5
5
"main" : " src/htmltojsx.js" ,
6
6
"bin" : " src/cli.js" ,
7
7
"dependencies" : {
8
+ "css-to-object" : " ^1.1.0" ,
8
9
"jsdom-no-contextify" : " ~3.1.0" ,
9
10
"react" : " ~15.4.1" ,
10
11
"react-dom" : " ~15.4.1" ,
11
- "to-style" : " ^1.3.3" ,
12
12
"yargs" : " ~4.6.0"
13
13
},
14
14
"devDependencies" : {
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ var ELEMENT_TAG_NAME_MAPPING = {
135
135
136
136
var HTMLDOMPropertyConfig = require ( 'react-dom/lib/HTMLDOMPropertyConfig' ) ;
137
137
var SVGDOMPropertyConfig = require ( 'react-dom/lib/SVGDOMPropertyConfig' ) ;
138
- var cssToObject = require ( 'to-style' ) . object ;
138
+ var cssToObject = require ( 'css- to-object' ) ;
139
139
140
140
/**
141
141
* Iterates over elements of object invokes iteratee for each element
@@ -640,7 +640,7 @@ HTMLtoJSX.prototype = {
640
640
* @return {string }
641
641
*/
642
642
_getStyleAttribute : function ( styles ) {
643
- var jsxStyles = cssToObject ( styles , { camelize : true } ) ;
643
+ var jsxStyles = cssToObject ( styles ) ;
644
644
return `style={${ JSON . stringify ( jsxStyles ) } }` ;
645
645
} ,
646
646
You can’t perform that action at this time.
0 commit comments