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

@syntaxtree/html

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syntaxtree/html - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

36

html.d.ts

@@ -30,42 +30,42 @@ import spellu from '@spellu/core';

}
interface TreeNode extends spellu.Node<SyntaxType> {
interface Node extends spellu.Node<SyntaxType> {
}
interface Token extends spellu.Token<SyntaxType> {
}
interface HtmlDocument extends TreeNode {
interface Document extends Node {
type: SyntaxType.HtmlDocument;
doctype: DoctypeDeclaration;
nodes: TreeNode[];
xmlDeclaration: XmlDeclaration | null;
doctype: DoctypeDeclaration | null;
nodeList: Node[];
}
interface XmlDeclaration extends TreeNode {
interface XmlDeclaration extends Node {
type: SyntaxType.XmlDeclaration;
attributes: Attribute[];
attributeList: Attribute[];
}
interface DoctypeDeclaration extends TreeNode {
interface DoctypeDeclaration extends Node {
type: SyntaxType.DoctypeDeclaration;
string: string;
}
interface ElementDeclaration extends TreeNode {
interface Element extends Node {
type: SyntaxType.ElementDeclaration;
name: string;
attributes: Attribute[];
nodes: TreeNode[];
tagName: string;
attributeList: Attribute[];
nodeList: Node[];
}
interface TagSection extends TreeNode {
type: SyntaxType.TagName;
interface Tag extends Node {
type: SyntaxType.TagSection;
isOpen: boolean;
isClose: boolean;
name: string;
attributes: Attribute[];
tagName: string;
attributeList: Attribute[];
}
interface TextSection extends TreeNode {
interface Text extends Node {
type: SyntaxType.TextSection;
text: string;
}
interface CDataSection extends TreeNode {
interface CData extends Node {
type: SyntaxType.CDataSection;
text: string;
}
interface CommentSection extends TreeNode {
interface Comment extends Node {
type: SyntaxType.CommentSection;

@@ -72,0 +72,0 @@ text: string;

{
"name": "@syntaxtree/html",
"version": "0.4.0",
"version": "0.4.1",
"description": "HTML Concrete Syntax Tree",

@@ -11,4 +11,4 @@ "author": "Fumio Furukawa",

},
"main": "index.mjs",
"types": "index.d.ts",
"main": "html.mjs",
"types": "html.d.ts",
"files": [

@@ -18,3 +18,3 @@ "html.*"

"scripts": {
"build": "../../node_modules/.bin/tsc"
"build": "../../node_modules/.bin/esmc"
},

@@ -21,0 +21,0 @@ "devDependencies": {

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