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

vdom-virtualize

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vdom-virtualize - npm Package Compare versions

Comparing version 1.0.6 to 2.0.0

25

index.js

@@ -39,25 +39,2 @@ /*!

createVNode.fromHTML = function(html, key) {
var rootNode = null;
try {
// Everything except iOS 7 Safari, IE 8/9, Andriod Browser 4.1/4.3
var parser = new DOMParser();
var doc = parser.parseFromString(html, 'text/html');
rootNode = doc.documentElement;
} catch(e) {
// Old browsers
var ifr = document.createElement('iframe');
ifr.setAttribute('data-content', html);
ifr.src = 'javascript: window.frameElement.getAttribute("data-content");';
document.head.appendChild(ifr);
rootNode = ifr.contentDocument.documentElement;
setTimeout(function() {
ifr.remove(); // Garbage collection
}, 0);
}
return createVNode(rootNode, key);
};
function createFromTextNode(tNode) {

@@ -266,2 +243,2 @@ return new VText(tNode.nodeValue)

'class': 'className'
}
}

4

package.json
{
"name": "vdom-virtualize",
"version": "1.0.6",
"description": "Virtulize any DOM node and turn it into a virtual-dom node.",
"version": "2.0.0",
"description": "Virtualize any DOM node and turn it into a virtual-dom node.",
"main": "index.js",

@@ -6,0 +6,0 @@ "dependencies": {},

# vdom-virtualize
**New in v2.0:** removed support for virtualize.fromHTML -- doing this right and supporting all platforms is a job for [another library](https://github.com/TimBeyer/html-to-vdom).
**New in v1.0:** vdom-virtualize now supports comments and does now use peerDependencies to depend on virtual-dom.

@@ -4,0 +5,0 @@

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