@eslint-react/var
Advanced tools
Comparing version 1.22.1-next.1 to 1.22.1-next.2
@@ -204,3 +204,3 @@ 'use strict'; | ||
return eff.F.pipe( | ||
getRequireExpressionArgument(init), | ||
getRequireExpressionArguments(init), | ||
eff.O.flatMapNullable((args) => args[0]), | ||
@@ -214,3 +214,3 @@ eff.O.filter(AST__namespace.isStringLiteral), | ||
} | ||
function getRequireExpressionArgument(node) { | ||
function getRequireExpressionArguments(node) { | ||
switch (true) { | ||
@@ -223,3 +223,3 @@ // require('source') | ||
case node.type === types.AST_NODE_TYPES.MemberExpression: { | ||
return getRequireExpressionArgument(node.object); | ||
return getRequireExpressionArguments(node.object); | ||
} | ||
@@ -226,0 +226,0 @@ } |
{ | ||
"name": "@eslint-react/var", | ||
"version": "1.22.1-next.1", | ||
"version": "1.22.1-next.2", | ||
"description": "ESLint React's TSESTree AST utility module for static analysis of variables", | ||
@@ -41,9 +41,9 @@ "homepage": "https://github.com/rel1cx/eslint-react", | ||
"@typescript-eslint/utils": "^8.18.1", | ||
"string-ts": "^2.2.0", | ||
"ts-pattern": "^5.6.0", | ||
"@eslint-react/ast": "1.22.1-next.1", | ||
"@eslint-react/types": "1.22.1-next.1", | ||
"@eslint-react/eff": "1.22.1-next.1" | ||
"@eslint-react/ast": "1.22.1-next.2", | ||
"@eslint-react/eff": "1.22.1-next.2", | ||
"@eslint-react/types": "1.22.1-next.2" | ||
}, | ||
"devDependencies": { | ||
"string-ts": "^2.2.0", | ||
"tsup": "^8.3.5", | ||
@@ -50,0 +50,0 @@ "@workspace/configs": "0.0.0" |
Sorry, the diff of this file is not supported yet
72151
2
8
+ Addedstring-ts@^2.2.0
+ Added@eslint-react/ast@1.22.1-next.2(transitive)
+ Added@eslint-react/eff@1.22.1-next.2(transitive)
+ Added@eslint-react/types@1.22.1-next.2(transitive)
- Removed@eslint-react/ast@1.22.1-next.1(transitive)
- Removed@eslint-react/eff@1.22.1-next.1(transitive)
- Removed@eslint-react/types@1.22.1-next.1(transitive)