eslint-plugin-react-web-api 1.23.3-next.7 → 1.23.3-next.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 CHANGED
@@ -34,7 +34,7 @@ var VAR2__namespace = /*#__PURE__*/_interopNamespace(VAR2);
34
34
 
35
35
  // package.json
36
36
  var name = "eslint-plugin-react-web-api";
37
- var version = "1.23.3-next.7";
37
+ var version = "1.23.3-next.8";
38
38
  var createRule = shared.createRuleForPlugin("web-api");
39
39
  function getInstanceID(node, prev) {
40
40
  switch (true) {
@@ -567,7 +567,7 @@ var no_leaked_resize_observer_default = createRule({
567
567
  }
568
568
  const oentries = oEntries.filter((e) => isInstanceIDEqual(e.observer, id, context));
569
569
  const uentries = uEntries.filter((e) => isInstanceIDEqual(e.observer, id, context));
570
- const isDynamic = eff.or(AST2__namespace.isConditional, AST2__namespace.is(utils.AST_NODE_TYPES.CallExpression));
570
+ const isDynamic = (node2) => node2.type === utils.AST_NODE_TYPES.CallExpression || AST2__namespace.isConditional(node2);
571
571
  const isPhaseNode = (node2) => node2 === phaseNode;
572
572
  const hasDynamicallyAdded = oentries.some((e) => eff.O.exists(AST2__namespace.findParentNode(e.node, eff.or(isDynamic, isPhaseNode)), eff.not(isPhaseNode)));
573
573
  if (hasDynamicallyAdded) {
package/dist/index.mjs CHANGED
@@ -10,7 +10,7 @@ import { AST_NODE_TYPES as AST_NODE_TYPES$1 } from '@typescript-eslint/types';
10
10
 
11
11
  // package.json
12
12
  var name = "eslint-plugin-react-web-api";
13
- var version = "1.23.3-next.7";
13
+ var version = "1.23.3-next.8";
14
14
  var createRule = createRuleForPlugin("web-api");
15
15
  function getInstanceID(node, prev) {
16
16
  switch (true) {
@@ -543,7 +543,7 @@ var no_leaked_resize_observer_default = createRule({
543
543
  }
544
544
  const oentries = oEntries.filter((e) => isInstanceIDEqual(e.observer, id, context));
545
545
  const uentries = uEntries.filter((e) => isInstanceIDEqual(e.observer, id, context));
546
- const isDynamic = or(AST2.isConditional, AST2.is(AST_NODE_TYPES.CallExpression));
546
+ const isDynamic = (node2) => node2.type === AST_NODE_TYPES.CallExpression || AST2.isConditional(node2);
547
547
  const isPhaseNode = (node2) => node2 === phaseNode;
548
548
  const hasDynamicallyAdded = oentries.some((e) => O.exists(AST2.findParentNode(e.node, or(isDynamic, isPhaseNode)), not(isPhaseNode)));
549
549
  if (hasDynamicallyAdded) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-web-api",
3
- "version": "1.23.3-next.7",
3
+ "version": "1.23.3-next.8",
4
4
  "description": "ESLint React's ESLint plugin for interacting with Web APIs",
5
5
  "keywords": [
6
6
  "react",
@@ -46,13 +46,13 @@
46
46
  "@typescript-eslint/utils": "^8.19.1",
47
47
  "string-ts": "^2.2.0",
48
48
  "ts-pattern": "^5.6.0",
49
- "@eslint-react/ast": "1.23.3-next.7",
50
- "@eslint-react/core": "1.23.3-next.7",
51
- "@eslint-react/jsx": "1.23.3-next.7",
52
- "@eslint-react/eff": "1.23.3-next.7",
53
- "@eslint-react/types": "1.23.3-next.7",
54
- "@eslint-react/shared": "1.23.3-next.7",
55
- "@eslint-react/var": "1.23.3-next.7"
49
+ "@eslint-react/core": "1.23.3-next.8",
50
+ "@eslint-react/eff": "1.23.3-next.8",
51
+ "@eslint-react/jsx": "1.23.3-next.8",
52
+ "@eslint-react/shared": "1.23.3-next.8",
53
+ "@eslint-react/types": "1.23.3-next.8",
54
+ "@eslint-react/ast": "1.23.3-next.8",
55
+ "@eslint-react/var": "1.23.3-next.8"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/react": "^19.0.4",