eslint-plugin-react-web-api 5.9.3 → 5.9.5

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 +3 -3
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -28,7 +28,7 @@ var __exportAll = (all, no_symbols) => {
28
28
  //#endregion
29
29
  //#region package.json
30
30
  var name$1 = "eslint-plugin-react-web-api";
31
- var version = "5.9.3";
31
+ var version = "5.9.5";
32
32
 
33
33
  //#endregion
34
34
  //#region src/types/component-phase.ts
@@ -266,9 +266,9 @@ function getCallKind$4(node) {
266
266
  const callee = Extract.unwrap(node.callee);
267
267
  switch (true) {
268
268
  case callee.type === AST_NODE_TYPES.Identifier && callee.name === "fetch": return "fetch";
269
- case callee.type === AST_NODE_TYPES.MemberExpression && callee.property.type === AST_NODE_TYPES.Identifier && callee.property.name === "fetch": return "fetch";
269
+ case callee.type === AST_NODE_TYPES.MemberExpression && Extract.getPropertyName(callee.property) === "fetch": return "fetch";
270
270
  case callee.type === AST_NODE_TYPES.Identifier && callee.name === "abort": return "abort";
271
- case callee.type === AST_NODE_TYPES.MemberExpression && callee.property.type === AST_NODE_TYPES.Identifier && callee.property.name === "abort": return "abort";
271
+ case callee.type === AST_NODE_TYPES.MemberExpression && Extract.getPropertyName(callee.property) === "abort": return "abort";
272
272
  default: return "other";
273
273
  }
274
274
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-web-api",
3
- "version": "5.9.3",
3
+ "version": "5.9.5",
4
4
  "description": "ESLint React's ESLint plugin for interacting with Web APIs",
5
5
  "keywords": [
6
6
  "react",
@@ -41,11 +41,11 @@
41
41
  "@typescript-eslint/utils": "^8.62.0",
42
42
  "birecord": "^0.1.1",
43
43
  "ts-pattern": "^5.9.0",
44
- "@eslint-react/core": "5.9.3",
45
- "@eslint-react/eslint": "5.9.3",
46
- "@eslint-react/ast": "5.9.3",
47
- "@eslint-react/shared": "5.9.3",
48
- "@eslint-react/var": "5.9.3"
44
+ "@eslint-react/ast": "5.9.5",
45
+ "@eslint-react/core": "5.9.5",
46
+ "@eslint-react/eslint": "5.9.5",
47
+ "@eslint-react/shared": "5.9.5",
48
+ "@eslint-react/var": "5.9.5"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@types/react": "^19.2.17",