xslt-processor 4.8.3 → 4.8.4
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/index.js +7 -3
- package/index.js.map +1 -1
- package/index.mjs +7 -3
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/umd/xslt-processor.global.js +3 -3
- package/umd/xslt-processor.global.js.map +1 -1
package/index.mjs
CHANGED
|
@@ -9017,9 +9017,13 @@ var XPathBaseParser = class {
|
|
|
9017
9017
|
return expr;
|
|
9018
9018
|
}
|
|
9019
9019
|
parsePrimaryExpr() {
|
|
9020
|
-
var _a, _b;
|
|
9020
|
+
var _a, _b, _c;
|
|
9021
9021
|
if (this.match("DOLLAR")) {
|
|
9022
|
-
const
|
|
9022
|
+
const next = this.peek();
|
|
9023
|
+
if (!next || !this.isNcNameToken(next.type)) {
|
|
9024
|
+
throw grammarViolation(`Expected variable name after $. Got: ${(_a = next == null ? void 0 : next.lexeme) != null ? _a : "EOF"}`);
|
|
9025
|
+
}
|
|
9026
|
+
const name = this.advance().lexeme;
|
|
9023
9027
|
return new XPathVariableReference(name);
|
|
9024
9028
|
}
|
|
9025
9029
|
if (this.match("OPEN_PAREN")) {
|
|
@@ -9043,7 +9047,7 @@ var XPathBaseParser = class {
|
|
|
9043
9047
|
return this.parseFunctionCall();
|
|
9044
9048
|
}
|
|
9045
9049
|
throw grammarViolation(
|
|
9046
|
-
`Unexpected token in primary expression: ${(
|
|
9050
|
+
`Unexpected token in primary expression: ${(_c = (_b = this.peek()) == null ? void 0 : _b.lexeme) != null ? _c : "EOF"}`
|
|
9047
9051
|
);
|
|
9048
9052
|
}
|
|
9049
9053
|
parseFunctionCall() {
|