Update dependency angular-html-parser to v10.10.0 (#19464)
Co-authored-by: fisker <lionkay@gmail.com>
This commit is contained in:
1 parent
82c427eed7
commit
b5bb77115c
5 files changed
+20
-17
No files matched your search
+2
-1
@@ -236,6 +236,7 @@
|
||||
"sbdchd",
|
||||
"scandir",
|
||||
"seiyab",
|
||||
"Selectorless",
|
||||
"Setext",
|
||||
"setlocal",
|
||||
"setq",
|
||||
@@ -304,8 +305,8 @@
|
||||
"webcompat",
|
||||
"webstorm",
|
||||
"Weixin",
|
||||
"worktrees",
|
||||
"withastro",
|
||||
"worktrees",
|
||||
"writeonly",
|
||||
"wxss",
|
||||
"xdescribe",
|
||||
|
||||
+1
-1
@@ -56,7 +56,7 @@
|
||||
"acorn": "8.17.0",
|
||||
"acorn-jsx": "5.3.2",
|
||||
"angular-estree-parser": "15.5.0",
|
||||
"angular-html-parser": "10.9.0",
|
||||
"angular-html-parser": "10.10.0",
|
||||
"camelcase": "9.0.0",
|
||||
"ci-info": "4.4.0",
|
||||
"cjk-regex": "3.4.0",
|
||||
|
||||
@@ -6,32 +6,34 @@ import { TagContentType } from "angular-html-parser";
|
||||
*/
|
||||
|
||||
/**
|
||||
@typedef {HtmlParseOptions & {
|
||||
@typedef {Omit<HtmlParseOptions, "enableAngularSelectorlessSyntax"> & {
|
||||
name: 'html' | 'angular' | 'vue' | 'lwc' | 'mjml';
|
||||
normalizeTagName?: boolean;
|
||||
normalizeAttributeName?: boolean;
|
||||
shouldParseAsRawText?: (tagName: string, prefix: string, hasParent: boolean, attrs: Array<{
|
||||
shouldParseAsRawText?: (tagName: string, prefix: string, hasParent: boolean, attrs: {
|
||||
prefix: string;
|
||||
name: string;
|
||||
value?: string;
|
||||
}>) => boolean;
|
||||
}} RawParseOptions
|
||||
|
||||
@typedef {RawParseOptions & typeof DEFAULT_PARSE_OPTIONS} ParseOptions
|
||||
}[]) => boolean;
|
||||
shouldParseFrontMatter?: boolean;
|
||||
}} ParseOptions
|
||||
*/
|
||||
|
||||
/**
|
||||
@type {Omit<ParseOptions, "name">}
|
||||
*/
|
||||
const DEFAULT_PARSE_OPTIONS = {
|
||||
canSelfClose: true,
|
||||
normalizeTagName: false,
|
||||
normalizeAttributeName: false,
|
||||
allowHtmComponentClosingTags: false,
|
||||
allowInElementComments: false,
|
||||
allowStartTagComments: false,
|
||||
isTagNameCaseSensitive: false,
|
||||
shouldParseFrontMatter: true,
|
||||
};
|
||||
|
||||
/**
|
||||
@param {RawParseOptions} rawParseOptions
|
||||
@param {ParseOptions} rawParseOptions
|
||||
@returns {ParseOptions}
|
||||
*/
|
||||
function normalizeParseOptions(rawParseOptions) {
|
||||
|
||||
@@ -4,11 +4,11 @@ import { HTML_PARSE_OPTIONS, parse, parseHtml, parseVue } from "./parse.js";
|
||||
import { normalizeParseOptions } from "./parse-options.js";
|
||||
|
||||
/**
|
||||
@import { RawParseOptions } from "./parse-options.js";
|
||||
@import { ParseOptions } from "./parse-options.js";
|
||||
*/
|
||||
|
||||
/**
|
||||
* @param {RawParseOptions} rawParseOptions
|
||||
* @param {ParseOptions} rawParseOptions
|
||||
*/
|
||||
function createParser(rawParseOptions) {
|
||||
const parseOptions = normalizeParseOptions(rawParseOptions);
|
||||
|
||||
@@ -2921,10 +2921,10 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"angular-html-parser@npm:10.9.0":
|
||||
version: 10.9.0
|
||||
resolution: "angular-html-parser@npm:10.9.0"
|
||||
checksum: 10/395e8ad229467f78d0cb5b3388a43befc54b09cd6c0ef0686b010206a3000fa2e2acafd67d45d2e4ff8946f67efec9cfae81e5dc513938a5267103a65a45404e
|
||||
"angular-html-parser@npm:10.10.0":
|
||||
version: 10.10.0
|
||||
resolution: "angular-html-parser@npm:10.10.0"
|
||||
checksum: 10/820a1e96439d1ab02d4fb3524ac6a09a2b9a8622879692732508ee96c6f9847fdd899a3750714e6e39aff06ec864c405c5555167ed8068fd1e613b0f151c633f
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -7938,7 +7938,7 @@ __metadata:
|
||||
acorn: "npm:8.17.0"
|
||||
acorn-jsx: "npm:5.3.2"
|
||||
angular-estree-parser: "npm:15.5.0"
|
||||
angular-html-parser: "npm:10.9.0"
|
||||
angular-html-parser: "npm:10.10.0"
|
||||
base64-arraybuffer-es6: "npm:3.1.0"
|
||||
browserslist: "npm:4.28.4"
|
||||
browserslist-to-esbuild: "npm:2.1.1"
|
||||
|
||||
Reference in new issue
Block a user