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.0.4 to 0.0.5

index.js

43

index.d.ts

@@ -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"
}
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