@eslint-react/ast 1.28.1-next.5 → 1.28.1-next.6

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
@@ -265,7 +265,7 @@ function getFunctionIdentifier(node) {
265
265
  return node.parent.key;
266
266
  // class {MaybeComponent = () => {}}
267
267
  // class {MaybeComponent() {}}
268
- case (isOneOf([types.AST_NODE_TYPES.MethodDefinition, types.AST_NODE_TYPES.PropertyDefinition])(node.parent) && node.parent.value === node && node.parent.key.type === types.AST_NODE_TYPES.Identifier):
268
+ case (isMethodOrProperty(node.parent) && node.parent.value === node && node.parent.key.type === types.AST_NODE_TYPES.Identifier):
269
269
  return node.parent.key;
270
270
  // Follow spec convention for `IsAnonymousFunctionDefinition()` usage.
271
271
  //
package/dist/index.mjs CHANGED
@@ -263,7 +263,7 @@ function getFunctionIdentifier(node) {
263
263
  return node.parent.key;
264
264
  // class {MaybeComponent = () => {}}
265
265
  // class {MaybeComponent() {}}
266
- case (isOneOf([AST_NODE_TYPES.MethodDefinition, AST_NODE_TYPES.PropertyDefinition])(node.parent) && node.parent.value === node && node.parent.key.type === AST_NODE_TYPES.Identifier):
266
+ case (isMethodOrProperty(node.parent) && node.parent.value === node && node.parent.key.type === AST_NODE_TYPES.Identifier):
267
267
  return node.parent.key;
268
268
  // Follow spec convention for `IsAnonymousFunctionDefinition()` usage.
269
269
  //
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/ast",
3
- "version": "1.28.1-next.5",
3
+ "version": "1.28.1-next.6",
4
4
  "description": "ESLint React's TSESTree AST utility module.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
@@ -40,7 +40,7 @@
40
40
  "@typescript-eslint/utils": "^8.25.0",
41
41
  "string-ts": "^2.2.1",
42
42
  "ts-pattern": "^5.6.2",
43
- "@eslint-react/eff": "1.28.1-next.5"
43
+ "@eslint-react/eff": "1.28.1-next.6"
44
44
  },
45
45
  "devDependencies": {
46
46
  "tsup": "^8.4.0",