@eslint-react/ast 5.2.5-next.1 → 5.3.0-next.0

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
@@ -224,7 +224,7 @@ var extract_exports = /* @__PURE__ */ __exportAll({
224
224
  unwrap: () => unwrap
225
225
  });
226
226
  function unwrap(node) {
227
- if (isTypeExpression(node)) return unwrap(node.expression);
227
+ if (isTypeExpression(node) || node.type === AST_NODE_TYPES.ChainExpression) return unwrap(node.expression);
228
228
  return node;
229
229
  }
230
230
  function getRootIdentifier(node) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/ast",
3
- "version": "5.2.5-next.1",
3
+ "version": "5.3.0-next.0",
4
4
  "description": "ESLint React's TSESTree AST utility module.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
@@ -41,7 +41,7 @@
41
41
  "@local/eff": "3.0.0-beta.72"
42
42
  },
43
43
  "peerDependencies": {
44
- "eslint": "^10.2.0",
44
+ "eslint": "^10.2.1",
45
45
  "typescript": "*"
46
46
  },
47
47
  "engines": {