@syntaxtree/html
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -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": { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
5092