🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@eslint-react/ast

Package Overview
Dependencies
Maintainers
1
Versions
2642
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eslint-react/ast - npm Package Compare versions

Comparing version
5.14.5
to
5.14.6
+2
-1
dist/index.d.ts

@@ -15,3 +15,3 @@ import { AST_NODE_TYPES, TSESTree } from "@typescript-eslint/types";

declare namespace check_d_exports {
export { is, isClass, isDirective, isFunction, isIdentifier, isJSX, isJSXElement, isJSXElementOrFragment, isJSXFragment, isJSXTagNameExpression, isOneOf, isProperty, isPropertyOrMethod, isTypeAssertionExpression, isTypeExpression };
export { is, isClass, isDirective, isExpression, isFunction, isIdentifier, isJSX, isJSXElement, isJSXElementOrFragment, isJSXFragment, isJSXTagNameExpression, isOneOf, isProperty, isPropertyOrMethod, isTypeAssertionExpression, isTypeExpression };
}

@@ -37,2 +37,3 @@ declare const is: <NodeType extends AST_NODE_TYPES>(nodeType: NodeType) => (node: TSESTree.Node | null | undefined) => node is Extract<TSESTree.Node, {

declare const isTypeAssertionExpression: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSAsExpression | TSESTree.TSNonNullExpression | TSESTree.TSSatisfiesExpression | TSESTree.TSTypeAssertion;
declare const isExpression: (node: TSESTree.Node | null | undefined) => node is TSESTree.ArrayExpression | TSESTree.ArrayPattern | TSESTree.ArrowFunctionExpressionWithBlockBody | TSESTree.ArrowFunctionExpressionWithExpressionBody | TSESTree.AssignmentExpression | TSESTree.AwaitExpression | TSESTree.PrivateInExpression | TSESTree.SymmetricBinaryExpression | TSESTree.CallExpression | TSESTree.ChainExpression | TSESTree.ClassExpression | TSESTree.ConditionalExpression | TSESTree.FunctionExpression | TSESTree.Identifier | TSESTree.ImportExpression | TSESTree.JSXElement | TSESTree.JSXFragment | TSESTree.BigIntLiteral | TSESTree.BooleanLiteral | TSESTree.NullLiteral | TSESTree.NumberLiteral | TSESTree.RegExpLiteral | TSESTree.StringLiteral | TSESTree.LogicalExpression | TSESTree.MemberExpressionComputedName | TSESTree.MemberExpressionNonComputedName | TSESTree.MetaProperty | TSESTree.NewExpression | TSESTree.ObjectExpression | TSESTree.ObjectPattern | TSESTree.SequenceExpression | TSESTree.Super | TSESTree.TaggedTemplateExpression | TSESTree.TemplateLiteral | TSESTree.ThisExpression | TSESTree.TSAsExpression | TSESTree.TSInstantiationExpression | TSESTree.TSNonNullExpression | TSESTree.TSSatisfiesExpression | TSESTree.TSTypeAssertion | TSESTree.UnaryExpressionBitwiseNot | TSESTree.UnaryExpressionDelete | TSESTree.UnaryExpressionMinus | TSESTree.UnaryExpressionNot | TSESTree.UnaryExpressionPlus | TSESTree.UnaryExpressionTypeof | TSESTree.UnaryExpressionVoid | TSESTree.UpdateExpression | TSESTree.YieldNoStarExpression | TSESTree.YieldStarExpression;
declare namespace compare_d_exports {

@@ -39,0 +40,0 @@ export { isEqual };

@@ -10,2 +10,3 @@ import { t as __exportAll } from "./rolldown-runtime-w6R9maHv.js";

isDirective: () => isDirective,
isExpression: () => isExpression,
isFunction: () => isFunction,

@@ -83,2 +84,39 @@ isIdentifier: () => isIdentifier,

]);
const isExpression = isOneOf([
AST_NODE_TYPES.ArrayExpression,
AST_NODE_TYPES.ArrayPattern,
AST_NODE_TYPES.ArrowFunctionExpression,
AST_NODE_TYPES.AssignmentExpression,
AST_NODE_TYPES.AwaitExpression,
AST_NODE_TYPES.BinaryExpression,
AST_NODE_TYPES.CallExpression,
AST_NODE_TYPES.ChainExpression,
AST_NODE_TYPES.ClassExpression,
AST_NODE_TYPES.ConditionalExpression,
AST_NODE_TYPES.FunctionExpression,
AST_NODE_TYPES.Identifier,
AST_NODE_TYPES.ImportExpression,
AST_NODE_TYPES.JSXElement,
AST_NODE_TYPES.JSXFragment,
AST_NODE_TYPES.Literal,
AST_NODE_TYPES.LogicalExpression,
AST_NODE_TYPES.MemberExpression,
AST_NODE_TYPES.MetaProperty,
AST_NODE_TYPES.NewExpression,
AST_NODE_TYPES.ObjectExpression,
AST_NODE_TYPES.ObjectPattern,
AST_NODE_TYPES.SequenceExpression,
AST_NODE_TYPES.Super,
AST_NODE_TYPES.TSAsExpression,
AST_NODE_TYPES.TSInstantiationExpression,
AST_NODE_TYPES.TSNonNullExpression,
AST_NODE_TYPES.TSSatisfiesExpression,
AST_NODE_TYPES.TSTypeAssertion,
AST_NODE_TYPES.TaggedTemplateExpression,
AST_NODE_TYPES.TemplateLiteral,
AST_NODE_TYPES.ThisExpression,
AST_NODE_TYPES.UnaryExpression,
AST_NODE_TYPES.UpdateExpression,
AST_NODE_TYPES.YieldExpression
]);

@@ -85,0 +123,0 @@ //#endregion

{
"name": "@eslint-react/ast",
"version": "5.14.5",
"version": "5.14.6",
"description": "ESLint React's TSESTree AST utility module.",

@@ -39,8 +39,8 @@ "homepage": "https://github.com/Rel1cx/eslint-react",

"@typescript-eslint/parser": "^8.63.0",
"eslint": "^10.6.0",
"eslint": "^10.7.0",
"tsdown": "^0.22.4",
"typescript": "6.0.3",
"vitest": "^4.1.10",
"@local/configs": "0.0.0",
"@local/eff": "0.0.0"
"@local/eff": "0.0.0",
"@local/configs": "0.0.0"
},

@@ -47,0 +47,0 @@ "peerDependencies": {