pasika 0.10.10 → 0.10.11

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.
@@ -3178,6 +3178,9 @@ function analyzeHandlerBody(body, sourceText) {
3178
3178
  if (ts4.isTryStatement(node)) kinds.add("try");
3179
3179
  if (isLoop(node)) kinds.add("loop");
3180
3180
  if (ts4.isIfStatement(node)) kinds.add("if");
3181
+ if (ts4.isCallExpression(node) && ts4.isPropertyAccessExpression(node.expression) && node.expression.name.text === "map") {
3182
+ kinds.add("map");
3183
+ }
3181
3184
  if (ts4.isCallExpression(node) && ts4.isIdentifier(node.expression)) calledNames.add(node.expression.text);
3182
3185
  if (isFunctionBoundary(node)) return;
3183
3186
  ts4.forEachChild(node, visit);
@@ -3188,7 +3191,8 @@ function analyzeHandlerBody(body, sourceText) {
3188
3191
  var CONTROL_FLOW_MESSAGES = {
3189
3192
  try: "a try statement",
3190
3193
  loop: "a loop",
3191
- if: "an if statement"
3194
+ if: "an if statement",
3195
+ map: "a map operation"
3192
3196
  };
3193
3197
  function isFunctionLikeInit(node) {
3194
3198
  return node?.type === "ArrowFunctionExpression" || node?.type === "FunctionExpression";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pasika",
3
- "version": "0.10.10",
3
+ "version": "0.10.11",
4
4
  "description": "Reusable agent setup package",
5
5
  "repository": {
6
6
  "type": "git",