You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@tanstack/query-core

Package Overview
Dependencies
0
Maintainers
1
Versions
246
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.3.1 to 4.3.2

6

build/lib/types.d.ts

@@ -352,5 +352,5 @@ import type { MutationState } from './mutation';

export interface MutateOptions<TData = unknown, TError = unknown, TVariables = void, TContext = unknown> {
onSuccess?: (data: TData, variables: TVariables, context: TContext) => Promise<unknown> | unknown;
onError?: (error: TError, variables: TVariables, context: TContext | undefined) => Promise<unknown> | unknown;
onSettled?: (data: TData | undefined, error: TError | null, variables: TVariables, context: TContext | undefined) => Promise<unknown> | unknown;
onSuccess?: (data: TData, variables: TVariables, context: TContext) => void;
onError?: (error: TError, variables: TVariables, context: TContext | undefined) => void;
onSettled?: (data: TData | undefined, error: TError | null, variables: TVariables, context: TContext | undefined) => void;
}

@@ -357,0 +357,0 @@ export declare type MutateFunction<TData = unknown, TError = unknown, TVariables = void, TContext = unknown> = (variables: TVariables, options?: MutateOptions<TData, TError, TVariables, TContext>) => Promise<TData>;

{
"name": "@tanstack/query-core",
"version": "4.3.1",
"version": "4.3.2",
"description": "TODO",

@@ -5,0 +5,0 @@ "author": "tannerlinsley",

@@ -579,7 +579,3 @@ import type { MutationState } from './mutation'

> {
onSuccess?: (
data: TData,
variables: TVariables,
context: TContext,
) => Promise<unknown> | unknown
onSuccess?: (data: TData, variables: TVariables, context: TContext) => void
onError?: (

@@ -589,3 +585,3 @@ error: TError,

context: TContext | undefined,
) => Promise<unknown> | unknown
) => void
onSettled?: (

@@ -596,3 +592,3 @@ data: TData | undefined,

context: TContext | undefined,
) => Promise<unknown> | unknown
) => void
}

@@ -599,0 +595,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc