@lvce-editor/eslint-plugin-e2e 18.10.0 → 18.11.0

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -186,7 +186,13 @@ const isTsNonNullExpression = node => {
186
186
  return typeof node === 'object' && node !== null && 'type' in node && node.type === 'TSNonNullExpression' && 'expression' in node;
187
187
  };
188
188
  const isLocatorCall = node => {
189
- return isCallExpressionNode$2(node) && isIdentifierNode$3(node.callee) && node.callee.name === 'Locator';
189
+ if (!isCallExpressionNode$2(node)) {
190
+ return false;
191
+ }
192
+ if (isIdentifierNode$3(node.callee)) {
193
+ return node.callee.name === 'Locator';
194
+ }
195
+ return isMemberExpressionNode$2(node.callee) && !node.callee.computed && isIdentifierNode$3(node.callee.property) && node.callee.property.name === 'locator';
190
196
  };
191
197
  const containsInlineLocatorCall = node => {
192
198
  if (!node) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/eslint-plugin-e2e",
3
- "version": "18.10.0",
3
+ "version": "18.11.0",
4
4
  "main": "dist/index.js",
5
5
  "repository": {
6
6
  "type": "git",