@eslint-react/var 1.17.4-next.1 → 1.17.4-next.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 +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -268,6 +268,9 @@ function isNodeValueEqual(a, b, initialScopes) {
|
|
|
268
268
|
case (tools.O.exists(aDefParentParent, AST__namespace.is(types.AST_NODE_TYPES.ForOfStatement)) && tools.O.exists(bDefParentParent, AST__namespace.is(types.AST_NODE_TYPES.ForOfStatement))): {
|
|
269
269
|
return tools.F.pipe(
|
|
270
270
|
tools.O.Do,
|
|
271
|
+
tools.O.bind("aLeft", () => tools.O.map(aDefParentParent, (d) => d.left)),
|
|
272
|
+
tools.O.bind("bLeft", () => tools.O.map(bDefParentParent, (d) => d.left)),
|
|
273
|
+
tools.O.filter(({ aLeft, bLeft }) => aLeft.type === bLeft.type),
|
|
271
274
|
tools.O.bind("aRight", () => tools.O.map(aDefParentParent, (d) => d.right)),
|
|
272
275
|
tools.O.bind("bRight", () => tools.O.map(bDefParentParent, (d) => d.right)),
|
|
273
276
|
tools.O.exists(({ aRight, bRight }) => AST__namespace.isNodeEqual(aRight, bRight))
|
package/dist/index.mjs
CHANGED
|
@@ -246,6 +246,9 @@ function isNodeValueEqual(a, b, initialScopes) {
|
|
|
246
246
|
case (O.exists(aDefParentParent, AST.is(AST_NODE_TYPES.ForOfStatement)) && O.exists(bDefParentParent, AST.is(AST_NODE_TYPES.ForOfStatement))): {
|
|
247
247
|
return F.pipe(
|
|
248
248
|
O.Do,
|
|
249
|
+
O.bind("aLeft", () => O.map(aDefParentParent, (d) => d.left)),
|
|
250
|
+
O.bind("bLeft", () => O.map(bDefParentParent, (d) => d.left)),
|
|
251
|
+
O.filter(({ aLeft, bLeft }) => aLeft.type === bLeft.type),
|
|
249
252
|
O.bind("aRight", () => O.map(aDefParentParent, (d) => d.right)),
|
|
250
253
|
O.bind("bRight", () => O.map(bDefParentParent, (d) => d.right)),
|
|
251
254
|
O.exists(({ aRight, bRight }) => AST.isNodeEqual(aRight, bRight))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/var",
|
|
3
|
-
"version": "1.17.4-next.
|
|
3
|
+
"version": "1.17.4-next.2",
|
|
4
4
|
"description": "TSESTree AST utility module for static analysis of variables",
|
|
5
5
|
"homepage": "https://github.com/rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"@typescript-eslint/types": "^8.17.0",
|
|
40
40
|
"@typescript-eslint/utils": "^8.17.0",
|
|
41
41
|
"ts-pattern": "^5.5.0",
|
|
42
|
-
"@eslint-react/ast": "1.17.4-next.
|
|
43
|
-
"@eslint-react/
|
|
44
|
-
"@eslint-react/
|
|
42
|
+
"@eslint-react/ast": "1.17.4-next.2",
|
|
43
|
+
"@eslint-react/types": "1.17.4-next.2",
|
|
44
|
+
"@eslint-react/tools": "1.17.4-next.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"string-ts": "^2.2.0",
|