html-to-react
Advanced tools
Comparing version 1.3.0 to 1.3.1
# Change Log | ||
## [v1.3.1](https://github.com/aknuds1/html-to-react/tree/v1.3.1) | ||
- Handle invalid inline styles | ||
[Full Changelog](https://github.com/aknuds1/html-to-react/compare/v1.3.0...v1.3.1) | ||
**Merged pull requests:** | ||
- Handle invalid inline styles [\#52](https://github.com/aknuds1/html-to-react/pull/52) ([nickpalmer](https://github.com/nickpalmer)) | ||
## [v1.3.0](https://github.com/aknuds1/html-to-react/tree/v1.3.0) | ||
@@ -4,0 +14,0 @@ |
@@ -17,4 +17,4 @@ 'use strict'; | ||
} | ||
key = camelize(singleStyle[0]); | ||
key = singleStyle[0]; | ||
value = singleStyle[1]; | ||
@@ -25,4 +25,4 @@ if (typeof value === 'string'){ | ||
if (key.length > 0 && value.length > 0) { | ||
jsonStyles[key] = value; | ||
if (key != null && value != null && key.length > 0 && value.length > 0) { | ||
jsonStyles[camelize(key)] = value; | ||
} | ||
@@ -29,0 +29,0 @@ } |
{ | ||
"name": "html-to-react", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "A lightweight library that converts raw HTML to a React DOM structure.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
128478
20
3052