pacc 8.11.1 → 8.11.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/package.json +1 -1
- package/src/ast.mjs +1 -2
- package/src/expression.mjs +2 -2
package/package.json
CHANGED
package/src/ast.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
/**
|
|
3
2
|
* @typedef {Object} AST
|
|
4
3
|
* @property {Function} [eval]
|
|
@@ -29,7 +28,7 @@ export function pathEval(node, current, context) {
|
|
|
29
28
|
}
|
|
30
29
|
break;
|
|
31
30
|
case "object":
|
|
32
|
-
if (current.values) {
|
|
31
|
+
if (typeof current.values === "function") {
|
|
33
32
|
current = current.values();
|
|
34
33
|
}
|
|
35
34
|
|
package/src/expression.mjs
CHANGED
|
@@ -33,7 +33,7 @@ export function parseOnly(input, context = {}) {
|
|
|
33
33
|
expect(expected) {
|
|
34
34
|
if (token !== expected) {
|
|
35
35
|
throw new Error(
|
|
36
|
-
`unexpected '${token
|
|
36
|
+
`unexpected '${token.str}' expecting '${expected.str}'`,
|
|
37
37
|
{ cause: token }
|
|
38
38
|
);
|
|
39
39
|
}
|
|
@@ -56,7 +56,7 @@ export function parseOnly(input, context = {}) {
|
|
|
56
56
|
|
|
57
57
|
advance();
|
|
58
58
|
|
|
59
|
-
return parser.expression(token.precedence
|
|
59
|
+
return parser.expression(token.precedence);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
export function parse(input, context) {
|