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.js
CHANGED
|
@@ -9028,9 +9028,13 @@ var XPathBaseParser = class {
|
|
|
9028
9028
|
return expr;
|
|
9029
9029
|
}
|
|
9030
9030
|
parsePrimaryExpr() {
|
|
9031
|
-
var _a, _b;
|
|
9031
|
+
var _a, _b, _c;
|
|
9032
9032
|
if (this.match("DOLLAR")) {
|
|
9033
|
-
const
|
|
9033
|
+
const next = this.peek();
|
|
9034
|
+
if (!next || !this.isNcNameToken(next.type)) {
|
|
9035
|
+
throw grammarViolation(`Expected variable name after $. Got: ${(_a = next == null ? void 0 : next.lexeme) != null ? _a : "EOF"}`);
|
|
9036
|
+
}
|
|
9037
|
+
const name = this.advance().lexeme;
|
|
9034
9038
|
return new XPathVariableReference(name);
|
|
9035
9039
|
}
|
|
9036
9040
|
if (this.match("OPEN_PAREN")) {
|
|
@@ -9054,7 +9058,7 @@ var XPathBaseParser = class {
|
|
|
9054
9058
|
return this.parseFunctionCall();
|
|
9055
9059
|
}
|
|
9056
9060
|
throw grammarViolation(
|
|
9057
|
-
`Unexpected token in primary expression: ${(
|
|
9061
|
+
`Unexpected token in primary expression: ${(_c = (_b = this.peek()) == null ? void 0 : _b.lexeme) != null ? _c : "EOF"}`
|
|
9058
9062
|
);
|
|
9059
9063
|
}
|
|
9060
9064
|
parseFunctionCall() {
|