New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

html-to-react

Package Overview
Dependencies
Maintainers
3
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-to-react - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

.npmignore

10

CHANGELOG.md
# 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 @@

8

lib/utils.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc