angular-html-parser
Advanced tools
Comparing version 2.0.0 to 2.1.0
import { TagContentType } from '../../compiler/src/ml_parser/tags.js'; | ||
import { ParseTreeResult } from "../../compiler/src/ml_parser/parser.js"; | ||
export { TagContentType }; | ||
export interface ParseOptions { | ||
@@ -35,1 +34,5 @@ /** | ||
export declare function parse(input: string, options?: ParseOptions): ParseTreeResult; | ||
export { TagContentType }; | ||
export { RecursiveVisitor, visitAll, } from "../../compiler/src/ml_parser/ast.js"; | ||
export { ParseSourceSpan, ParseLocation, ParseSourceFile, } from "../../compiler/src/parse_util.js"; | ||
export { getHtmlTagDefinition } from "../../compiler/src/ml_parser/html_tags.js"; |
@@ -10,3 +10,2 @@ import { HtmlParser } from "../../compiler/src/ml_parser/html_parser.js"; | ||
}; | ||
export { TagContentType }; | ||
export function parse(input, options = {}) { | ||
@@ -21,1 +20,6 @@ const { canSelfClose = false, allowHtmComponentClosingTags = false, isTagNameCaseSensitive = false, getTagContentType, } = options; | ||
} | ||
// For prettier | ||
export { TagContentType }; | ||
export { RecursiveVisitor, visitAll, } from "../../compiler/src/ml_parser/ast.js"; | ||
export { ParseSourceSpan, ParseLocation, ParseSourceFile, } from "../../compiler/src/parse_util.js"; | ||
export { getHtmlTagDefinition } from "../../compiler/src/ml_parser/html_tags.js"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ export declare class ParseLocation { |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
{ | ||
"name": "angular-html-parser", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "A HTML parser extracted from Angular with some modifications", | ||
@@ -5,0 +5,0 @@ "main": "lib/angular-html-parser/src/index.js", |
@@ -22,5 +22,15 @@ # angular-html-parser | ||
```js | ||
const ngHtmlParser = require('angular-html-parser'); | ||
import {parse} from 'angular-html-parser'; | ||
const {rootNodes, errors} = ngHtmlParser.parse('<div>hello world</div>'); | ||
const {rootNodes, errors} = parse(` | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Hello world!</title> | ||
</head> | ||
<body> | ||
<div>Hello world!</div> | ||
</body> | ||
</html> | ||
`); | ||
``` | ||
@@ -27,0 +37,0 @@ |
@@ -0,0 +0,0 @@ This project incorporates third party material from the projects listed below. |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
208526
35
5552
100
1