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

hast-util-to-parse5

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

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 @@ }

8

package.json
{
"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": {

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