@eslint-react/ast 1.53.0 → 1.53.1-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.js CHANGED
@@ -21,11 +21,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  }) : target, mod));
22
22
 
23
23
  //#endregion
24
- const __typescript_eslint_types = __toESM(require("@typescript-eslint/types"));
25
- const __eslint_react_eff = __toESM(require("@eslint-react/eff"));
26
- const __typescript_eslint_utils = __toESM(require("@typescript-eslint/utils"));
27
- const __typescript_eslint_typescript_estree = __toESM(require("@typescript-eslint/typescript-estree"));
28
- const string_ts = __toESM(require("string-ts"));
24
+ let __typescript_eslint_types = require("@typescript-eslint/types");
25
+ __typescript_eslint_types = __toESM(__typescript_eslint_types);
26
+ let __eslint_react_eff = require("@eslint-react/eff");
27
+ __eslint_react_eff = __toESM(__eslint_react_eff);
28
+ let __typescript_eslint_utils = require("@typescript-eslint/utils");
29
+ __typescript_eslint_utils = __toESM(__typescript_eslint_utils);
30
+ let __typescript_eslint_typescript_estree = require("@typescript-eslint/typescript-estree");
31
+ __typescript_eslint_typescript_estree = __toESM(__typescript_eslint_typescript_estree);
32
+ let string_ts = require("string-ts");
33
+ string_ts = __toESM(string_ts);
29
34
 
30
35
  //#region src/ast-array-method.ts
31
36
  function isArrayFromCall(node, loose = true) {
@@ -329,8 +334,7 @@ function getNestedReturnStatements(node) {
329
334
  const boundaryNode = isFunction(node) ? node : findParentNode(node, isFunction);
330
335
  (0, __typescript_eslint_typescript_estree.simpleTraverse)(node, { enter(node$1) {
331
336
  if (node$1.type !== __typescript_eslint_types.AST_NODE_TYPES.ReturnStatement) return;
332
- const parentFunction = findParentNode(node$1, isFunction);
333
- if (parentFunction !== boundaryNode) return;
337
+ if (findParentNode(node$1, isFunction) !== boundaryNode) return;
334
338
  statements.push(node$1);
335
339
  } });
336
340
  return statements;
package/dist/index.mjs CHANGED
@@ -306,8 +306,7 @@ function getNestedReturnStatements(node) {
306
306
  const boundaryNode = isFunction(node) ? node : findParentNode(node, isFunction);
307
307
  simpleTraverse(node, { enter(node$1) {
308
308
  if (node$1.type !== AST_NODE_TYPES.ReturnStatement) return;
309
- const parentFunction = findParentNode(node$1, isFunction);
310
- if (parentFunction !== boundaryNode) return;
309
+ if (findParentNode(node$1, isFunction) !== boundaryNode) return;
311
310
  statements.push(node$1);
312
311
  } });
313
312
  return statements;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/ast",
3
- "version": "1.53.0",
3
+ "version": "1.53.1-beta.1",
4
4
  "description": "ESLint React's TSESTree AST utility module.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
@@ -35,15 +35,15 @@
35
35
  "./package.json"
36
36
  ],
37
37
  "dependencies": {
38
- "@typescript-eslint/types": "^8.42.0",
39
- "@typescript-eslint/typescript-estree": "^8.42.0",
40
- "@typescript-eslint/utils": "^8.42.0",
38
+ "@typescript-eslint/types": "^8.43.0",
39
+ "@typescript-eslint/typescript-estree": "^8.43.0",
40
+ "@typescript-eslint/utils": "^8.43.0",
41
41
  "string-ts": "^2.2.1",
42
42
  "ts-pattern": "^5.8.0",
43
- "@eslint-react/eff": "1.53.0"
43
+ "@eslint-react/eff": "1.53.1-beta.1"
44
44
  },
45
45
  "devDependencies": {
46
- "tsdown": "^0.14.2",
46
+ "tsdown": "^0.15.0",
47
47
  "@local/configs": "0.0.0"
48
48
  },
49
49
  "engines": {