pacc 4.39.0 → 4.39.1
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/expression.mjs +5 -2
package/package.json
CHANGED
package/src/expression.mjs
CHANGED
|
@@ -248,12 +248,15 @@ export function parse(input, context = { globals }) {
|
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
left.path.push(args);
|
|
251
|
-
left.eval = node => {
|
|
251
|
+
left.eval = (node, current) => {
|
|
252
252
|
const args = node.path[1].map(a =>
|
|
253
|
-
typeof a === "object" ? a.eval(a) : a
|
|
253
|
+
typeof a === "object" ? a.eval(a,current) : a
|
|
254
254
|
);
|
|
255
255
|
return context.globals[node.path[0]](...args);
|
|
256
256
|
};
|
|
257
|
+
|
|
258
|
+
advance();
|
|
259
|
+
|
|
257
260
|
return left;
|
|
258
261
|
}
|
|
259
262
|
break;
|