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.2.9 to 1.2.10

10

CHANGELOG.md
# Change Log
## [v1.2.10](https://github.com/aknuds1/html-to-react/tree/v1.2.10)
- Handle background-image styles
[Full Changelog](https://github.com/aknuds1/html-to-react/compare/v1.2.9...v1.2.10)
**Merged pull requests:**
- Handle background-image styles [\#31](https://github.com/aknuds1/html-to-react/pull/31) ([brett-nuske-alliancesoftware](https://github.com/brett-nuske-alliancesoftware))
## [v1.2.9](https://github.com/aknuds1/html-to-react/tree/v1.2.9)

@@ -4,0 +14,0 @@

1

lib/process-node-definitions.js
'use strict';
var utils = require('./utils');
// eslint-disable-next-line max-len
// https://github.com/facebook/react/blob/15.0-stable/src/renderers/dom/shared/ReactDOMComponent.js#L457

@@ -5,0 +6,0 @@ var voidElementTags = [

@@ -14,2 +14,6 @@ 'use strict';

singleStyle = styles[i].split(':');
if (singleStyle.length > 2) {
singleStyle[1] = singleStyle.slice(1).join(':');
}
key = camelize(singleStyle[0]);

@@ -16,0 +20,0 @@ value = singleStyle[1];

2

package.json
{
"name": "html-to-react",
"version": "1.2.9",
"version": "1.2.10",
"description": "A lightweight library that converts raw HTML to a React DOM structure.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -34,3 +34,4 @@ 'use strict';

it('should return a valid HTML string with inline styles', function () {
var htmlInput = '<div style="background-color: red;color: white;' +
var htmlInput = '<div style="background-image: url(' +
'&quot;http://lorempixel.com/400/200/&quot;);background-color: red;color: white;' +
'font-family: &quot;Open Sans&quot;;"></div>';

@@ -404,2 +405,3 @@

'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"></svg>':
// eslint-disable-next-line max-len
/<svg xmlns="http:\/\/www\.w3\.org\/2000\/svg" xmlns:xlink="http:\/\/www\.w3\.org\/1999\/xlink"><\/svg>/,

@@ -406,0 +408,0 @@ };

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