@syntaxtree/html
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -1,8 +0,7 @@ | ||
declare namespace html { | ||
export declare namespace html { | ||
class HtmlDocument { | ||
doctype : string | ||
root : NodeElement | ||
doctype: string; | ||
root: NodeElement; | ||
constructor(doctype: string, root: NodeElement); | ||
} | ||
enum NodeTypes { | ||
@@ -13,28 +12,28 @@ Element = 1, | ||
Comment = 8, | ||
DocumentType = 10, | ||
DocumentType = 10 | ||
} | ||
interface Node { | ||
type : NodeTypes | ||
type: NodeTypes; | ||
} | ||
class NodeElement implements Node { | ||
type : NodeTypes.Element | ||
tag : string | ||
attributes : Map<string, string> | ||
children : Node[] | ||
options : { | ||
selfClosing : boolean | ||
} | ||
type: NodeTypes.Element; | ||
tag: string; | ||
attributes: Map<string, string>; | ||
children: Node[]; | ||
options: NodeElementOptions; | ||
constructor(tag: string, attributes: Map<string, string>, children: Node[], options: NodeElementOptions); | ||
} | ||
type NodeElementOptions = { | ||
selfClosing: boolean; | ||
}; | ||
class NodeText implements Node { | ||
type : NodeTypes.Text | ||
content : string | ||
type: NodeTypes.Text; | ||
content: string; | ||
constructor(content: string); | ||
} | ||
class NodeComment implements Node { | ||
type : NodeTypes.Comment | ||
content : string | ||
type: NodeTypes.Comment; | ||
content: string; | ||
constructor(content: string); | ||
} | ||
} |
{ | ||
"name": "@syntaxtree/html", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "HTML Concrete Syntax Tree", | ||
"author": "Fumio Furukawa", | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "../../node_modules/.bin/tsc" | ||
}, | ||
"typings": "index.d.ts", | ||
@@ -15,3 +18,3 @@ "repository": { | ||
}, | ||
"gitHead": "e47bcb482d51fb0151ddfed94001802f6dcda758" | ||
"gitHead": "3ae0806dcba5537728f8279bc6f7dce9abc9b80e" | ||
} |
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
11010
6
188