htmljs-parser 5.2.0 → 5.2.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 +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1842,7 +1842,7 @@ function lookAheadForOperator(data, pos) {
|
|
|
1842
1842
|
if (nextPos === max)
|
|
1843
1843
|
return -1;
|
|
1844
1844
|
nextCode = data.charCodeAt(nextPos);
|
|
1845
|
-
} else
|
|
1845
|
+
} else {
|
|
1846
1846
|
return -1;
|
|
1847
1847
|
}
|
|
1848
1848
|
switch (nextCode) {
|
|
@@ -2317,6 +2317,7 @@ function checkForPlaceholder(parser, code) {
|
|
|
2317
2317
|
curCode = parser.lookAtCharCodeAhead(ahead + 2);
|
|
2318
2318
|
}
|
|
2319
2319
|
if (curCode === 123 /* OPEN_CURLY_BRACE */) {
|
|
2320
|
+
parser.forward = 0;
|
|
2320
2321
|
if (ahead) {
|
|
2321
2322
|
const remainder = ahead % 2;
|
|
2322
2323
|
const extra = (ahead + remainder) / 2;
|
|
@@ -2336,7 +2337,6 @@ function checkForPlaceholder(parser, code) {
|
|
|
2336
2337
|
parser.endText();
|
|
2337
2338
|
parser.enterState(PLACEHOLDER).escape = escape;
|
|
2338
2339
|
parser.pos += escape ? 2 : 3;
|
|
2339
|
-
parser.forward = 0;
|
|
2340
2340
|
parser.enterState(states_exports.EXPRESSION).shouldTerminate = matchesCloseCurlyBrace;
|
|
2341
2341
|
return true;
|
|
2342
2342
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1817,7 +1817,7 @@ function lookAheadForOperator(data, pos) {
|
|
|
1817
1817
|
if (nextPos === max)
|
|
1818
1818
|
return -1;
|
|
1819
1819
|
nextCode = data.charCodeAt(nextPos);
|
|
1820
|
-
} else
|
|
1820
|
+
} else {
|
|
1821
1821
|
return -1;
|
|
1822
1822
|
}
|
|
1823
1823
|
switch (nextCode) {
|
|
@@ -2292,6 +2292,7 @@ function checkForPlaceholder(parser, code) {
|
|
|
2292
2292
|
curCode = parser.lookAtCharCodeAhead(ahead + 2);
|
|
2293
2293
|
}
|
|
2294
2294
|
if (curCode === 123 /* OPEN_CURLY_BRACE */) {
|
|
2295
|
+
parser.forward = 0;
|
|
2295
2296
|
if (ahead) {
|
|
2296
2297
|
const remainder = ahead % 2;
|
|
2297
2298
|
const extra = (ahead + remainder) / 2;
|
|
@@ -2311,7 +2312,6 @@ function checkForPlaceholder(parser, code) {
|
|
|
2311
2312
|
parser.endText();
|
|
2312
2313
|
parser.enterState(PLACEHOLDER).escape = escape;
|
|
2313
2314
|
parser.pos += escape ? 2 : 3;
|
|
2314
|
-
parser.forward = 0;
|
|
2315
2315
|
parser.enterState(states_exports.EXPRESSION).shouldTerminate = matchesCloseCurlyBrace;
|
|
2316
2316
|
return true;
|
|
2317
2317
|
}
|
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": "5.2.
|
|
4
|
+
"version": "5.2.2",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@changesets/changelog-github": "^0.4.7",
|
|
7
7
|
"@changesets/cli": "^2.25.2",
|