eslint-plugin-react-web-api 5.20.4 → 5.20.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 -5
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -27,7 +27,7 @@ var __exportAll = (all, no_symbols) => {
27
27
  //#endregion
28
28
  //#region package.json
29
29
  var name$1 = "eslint-plugin-react-web-api";
30
- var version = "5.20.4";
30
+ var version = "5.20.5";
31
31
 
32
32
  //#endregion
33
33
  //#region src/utils/create-rule.ts
@@ -308,10 +308,8 @@ function create$4(context) {
308
308
  fEntries.pop();
309
309
  },
310
310
  ["CallExpression"](node) {
311
- const fKind = fEntries.at(-1);
312
- if (fKind == null || fKind === "other") return;
313
311
  match(getCallKind$4(node)).with("fetch", () => {
314
- if (fKind !== "setup") return;
312
+ if (fEntries.at(-1) !== "setup") return;
315
313
  const { controller, isParamSignal } = getFetchController(context, node);
316
314
  fetchEntries.push({
317
315
  controller,
@@ -319,7 +317,7 @@ function create$4(context) {
319
317
  node
320
318
  });
321
319
  }).with("abort", () => {
322
- if (fKind !== "cleanup") return;
320
+ if (fEntries.findLast((kind) => kind !== "other") !== "cleanup") return;
323
321
  const controller = getAbortController(node);
324
322
  if (controller == null) return;
325
323
  abortEntries.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-web-api",
3
- "version": "5.20.4",
3
+ "version": "5.20.5",
4
4
  "description": "ESLint React's ESLint plugin for interacting with Web APIs",
5
5
  "keywords": [
6
6
  "react",
@@ -37,11 +37,11 @@
37
37
  "dist"
38
38
  ],
39
39
  "dependencies": {
40
- "@eslint-react/ast": "5.20.4",
41
- "@eslint-react/core": "5.20.4",
42
- "@eslint-react/eslint": "5.20.4",
43
- "@eslint-react/shared": "5.20.4",
44
- "@eslint-react/var": "5.20.4",
40
+ "@eslint-react/ast": "5.20.5",
41
+ "@eslint-react/core": "5.20.5",
42
+ "@eslint-react/eslint": "5.20.5",
43
+ "@eslint-react/shared": "5.20.5",
44
+ "@eslint-react/var": "5.20.5",
45
45
  "@typescript-eslint/types": "^8.70.0",
46
46
  "@typescript-eslint/utils": "^8.70.0",
47
47
  "ts-pattern": "^5.9.0"