@syntaxtree/html
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -1,4 +0,2 @@ | ||
declare const html: typeof syntaxtree.html; | ||
export default html; | ||
export declare namespace syntaxtree.html { | ||
declare namespace html { | ||
class HtmlDocument { | ||
@@ -41,1 +39,2 @@ doctype: string; | ||
} | ||
export default html; |
84
index.js
@@ -1,48 +0,46 @@ | ||
const html = syntaxtree.html; | ||
export default html; | ||
export var syntaxtree; | ||
(function (syntaxtree) { | ||
var html; | ||
(function (html) { | ||
class HtmlDocument { | ||
constructor(doctype, root) { | ||
this.doctype = doctype; | ||
this.root = root; | ||
} | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var html; | ||
(function (html) { | ||
class HtmlDocument { | ||
constructor(doctype, root) { | ||
this.doctype = doctype; | ||
this.root = root; | ||
} | ||
html.HtmlDocument = HtmlDocument; | ||
let NodeTypes; | ||
(function (NodeTypes) { | ||
NodeTypes[NodeTypes["Element"] = 1] = "Element"; | ||
NodeTypes[NodeTypes["Text"] = 3] = "Text"; | ||
NodeTypes[NodeTypes["CDataSection"] = 4] = "CDataSection"; | ||
NodeTypes[NodeTypes["Comment"] = 8] = "Comment"; | ||
NodeTypes[NodeTypes["DocumentType"] = 10] = "DocumentType"; | ||
})(NodeTypes = html.NodeTypes || (html.NodeTypes = {})); | ||
class NodeElement { | ||
constructor(tag, attributes, children, options) { | ||
this.type = NodeTypes.Element; | ||
this.tag = tag; | ||
this.attributes = attributes; | ||
this.children = children; | ||
this.options = options; | ||
} | ||
} | ||
html.HtmlDocument = HtmlDocument; | ||
let NodeTypes; | ||
(function (NodeTypes) { | ||
NodeTypes[NodeTypes["Element"] = 1] = "Element"; | ||
NodeTypes[NodeTypes["Text"] = 3] = "Text"; | ||
NodeTypes[NodeTypes["CDataSection"] = 4] = "CDataSection"; | ||
NodeTypes[NodeTypes["Comment"] = 8] = "Comment"; | ||
NodeTypes[NodeTypes["DocumentType"] = 10] = "DocumentType"; | ||
})(NodeTypes = html.NodeTypes || (html.NodeTypes = {})); | ||
class NodeElement { | ||
constructor(tag, attributes, children, options) { | ||
this.type = NodeTypes.Element; | ||
this.tag = tag; | ||
this.attributes = attributes; | ||
this.children = children; | ||
this.options = options; | ||
} | ||
html.NodeElement = NodeElement; | ||
class NodeText { | ||
constructor(content) { | ||
this.type = NodeTypes.Text; | ||
this.content = content; | ||
} | ||
} | ||
html.NodeElement = NodeElement; | ||
class NodeText { | ||
constructor(content) { | ||
this.type = NodeTypes.Text; | ||
this.content = content; | ||
} | ||
html.NodeText = NodeText; | ||
class NodeComment { | ||
constructor(content) { | ||
this.type = NodeTypes.Comment; | ||
this.content = content; | ||
} | ||
} | ||
html.NodeText = NodeText; | ||
class NodeComment { | ||
constructor(content) { | ||
this.type = NodeTypes.Comment; | ||
this.content = content; | ||
} | ||
html.NodeComment = NodeComment; | ||
})(html = syntaxtree.html || (syntaxtree.html = {})); | ||
})(syntaxtree || (syntaxtree = {})); | ||
} | ||
html.NodeComment = NodeComment; | ||
})(html || (html = {})); | ||
exports.default = html; | ||
//# sourceMappingURL=index.js.map |
const html = syntaxtree.html | ||
export default html | ||
export namespace syntaxtree.html { | ||
namespace html { | ||
export class HtmlDocument { | ||
@@ -70,1 +65,3 @@ doctype : string | ||
} | ||
export default html |
{ | ||
"name": "@syntaxtree/html", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "HTML Concrete Syntax Tree", | ||
@@ -18,3 +18,3 @@ "author": "Fumio Furukawa", | ||
}, | ||
"gitHead": "e90b878aa490d583c03a5539c3a10c4ee6478aaa" | ||
"gitHead": "88074546694c0bf3f718b47bd3120aa942799b10" | ||
} |
@@ -5,3 +5,3 @@ { | ||
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ | ||
"module": "es6", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ | ||
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ | ||
// "lib": [], /* Specify library files to be included in the compilation. */ | ||
@@ -8,0 +8,0 @@ // "allowJs": true, /* Allow javascript files to be compiled. */ |
Sorry, the diff of this file is not supported yet
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
11150
193