htmljs-parser 3.3.1 → 3.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1097,7 +1097,7 @@ var EXPRESSION = {
|
|
|
1097
1097
|
}
|
|
1098
1098
|
};
|
|
1099
1099
|
function buildOperatorPattern(isConcise) {
|
|
1100
|
-
const binary = `[!~*%&^|?:<]+|
|
|
1100
|
+
const binary = `(?:[!~*%&^|?:<]+=*)+|[>/+-=]+=|=>|(?<!\\+)[ \\t]*\\+(?:[ \\t]*\\+[ \\t]*\\+)*[ \\t]*(?!\\+)|(?<!-)-${isConcise ? "" : "(?:[ \\t]*-[ \\t]*-)*[ \\t]*"}(?!-)|(?<![/*])/(?![/*${isConcise ? "" : ">"}])|(?<!\\.)\\.(?!\\.)|>${isConcise ? "+" : "{2,}"}|\\b(?:in(?:stanceof)?|as|extends)(?=[ \\t]+[^=/,;:>])`;
|
|
1101
1101
|
const unary = "\\b(?:a(?:sync|wait)|keyof|class|function|new|typeof|void)\\b";
|
|
1102
1102
|
const lookAheadPattern = "[ \\t]*(?:" + binary + `)[ \\t]*|[ \\t]+(?=[{(])`;
|
|
1103
1103
|
const lookBehindPattern = `(?<=${unary}|${binary})`;
|
package/dist/index.mjs
CHANGED
|
@@ -1076,7 +1076,7 @@ var EXPRESSION = {
|
|
|
1076
1076
|
}
|
|
1077
1077
|
};
|
|
1078
1078
|
function buildOperatorPattern(isConcise) {
|
|
1079
|
-
const binary = `[!~*%&^|?:<]+|
|
|
1079
|
+
const binary = `(?:[!~*%&^|?:<]+=*)+|[>/+-=]+=|=>|(?<!\\+)[ \\t]*\\+(?:[ \\t]*\\+[ \\t]*\\+)*[ \\t]*(?!\\+)|(?<!-)-${isConcise ? "" : "(?:[ \\t]*-[ \\t]*-)*[ \\t]*"}(?!-)|(?<![/*])/(?![/*${isConcise ? "" : ">"}])|(?<!\\.)\\.(?!\\.)|>${isConcise ? "+" : "{2,}"}|\\b(?:in(?:stanceof)?|as|extends)(?=[ \\t]+[^=/,;:>])`;
|
|
1080
1080
|
const unary = "\\b(?:a(?:sync|wait)|keyof|class|function|new|typeof|void)\\b";
|
|
1081
1081
|
const lookAheadPattern = "[ \\t]*(?:" + binary + `)[ \\t]*|[ \\t]+(?=[{(])`;
|
|
1082
1082
|
const lookBehindPattern = `(?<=${unary}|${binary})`;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "htmljs-parser",
|
|
3
3
|
"description": "An HTML parser recognizes content and string placeholders and allows JavaScript expressions as attribute values",
|
|
4
|
-
"version": "3.3.
|
|
4
|
+
"version": "3.3.2",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@changesets/changelog-github": "^0.4.4",
|
|
7
7
|
"@changesets/cli": "^2.22.0",
|