hast-util-to-parse5
Advanced tools
Comparing version 5.0.0 to 5.1.0
10
index.js
@@ -69,2 +69,3 @@ 'use strict' | ||
var p5 | ||
var attr | ||
var value | ||
@@ -77,4 +78,10 @@ var key | ||
info = find(schema, key) | ||
value = {name: key, value: attrs[key]} | ||
attr = attrs[key] | ||
if (attr === false || (info.boolean && !attr)) { | ||
continue | ||
} | ||
value = {name: key, value: attr === true ? '' : String(attr)} | ||
if (info.space && ignoredSpaces.indexOf(info.space) === -1) { | ||
@@ -89,2 +96,3 @@ pos = key.indexOf(':') | ||
} | ||
value.namespace = ns[info.space] | ||
@@ -91,0 +99,0 @@ } |
{ | ||
"name": "hast-util-to-parse5", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "Transform HAST to Parse5’s AST", | ||
@@ -22,3 +22,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"hast-to-hyperscript": "^6.0.0", | ||
"hast-to-hyperscript": "^7.0.0", | ||
"property-information": "^5.0.0", | ||
@@ -32,3 +32,3 @@ "web-namespaces": "^1.0.0", | ||
"json-stringify-safe": "^5.0.1", | ||
"nyc": "^13.0.0", | ||
"nyc": "^14.0.0", | ||
"parse5": "^5.0.0", | ||
@@ -40,3 +40,3 @@ "prettier": "^1.13.5", | ||
"tinyify": "^2.4.3", | ||
"xo": "^0.23.0" | ||
"xo": "^0.24.0" | ||
}, | ||
@@ -43,0 +43,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9008
119
+ Addedhast-to-hyperscript@7.0.4(transitive)
+ Addedunist-util-is@3.0.0(transitive)
- Removedhast-to-hyperscript@6.0.0(transitive)
- Removedunist-util-is@2.1.3(transitive)
Updatedhast-to-hyperscript@^7.0.0