@eslint-react/var 5.14.8 → 5.14.10

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -144,9 +144,9 @@ function computeObjectType(context, node) {
144
144
  node
145
145
  };
146
146
  }
147
- if (callee.type === AST_NODE_TYPES.MemberExpression && callee.object.type === AST_NODE_TYPES.Identifier && callee.property.type === AST_NODE_TYPES.Identifier) {
147
+ if (callee.type === AST_NODE_TYPES.MemberExpression && callee.object.type === AST_NODE_TYPES.Identifier) {
148
148
  const objName = callee.object.name;
149
- const methodName = callee.property.name;
149
+ const methodName = Extract.getCalleeName(node);
150
150
  switch (objName) {
151
151
  case "Array":
152
152
  if (methodName === "from" || methodName === "of") return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/var",
3
- "version": "5.14.8",
3
+ "version": "5.14.10",
4
4
  "description": "ESLint React's TSESTree AST utility module for static analysis of variables.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
@@ -33,14 +33,14 @@
33
33
  "@typescript-eslint/types": "^8.63.0",
34
34
  "@typescript-eslint/utils": "^8.63.0",
35
35
  "ts-pattern": "^5.9.0",
36
- "@eslint-react/ast": "5.14.8",
37
- "@eslint-react/eslint": "5.14.8"
36
+ "@eslint-react/ast": "5.14.10",
37
+ "@eslint-react/eslint": "5.14.10"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@typescript-eslint/parser": "^8.63.0",
41
41
  "@typescript-eslint/typescript-estree": "^8.63.0",
42
42
  "eslint": "^10.7.0",
43
- "tsdown": "^0.22.5",
43
+ "tsdown": "^0.22.7",
44
44
  "typescript": "6.0.3",
45
45
  "vitest": "^4.1.10",
46
46
  "@local/configs": "0.0.0",