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

es-html-parser

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

es-html-parser - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

3

dist/tree-constructor/handlers/tag.js

@@ -46,3 +46,4 @@ "use strict";

(0, utils_1.updateNodeEnd)(state.currentNode, token);
if (SELF_CLOSING_TAGS.indexOf(tagName) !== -1) {
if (SELF_CLOSING_TAGS.indexOf(tagName) !== -1 ||
state.currentNode.openEnd.value === "/>") {
state.currentNode.selfClosing = true;

@@ -49,0 +50,0 @@ state.currentNode = state.currentNode.parentRef;

@@ -76,9 +76,9 @@ import { NodeTypes } from "../constants";

type: NodeTypes.DoctypeAttribute;
startWrapper?: DoctypeAttributeWrapperStart;
startWrapper?: DoctypeAttributeWrapperStartNode;
value?: DoctypeAttributeValueNode;
endWrapper?: DoctypeAttributeWrapperEnd;
endWrapper?: DoctypeAttributeWrapperEndNode;
}
export declare type DoctypeAttributeValueNode = SimpleNode<NodeTypes.DoctypeAttributeValue>;
export declare type DoctypeAttributeWrapperStart = SimpleNode<NodeTypes.DoctypeAttributeWrapperStart>;
export declare type DoctypeAttributeWrapperEnd = SimpleNode<NodeTypes.DoctypeAttributeWrapperEnd>;
export declare type AnyNode = DocumentNode | TextNode | TagNode | OpenTagStartNode | OpenTagEndNode | CloseTagNode | AttributeNode | AttributeKeyNode | AttributeValueNode | AttributeValueWrapperStartNode | AttributeValueWrapperEndNode | ScriptTagNode | OpenScriptTagStartNode | CloseScriptTagNode | OpenScriptTagEndNode | ScriptTagContentNode | StyleTagNode | OpenStyleTagStartNode | OpenStyleTagEndNode | StyleTagContentNode | CloseStyleTagNode | CommentNode | CommentOpenNode | CommentCloseNode | CommentContentNode | DoctypeNode | DoctypeOpenNode | DoctypeCloseNode | DoctypeAttributeNode | DoctypeAttributeValueNode | DoctypeAttributeWrapperStart | DoctypeAttributeWrapperEnd;
export declare type DoctypeAttributeWrapperStartNode = SimpleNode<NodeTypes.DoctypeAttributeWrapperStart>;
export declare type DoctypeAttributeWrapperEndNode = SimpleNode<NodeTypes.DoctypeAttributeWrapperEnd>;
export declare type AnyNode = DocumentNode | TextNode | TagNode | OpenTagStartNode | OpenTagEndNode | CloseTagNode | AttributeNode | AttributeKeyNode | AttributeValueNode | AttributeValueWrapperStartNode | AttributeValueWrapperEndNode | ScriptTagNode | OpenScriptTagStartNode | CloseScriptTagNode | OpenScriptTagEndNode | ScriptTagContentNode | StyleTagNode | OpenStyleTagStartNode | OpenStyleTagEndNode | StyleTagContentNode | CloseStyleTagNode | CommentNode | CommentOpenNode | CommentCloseNode | CommentContentNode | DoctypeNode | DoctypeOpenNode | DoctypeCloseNode | DoctypeAttributeNode | DoctypeAttributeValueNode | DoctypeAttributeWrapperStartNode | DoctypeAttributeWrapperEndNode;
{
"name": "es-html-parser",
"version": "0.0.5",
"version": "0.0.6",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -119,4 +119,4 @@ # ES HTML Parser

| DoctypeAttributeValueNode
| DoctypeAttributeWrapperStart
| DoctypeAttributeWrapperEnd;
| DoctypeAttributeWrapperStartNode
| DoctypeAttributeWrapperEndNode;
```

@@ -123,0 +123,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