New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.0.5 to 0.0.6

94

index.ts
export namespace html {
export class HtmlDocument {
doctype : string
root : NodeElement
export class HtmlDocument {
doctype : string
root : NodeElement
constructor (doctype : string, root : NodeElement) {
this.doctype = doctype
this.root = root
}
constructor (doctype : string, root : NodeElement) {
this.doctype = doctype
this.root = root
}
}
export enum NodeTypes {
Element = 1,
Text = 3,
CDataSection = 4,
Comment = 8,
DocumentType = 10,
}
export enum NodeTypes {
Element = 1,
Text = 3,
CDataSection = 4,
Comment = 8,
DocumentType = 10,
}
export interface Node {
type : NodeTypes
}
export interface Node {
type : NodeTypes
}
export class NodeElement implements Node {
type : NodeTypes.Element
tag : string
attributes : Map<string, string>
children : Node[]
options : NodeElementOptions
export class NodeElement implements Node {
type : NodeTypes.Element
tag : string
attributes : Map<string, string>
children : Node[]
options : NodeElementOptions
constructor (tag : string, attributes : Map<string, string>, children : Node[], options : NodeElementOptions) {
this.type = NodeTypes.Element
this.tag = tag
this.attributes = attributes
this.children = children
this.options = options
}
constructor (tag : string, attributes : Map<string, string>, children : Node[], options : NodeElementOptions) {
this.type = NodeTypes.Element
this.tag = tag
this.attributes = attributes
this.children = children
this.options = options
}
}
export type NodeElementOptions = {
selfClosing : boolean
}
export type NodeElementOptions = {
selfClosing : boolean
}
export class NodeText implements Node {
type : NodeTypes.Text
content : string
export class NodeText implements Node {
type : NodeTypes.Text
content : string
constructor (content : string) {
this.type = NodeTypes.Text
this.content = content
}
constructor (content : string) {
this.type = NodeTypes.Text
this.content = content
}
}
export class NodeComment implements Node {
type : NodeTypes.Comment
content : string
export class NodeComment implements Node {
type : NodeTypes.Comment
content : string
constructor (content : string) {
this.type = NodeTypes.Comment
this.content = content
}
constructor (content : string) {
this.type = NodeTypes.Comment
this.content = content
}
}
{
"name": "@syntaxtree/html",
"version": "0.0.5",
"version": "0.0.6",
"description": "HTML Concrete Syntax Tree",

@@ -18,3 +18,3 @@ "author": "Fumio Furukawa",

},
"gitHead": "3ae0806dcba5537728f8279bc6f7dce9abc9b80e"
"gitHead": "95cab45931538e4d1b5d2486f58e37845a53a48c"
}
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