@almadar/evaluator 2.10.1 → 2.11.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/dist/index.js CHANGED
@@ -903,7 +903,11 @@ function evalWithItem(expr, evaluate2, ctx, item, index) {
903
903
  }
904
904
  }
905
905
  const childCtx = createChildContext(ctx, locals);
906
- return evaluate2(expr, childCtx);
906
+ let result = evaluate2(expr, childCtx);
907
+ if (isSExpr(result)) {
908
+ result = evalWithItem(result, evaluate2, childCtx, item, index);
909
+ }
910
+ return result;
907
911
  }
908
912
  function evalReduceLambda(lambdaExpr, evaluate2, ctx, acc, item) {
909
913
  const locals = /* @__PURE__ */ new Map();