Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

html-element-to-react

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-element-to-react - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

8

dist/index.js

@@ -41,2 +41,6 @@ "use strict";

}
if (k === "src") {
props[k] = el[k];
}
}

@@ -59,2 +63,4 @@

children.push(_react["default"].createElement.apply(_react["default"], [el.tagName.toLowerCase(), props === {} ? null : props].concat(_toConsumableArray(getChildren(el.children)))));
} else if (el.tagName.toLowerCase() === 'img') {
children.push(_react["default"].createElement(el.tagName.toLowerCase(), props === {} ? null : props));
} else if (el.textContent) {

@@ -69,2 +75,4 @@ children.push(_react["default"].createElement(el.tagName.toLowerCase(), props === {} ? null : props, el.textContent));

var convert = function convert(domElement) {
if (!domElement) return null;
var props = _objectSpread({}, getProps(domElement));

@@ -71,0 +79,0 @@

2

package.json
{
"name": "html-element-to-react",
"version": "0.3.0",
"version": "0.3.1",
"description": "Convert HTML DOM elements to React elements",

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

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