Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tanstack/eslint-plugin-query

Package Overview
Dependencies
Maintainers
2
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tanstack/eslint-plugin-query - npm Package Compare versions

Comparing version 5.61.3 to 5.61.4

6

dist/esm/utils/ast-utils.d.ts
import { AST_NODE_TYPES, TSESLint, TSESTree } from '@typescript-eslint/utils';
export declare const ASTUtils: {
isNodeOfOneOf<T extends AST_NODE_TYPES>(node: TSESTree.Node, types: readonly T[]): node is TSESTree.Node & {
isNodeOfOneOf<T extends AST_NODE_TYPES>(node: TSESTree.Node, types: ReadonlyArray<T>): node is TSESTree.Node & {
type: T;

@@ -8,4 +8,4 @@ };

isIdentifierWithName(node: TSESTree.Node, name: string): node is TSESTree.Identifier;
isIdentifierWithOneOfNames<T_1 extends string[]>(node: TSESTree.Node, name: T_1): node is TSESTree.Identifier & {
name: T_1[number];
isIdentifierWithOneOfNames<T extends Array<string>>(node: TSESTree.Node, name: T): node is TSESTree.Identifier & {
name: T[number];
};

@@ -12,0 +12,0 @@ isProperty(node: TSESTree.Node): node is TSESTree.Property;

@@ -37,8 +37,9 @@ import { TSESTree } from "@typescript-eslint/utils";

enhancedRuleInstructions[instruction] = (node) => {
var _a, _b;
var _a;
if (instruction in detectionInstructions) {
(_a = detectionInstructions[instruction]) == null ? void 0 : _a.call(detectionInstructions, node);
}
if (ruleInstructions[instruction]) {
return (_b = ruleInstructions[instruction]) == null ? void 0 : _b.call(ruleInstructions, node);
const ruleInstruction = ruleInstructions[instruction];
if (ruleInstruction) {
return ruleInstruction(node);
}

@@ -45,0 +46,0 @@ return void 0;

{
"name": "@tanstack/eslint-plugin-query",
"version": "5.61.3",
"version": "5.61.4",
"description": "ESLint plugin for TanStack Query",

@@ -5,0 +5,0 @@ "author": "Eliya Cohen",

@@ -45,2 +45,3 @@ import { AST_NODE_TYPES } from '@typescript-eslint/utils'

): TSESTree.Property | undefined {
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
return properties.find((x) =>

@@ -47,0 +48,0 @@ ASTUtils.isPropertyWithIdentifierKey(x, key),

@@ -83,5 +83,7 @@ import { TSESTree } from '@typescript-eslint/utils'

const ruleInstruction = ruleInstructions[instruction]
// TODO: canReportErrors()
if (ruleInstructions[instruction]) {
return ruleInstructions[instruction]?.(node)
if (ruleInstruction) {
return ruleInstruction(node)
}

@@ -88,0 +90,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc