posthtml-parser
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -0,3 +1,12 @@ | ||
## <small>0.8.1 (2021-05-05)</small> | ||
* ci: add node 16 ([58c6740](https://github.com/posthtml/posthtml-parser/commit/58c6740)) | ||
* perf: types content ([e9f59a2](https://github.com/posthtml/posthtml-parser/commit/e9f59a2)) | ||
* perf: types content ([87b2a82](https://github.com/posthtml/posthtml-parser/commit/87b2a82)) | ||
## 0.8.0 (2021-04-16) | ||
* 0.8.0 ([9676edd](https://github.com/posthtml/posthtml-parser/commit/9676edd)) | ||
* ci: drop support for node 10 (found not to be working) ([585d552](https://github.com/posthtml/posthtml-parser/commit/585d552)) | ||
@@ -4,0 +13,0 @@ * build: add prepare script ([1dc46fc](https://github.com/posthtml/posthtml-parser/commit/1dc46fc)) |
{ | ||
"name": "posthtml-parser", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "Parse HTML/XML to PostHTMLTree", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -17,10 +17,13 @@ import {ParserOptions} from 'htmlparser2'; | ||
export type Node = NodeText | NodeTag; | ||
export type Tag = string | boolean; | ||
export type Attributes = Record<string, string>; | ||
export type Content = NodeText | Node[]; | ||
export type NodeText = string; | ||
export type NodeTag = { | ||
tag?: string | boolean; | ||
tag?: Tag; | ||
attrs?: Attributes; | ||
content?: Node[]; | ||
content?: Content; | ||
}; | ||
export type Attributes = Record<string, string>; | ||
export type Node = NodeText | NodeTag; |
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
34958
275