@eslint-react/ast 5.30.0-beta.6 → 5.30.0-beta.8
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 +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -381,7 +381,7 @@ const isEqual = dual(2, (a, b) => {
|
|
|
381
381
|
}
|
|
382
382
|
case isIdentifier(a) && isIdentifier(b): return a.name === b.name;
|
|
383
383
|
case a.type === AST_NODE_TYPES.PrivateIdentifier && b.type === AST_NODE_TYPES.PrivateIdentifier: return a.name === b.name;
|
|
384
|
-
case a.type === AST_NODE_TYPES.MemberExpression && b.type === AST_NODE_TYPES.MemberExpression: return isEqual(a.property, b.property) && isEqual(a.object, b.object);
|
|
384
|
+
case a.type === AST_NODE_TYPES.MemberExpression && b.type === AST_NODE_TYPES.MemberExpression: return a.computed === b.computed && a.optional === b.optional && isEqual(a.property, b.property) && isEqual(a.object, b.object);
|
|
385
385
|
case a.type === AST_NODE_TYPES.CallExpression && b.type === AST_NODE_TYPES.CallExpression: {
|
|
386
386
|
if (a.optional !== b.optional) return false;
|
|
387
387
|
if (a.arguments.length !== b.arguments.length) return false;
|