File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 55 "main" : " src/htmltojsx.js" ,
66 "bin" : " src/cli.js" ,
77 "dependencies" : {
8+ "css-to-object" : " ^1.1.0" ,
89 "jsdom-no-contextify" : " ~3.1.0" ,
910 "react" : " ~15.4.1" ,
1011 "react-dom" : " ~15.4.1" ,
11- "to-style" : " ^1.3.3" ,
1212 "yargs" : " ~4.6.0"
1313 },
1414 "devDependencies" : {
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ var ELEMENT_TAG_NAME_MAPPING = {
135135
136136var HTMLDOMPropertyConfig = require ( 'react-dom/lib/HTMLDOMPropertyConfig' ) ;
137137var SVGDOMPropertyConfig = require ( 'react-dom/lib/SVGDOMPropertyConfig' ) ;
138- var cssToObject = require ( 'to-style' ) . object ;
138+ var cssToObject = require ( 'css- to-object' ) ;
139139
140140/**
141141 * Iterates over elements of object invokes iteratee for each element
@@ -640,7 +640,7 @@ HTMLtoJSX.prototype = {
640640 * @return {string }
641641 */
642642 _getStyleAttribute : function ( styles ) {
643- var jsxStyles = cssToObject ( styles , { camelize : true } ) ;
643+ var jsxStyles = cssToObject ( styles ) ;
644644 return `style={${ JSON . stringify ( jsxStyles ) } }` ;
645645 } ,
646646
You can’t perform that action at this time.
0 commit comments