@eslint-react/ast 2.6.5-beta.0 → 2.6.5-beta.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.d.ts CHANGED
@@ -22,7 +22,7 @@ type TSESTreeTypeExpression = TSESTree$1.TSAsExpression | TSESTree$1.TSNonNullEx
22
22
  type TSESTreeTypeAssertionExpression = TSESTree$1.TSAsExpression | TSESTree$1.TSNonNullExpression | TSESTree$1.TSSatisfiesExpression | TSESTree$1.TSTypeAssertion;
23
23
  //#endregion
24
24
  //#region src/class-id.d.ts
25
- declare function getClassId(node: TSESTreeClass): TSESTree.Identifier | unit;
25
+ declare function getClassId(node: TSESTreeClass): TSESTree.BindingName | unit;
26
26
  //#endregion
27
27
  //#region src/equal.d.ts
28
28
  /**
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@ const isArrayFromCallLoose = isMethodCall("from", (name) => name.startsWith("fro
20
20
  //#region src/class-id.ts
21
21
  function getClassId(node) {
22
22
  if (node.id != null) return node.id;
23
- if (node.parent.type === AST_NODE_TYPES.VariableDeclarator && node.parent.id.type === AST_NODE_TYPES.Identifier) return node.parent.id;
23
+ if (node.parent.type === AST_NODE_TYPES.VariableDeclarator) return node.parent.id;
24
24
  return unit;
25
25
  }
26
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/ast",
3
- "version": "2.6.5-beta.0",
3
+ "version": "2.6.5-beta.1",
4
4
  "description": "ESLint React's TSESTree AST utility module.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
@@ -34,7 +34,7 @@
34
34
  "@typescript-eslint/typescript-estree": "^8.53.0",
35
35
  "@typescript-eslint/utils": "^8.53.0",
36
36
  "string-ts": "^2.3.1",
37
- "@eslint-react/eff": "2.6.5-beta.0"
37
+ "@eslint-react/eff": "2.6.5-beta.1"
38
38
  },
39
39
  "devDependencies": {
40
40
  "tsdown": "^0.20.0-beta.3",