@eslint-react/ast 5.8.4-beta.0 → 5.8.4-beta.2
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 +2 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -288,6 +288,7 @@ const isEqual = dual(2, (a, b) => {
|
|
|
288
288
|
while (i--) {
|
|
289
289
|
const exprA = a.expressions[i];
|
|
290
290
|
const exprB = b.expressions[i];
|
|
291
|
+
if (exprA == null || exprB == null) return false;
|
|
291
292
|
if (!isEqual(exprA, exprB)) return false;
|
|
292
293
|
}
|
|
293
294
|
return true;
|
|
@@ -314,7 +315,7 @@ function findParent(node, test, stop) {
|
|
|
314
315
|
if (node == null) return null;
|
|
315
316
|
let current = node.parent;
|
|
316
317
|
while (current != null) {
|
|
317
|
-
if (stop?.(current)) return null;
|
|
318
|
+
if (stop?.(current) ?? false) return null;
|
|
318
319
|
if (test(current)) return current;
|
|
319
320
|
if (current.type === AST_NODE_TYPES.Program) return null;
|
|
320
321
|
current = current.parent;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/ast",
|
|
3
|
-
"version": "5.8.4-beta.
|
|
3
|
+
"version": "5.8.4-beta.2",
|
|
4
4
|
"description": "ESLint React's TSESTree AST utility module.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"tsdown": "^0.22.0",
|
|
41
41
|
"typescript": "^6.0.3",
|
|
42
42
|
"vitest": "^4.1.6",
|
|
43
|
-
"@local/
|
|
44
|
-
"@local/
|
|
43
|
+
"@local/configs": "0.0.0",
|
|
44
|
+
"@local/eff": "3.0.0-beta.72"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"eslint": "^10.3.0",
|