eslint-plugin-react-web-api 5.24.7 → 5.24.9

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 +6 -6
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -21,7 +21,7 @@ var __exportAll = (all, no_symbols) => {
21
21
  //#endregion
22
22
  //#region package.json
23
23
  var name$1 = "eslint-plugin-react-web-api";
24
- var version = "5.24.7";
24
+ var version = "5.24.9";
25
25
  //#endregion
26
26
  //#region src/utils/create-rule.ts
27
27
  function getDocsUrl(ruleName) {
@@ -776,12 +776,12 @@ function isFromObserver(context, node, name) {
776
776
  }
777
777
  }
778
778
  function isFromRefCurrent(context, node, refId) {
779
- let unwrapped = Check.isTypeExpression(node) ? Extract.unwrap(node) : node;
780
- if (Check.isIdentifier(unwrapped)) {
781
- const initNode = resolve(context, unwrapped);
782
- if (initNode != null) unwrapped = Extract.unwrap(initNode);
779
+ let expr = Check.isTypeExpression(node) ? Extract.unwrap(node) : node;
780
+ if (Check.isIdentifier(expr)) {
781
+ const initNode = resolve(context, expr);
782
+ if (initNode != null) expr = Extract.unwrap(initNode);
783
783
  }
784
- return unwrapped.type === AST_NODE_TYPES.MemberExpression && !unwrapped.computed && Check.isIdentifier(Extract.unwrap(unwrapped.property), "current") && isAssignmentTargetEqual(context, unwrapped.object, refId);
784
+ return expr.type === AST_NODE_TYPES.MemberExpression && !expr.computed && Check.isIdentifier(Extract.unwrap(expr.property), "current") && isAssignmentTargetEqual(context, expr.object, refId);
785
785
  }
786
786
  //#endregion
787
787
  //#region src/rules/no-leaked-resize-observer/no-leaked-resize-observer.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-web-api",
3
- "version": "5.24.7",
3
+ "version": "5.24.9",
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.24.7",
41
- "@eslint-react/core": "5.24.7",
42
- "@eslint-react/eslint": "5.24.7",
43
- "@eslint-react/shared": "5.24.7",
44
- "@eslint-react/var": "5.24.7",
40
+ "@eslint-react/ast": "5.24.9",
41
+ "@eslint-react/core": "5.24.9",
42
+ "@eslint-react/eslint": "5.24.9",
43
+ "@eslint-react/shared": "5.24.9",
44
+ "@eslint-react/var": "5.24.9",
45
45
  "@typescript-eslint/types": "^8.71.1",
46
46
  "@typescript-eslint/utils": "^8.71.1",
47
47
  "ts-pattern": "^5.9.0"