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

hast-util-to-dom

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hast-util-to-dom - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

20

dist/hast-util-to-dom.js

@@ -41,4 +41,4 @@ 'use strict';

properties: {
xmlns,
} = {},
xmlns
} = {}
} = children[0];

@@ -70,7 +70,3 @@ if (xmlns) {

function doctype(node) {
return document.implementation.createDocumentType(
node.name || 'html',
node.public || '',
node.system || '',
);
return document.implementation.createDocumentType(node.name || 'html', node.public || '', node.system || '');
}

@@ -98,5 +94,3 @@

const { tagName, properties, children = [] } = node;
const el = typeof namespace !== 'undefined'
? document.createElementNS(namespace, tagName)
: document.createElement(tagName);
const el = typeof namespace !== 'undefined' ? document.createElementNS(namespace, tagName) : document.createElement(tagName);

@@ -110,3 +104,3 @@ // Add HTML attributes

name: key,
propertyName: key,
propertyName: key
};

@@ -119,3 +113,3 @@ const {

boolean,
overloadedBoolean,
overloadedBoolean
// numeric,

@@ -132,3 +126,3 @@ // positiveNumeric,

}
if (boolean || (overloadedBoolean && typeof value === 'boolean')) {
if (boolean || overloadedBoolean && typeof value === 'boolean') {
if (value) {

@@ -135,0 +129,0 @@ el.setAttribute(name, '');

{
"name": "hast-util-to-dom",
"version": "1.0.0",
"version": "1.0.1",
"description": "Transform HAST to DOM",

@@ -5,0 +5,0 @@ "main": "dist/hast-util-to-dom.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