eslint-plugin-react-web-api 1.23.2-next.3 → 1.23.2-next.6
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 +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +12 -12
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.2-next.
|
|
37
|
+
var version = "1.23.2-next.6";
|
|
38
38
|
var createRule = shared.createRuleForPlugin("web-api");
|
|
39
39
|
function getInstanceID(node, prev) {
|
|
40
40
|
switch (true) {
|
|
@@ -513,7 +513,7 @@ var no_leaked_resize_observer_default = createRule({
|
|
|
513
513
|
const uentries = uEntries.filter((e) => isInstanceIDEqual(e.observer, id, context));
|
|
514
514
|
const isDynamic = eff.or(AST2__namespace.isConditional, AST2__namespace.is(utils.AST_NODE_TYPES.CallExpression));
|
|
515
515
|
const isPhaseNode = (node2) => node2 === phaseNode;
|
|
516
|
-
const hasDynamicallyAdded = oentries.some((e) => eff.O.exists(AST2__namespace.
|
|
516
|
+
const hasDynamicallyAdded = oentries.some((e) => eff.O.exists(AST2__namespace.findParentNode(e.node, eff.or(isDynamic, isPhaseNode)), eff.not(isPhaseNode)));
|
|
517
517
|
if (hasDynamicallyAdded) {
|
|
518
518
|
context.report({ messageId: "noLeakedResizeObserverInControlFlow", node });
|
|
519
519
|
continue;
|
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.2-next.
|
|
13
|
+
var version = "1.23.2-next.6";
|
|
14
14
|
var createRule = createRuleForPlugin("web-api");
|
|
15
15
|
function getInstanceID(node, prev) {
|
|
16
16
|
switch (true) {
|
|
@@ -489,7 +489,7 @@ var no_leaked_resize_observer_default = createRule({
|
|
|
489
489
|
const uentries = uEntries.filter((e) => isInstanceIDEqual(e.observer, id, context));
|
|
490
490
|
const isDynamic = or(AST2.isConditional, AST2.is(AST_NODE_TYPES.CallExpression));
|
|
491
491
|
const isPhaseNode = (node2) => node2 === phaseNode;
|
|
492
|
-
const hasDynamicallyAdded = oentries.some((e) => O.exists(AST2.
|
|
492
|
+
const hasDynamicallyAdded = oentries.some((e) => O.exists(AST2.findParentNode(e.node, or(isDynamic, isPhaseNode)), not(isPhaseNode)));
|
|
493
493
|
if (hasDynamicallyAdded) {
|
|
494
494
|
context.report({ messageId: "noLeakedResizeObserverInControlFlow", node });
|
|
495
495
|
continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-web-api",
|
|
3
|
-
"version": "1.23.2-next.
|
|
3
|
+
"version": "1.23.2-next.6",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for interacting with Web APIs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -41,21 +41,21 @@
|
|
|
41
41
|
"./package.json"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@typescript-eslint/scope-manager": "^8.19.
|
|
45
|
-
"@typescript-eslint/types": "^8.19.
|
|
46
|
-
"@typescript-eslint/utils": "^8.19.
|
|
44
|
+
"@typescript-eslint/scope-manager": "^8.19.1",
|
|
45
|
+
"@typescript-eslint/types": "^8.19.1",
|
|
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.2-next.
|
|
50
|
-
"@eslint-react/core": "1.23.2-next.
|
|
51
|
-
"@eslint-react/eff": "1.23.2-next.
|
|
52
|
-
"@eslint-react/
|
|
53
|
-
"@eslint-react/shared": "1.23.2-next.
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/types": "1.23.2-next.
|
|
49
|
+
"@eslint-react/ast": "1.23.2-next.6",
|
|
50
|
+
"@eslint-react/core": "1.23.2-next.6",
|
|
51
|
+
"@eslint-react/eff": "1.23.2-next.6",
|
|
52
|
+
"@eslint-react/jsx": "1.23.2-next.6",
|
|
53
|
+
"@eslint-react/shared": "1.23.2-next.6",
|
|
54
|
+
"@eslint-react/var": "1.23.2-next.6",
|
|
55
|
+
"@eslint-react/types": "1.23.2-next.6"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@types/react": "^19.0.
|
|
58
|
+
"@types/react": "^19.0.3",
|
|
59
59
|
"@types/react-dom": "^19.0.2",
|
|
60
60
|
"tsup": "^8.3.5",
|
|
61
61
|
"@workspace/configs": "0.0.0"
|