angular-html-parser
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -33,5 +33,5 @@ import { TagContentType } from '../../compiler/src/ml_parser/tags.js'; | ||
/** | ||
* tokenize blocks (Angular Control Flow Syntax) | ||
* tokenize angular control flow block syntax | ||
*/ | ||
tokenizeBlocks?: boolean; | ||
tokenizeAngularBlocks?: boolean; | ||
} | ||
@@ -38,0 +38,0 @@ export declare function parse(input: string, options?: ParseOptions): ParseTreeResult; |
@@ -11,3 +11,3 @@ import { HtmlParser } from "../../compiler/src/ml_parser/html_parser.js"; | ||
export function parse(input, options = {}) { | ||
const { canSelfClose = false, allowHtmComponentClosingTags = false, isTagNameCaseSensitive = false, getTagContentType, tokenizeBlocks = false, } = options; | ||
const { canSelfClose = false, allowHtmComponentClosingTags = false, isTagNameCaseSensitive = false, getTagContentType, tokenizeAngularBlocks = false, } = options; | ||
return getParser().parse(input, "angular-html-parser", { | ||
@@ -18,3 +18,3 @@ tokenizeExpansionForms: false, | ||
allowHtmComponentClosingTags, | ||
tokenizeBlocks, | ||
tokenizeBlocks: tokenizeAngularBlocks, | ||
}, isTagNameCaseSensitive, getTagContentType); | ||
@@ -21,0 +21,0 @@ } |
@@ -106,2 +106,4 @@ /** | ||
readonly type = "blockParameter"; | ||
readonly startSourceSpan: null; | ||
readonly endSourceSpan: null; | ||
} | ||
@@ -108,0 +110,0 @@ export interface Visitor { |
@@ -133,2 +133,4 @@ /** | ||
this.type = 'blockParameter'; | ||
this.startSourceSpan = null; | ||
this.endSourceSpan = null; | ||
} | ||
@@ -135,0 +137,0 @@ visit(visitor, context) { |
{ | ||
"name": "angular-html-parser", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "A HTML parser extracted from Angular with some modifications", | ||
@@ -5,0 +5,0 @@ "main": "./lib/angular-html-parser/src/index.js", |
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
273327
7310
0