@eslint-react/ast 5.8.7 → 5.8.9

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 +1 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -223,7 +223,7 @@ function getRootIdentifier(node) {
223
223
  return null;
224
224
  }
225
225
  function getPropertyName(node) {
226
- if (isTypeExpression(node)) return getPropertyName(unwrap(node));
226
+ node = unwrap(node);
227
227
  if (node.type === AST_NODE_TYPES.Identifier || node.type === AST_NODE_TYPES.PrivateIdentifier) return node.name;
228
228
  if (node.type === AST_NODE_TYPES.Literal) return String(node.value);
229
229
  if (node.type === AST_NODE_TYPES.TemplateLiteral && node.expressions.length === 0) return node.quasis[0]?.value.cooked ?? node.quasis[0]?.value.raw ?? null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/ast",
3
- "version": "5.8.7",
3
+ "version": "5.8.9",
4
4
  "description": "ESLint React's TSESTree AST utility module.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "devDependencies": {
38
38
  "@typescript-eslint/parser": "^8.60.0",
39
- "eslint": "^10.4.0",
39
+ "eslint": "^10.4.1",
40
40
  "tsdown": "^0.22.1",
41
41
  "typescript": "5.9.3",
42
42
  "vitest": "^4.1.7",