🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

eslint-plugin-react-web-api

Package Overview
Dependencies
Maintainers
1
Versions
968
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-react-web-api - npm Package Compare versions

Comparing version

to
1.52.3-beta.13

19

dist/index.js

@@ -10,2 +10,3 @@ 'use strict';

var tsPattern = require('ts-pattern');
var types = require('@typescript-eslint/types');

@@ -60,3 +61,3 @@ function _interopNamespace(e) {

var name2 = "eslint-plugin-react-web-api";
var version = "1.52.3-beta.12";
var version = "1.52.3-beta.13";
var createRule = utils.ESLintUtils.RuleCreator(shared.getDocsUrl("web-api"));

@@ -66,2 +67,16 @@ function getPhaseKindOfFunction(node) {

}
var isControlFlow = eff.or(
AST__namespace.isLoop,
AST__namespace.isOneOf([
types.AST_NODE_TYPES.IfStatement,
types.AST_NODE_TYPES.SwitchStatement
])
);
var isConditional = eff.or(
isControlFlow,
AST__namespace.isOneOf([
types.AST_NODE_TYPES.LogicalExpression,
types.AST_NODE_TYPES.ConditionalExpression
])
);

@@ -571,3 +586,3 @@ // src/rules/no-leaked-event-listener.ts

const uentries = uEntries.filter((e) => ER4__namespace.isInstanceIdEqual(context, e.observer, id));
const isDynamic = (node2) => node2?.type === utils.AST_NODE_TYPES.CallExpression || AST__namespace.isConditional(node2);
const isDynamic = (node2) => node2?.type === utils.AST_NODE_TYPES.CallExpression || isConditional(node2);
const isPhaseNode = (node2) => node2 === phaseNode;

@@ -574,0 +589,0 @@ const hasDynamicallyAdded = oentries.some((e) => !isPhaseNode(AST__namespace.findParentNode(e.node, eff.or(isDynamic, isPhaseNode))));

20

package.json
{
"name": "eslint-plugin-react-web-api",
"version": "1.52.3-beta.12",
"version": "1.52.3-beta.13",
"description": "ESLint React's ESLint plugin for interacting with Web APIs",

@@ -46,13 +46,13 @@ "keywords": [

"dependencies": {
"@typescript-eslint/scope-manager": "^8.35.1",
"@typescript-eslint/types": "^8.35.1",
"@typescript-eslint/utils": "^8.35.1",
"@typescript-eslint/scope-manager": "^8.36.0",
"@typescript-eslint/types": "^8.36.0",
"@typescript-eslint/utils": "^8.36.0",
"string-ts": "^2.2.1",
"ts-pattern": "^5.7.1",
"@eslint-react/kit": "1.52.3-beta.12",
"@eslint-react/ast": "1.52.3-beta.12",
"@eslint-react/shared": "1.52.3-beta.12",
"@eslint-react/eff": "1.52.3-beta.12",
"@eslint-react/var": "1.52.3-beta.12",
"@eslint-react/core": "1.52.3-beta.12"
"@eslint-react/core": "1.52.3-beta.13",
"@eslint-react/ast": "1.52.3-beta.13",
"@eslint-react/eff": "1.52.3-beta.13",
"@eslint-react/kit": "1.52.3-beta.13",
"@eslint-react/shared": "1.52.3-beta.13",
"@eslint-react/var": "1.52.3-beta.13"
},

@@ -59,0 +59,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet