react-query-kit
Advanced tools
@@ -32,2 +32,3 @@ import type { DataTag, DefaultError, DefinedUseInfiniteQueryResult, DefinedUseQueryResult, InfiniteData, InfiniteQueryObserverSuccessResult, MutationFunction, MutationKey, QueryClient, QueryFunction, QueryFunctionContext, QueryKey, QueryKeyHashFunction, QueryObserverSuccessResult, SkipToken, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; | ||
| queryKey: DataTag<QueryKey, TFnData>; | ||
| queryFn?: Exclude<UseQueryOptions<TFnData, TError, TFnData, QueryKey>['queryFn'], SkipToken>; | ||
| }, { | ||
@@ -34,0 +35,0 @@ queryKey: QueryKey; |
+95
-95
@@ -13,35 +13,35 @@ { | ||
| { | ||
| "uid": "130c-21", | ||
| "uid": "020b-21", | ||
| "name": "utils.ts" | ||
| }, | ||
| { | ||
| "uid": "130c-23", | ||
| "uid": "020b-23", | ||
| "name": "createBaseQuery.ts" | ||
| }, | ||
| { | ||
| "uid": "130c-25", | ||
| "uid": "020b-25", | ||
| "name": "createQuery.ts" | ||
| }, | ||
| { | ||
| "uid": "130c-27", | ||
| "uid": "020b-27", | ||
| "name": "createSuspenseQuery.ts" | ||
| }, | ||
| { | ||
| "uid": "130c-29", | ||
| "uid": "020b-29", | ||
| "name": "createInfiniteQuery.ts" | ||
| }, | ||
| { | ||
| "uid": "130c-31", | ||
| "uid": "020b-31", | ||
| "name": "createSuspenseInfiniteQuery.ts" | ||
| }, | ||
| { | ||
| "uid": "130c-33", | ||
| "uid": "020b-33", | ||
| "name": "createMutation.ts" | ||
| }, | ||
| { | ||
| "uid": "130c-35", | ||
| "uid": "020b-35", | ||
| "name": "router.ts" | ||
| }, | ||
| { | ||
| "uid": "130c-37", | ||
| "uid": "020b-37", | ||
| "name": "index.ts" | ||
@@ -57,66 +57,66 @@ } | ||
| "nodeParts": { | ||
| "130c-21": { | ||
| "020b-21": { | ||
| "renderedLength": 925, | ||
| "gzipLength": 457, | ||
| "brotliLength": 0, | ||
| "mainUid": "130c-20" | ||
| "mainUid": "020b-20" | ||
| }, | ||
| "130c-23": { | ||
| "020b-23": { | ||
| "renderedLength": 1366, | ||
| "gzipLength": 424, | ||
| "brotliLength": 0, | ||
| "mainUid": "130c-22" | ||
| "mainUid": "020b-22" | ||
| }, | ||
| "130c-25": { | ||
| "020b-25": { | ||
| "renderedLength": 95, | ||
| "gzipLength": 84, | ||
| "brotliLength": 0, | ||
| "mainUid": "130c-24" | ||
| "mainUid": "020b-24" | ||
| }, | ||
| "130c-27": { | ||
| "020b-27": { | ||
| "renderedLength": 183, | ||
| "gzipLength": 115, | ||
| "brotliLength": 0, | ||
| "mainUid": "130c-26" | ||
| "mainUid": "020b-26" | ||
| }, | ||
| "130c-29": { | ||
| "020b-29": { | ||
| "renderedLength": 111, | ||
| "gzipLength": 93, | ||
| "brotliLength": 0, | ||
| "mainUid": "130c-28" | ||
| "mainUid": "020b-28" | ||
| }, | ||
| "130c-31": { | ||
| "020b-31": { | ||
| "renderedLength": 207, | ||
| "gzipLength": 125, | ||
| "brotliLength": 0, | ||
| "mainUid": "130c-30" | ||
| "mainUid": "020b-30" | ||
| }, | ||
| "130c-33": { | ||
| "020b-33": { | ||
| "renderedLength": 283, | ||
| "gzipLength": 170, | ||
| "brotliLength": 0, | ||
| "mainUid": "130c-32" | ||
| "mainUid": "020b-32" | ||
| }, | ||
| "130c-35": { | ||
| "020b-35": { | ||
| "renderedLength": 1353, | ||
| "gzipLength": 432, | ||
| "brotliLength": 0, | ||
| "mainUid": "130c-34" | ||
| "mainUid": "020b-34" | ||
| }, | ||
| "130c-37": { | ||
| "020b-37": { | ||
| "renderedLength": 0, | ||
| "gzipLength": 0, | ||
| "brotliLength": 0, | ||
| "mainUid": "130c-36" | ||
| "mainUid": "020b-36" | ||
| } | ||
| }, | ||
| "nodeMetas": { | ||
| "130c-20": { | ||
| "020b-20": { | ||
| "id": "/src/utils.ts", | ||
| "moduleParts": { | ||
| "index.production.js": "130c-21" | ||
| "index.production.js": "020b-21" | ||
| }, | ||
| "imported": [ | ||
| { | ||
| "uid": "130c-39" | ||
| "uid": "020b-39" | ||
| } | ||
@@ -126,32 +126,32 @@ ], | ||
| { | ||
| "uid": "130c-36" | ||
| "uid": "020b-36" | ||
| }, | ||
| { | ||
| "uid": "130c-24" | ||
| "uid": "020b-24" | ||
| }, | ||
| { | ||
| "uid": "130c-26" | ||
| "uid": "020b-26" | ||
| }, | ||
| { | ||
| "uid": "130c-28" | ||
| "uid": "020b-28" | ||
| }, | ||
| { | ||
| "uid": "130c-30" | ||
| "uid": "020b-30" | ||
| }, | ||
| { | ||
| "uid": "130c-32" | ||
| "uid": "020b-32" | ||
| }, | ||
| { | ||
| "uid": "130c-22" | ||
| "uid": "020b-22" | ||
| } | ||
| ] | ||
| }, | ||
| "130c-22": { | ||
| "020b-22": { | ||
| "id": "/src/createBaseQuery.ts", | ||
| "moduleParts": { | ||
| "index.production.js": "130c-23" | ||
| "index.production.js": "020b-23" | ||
| }, | ||
| "imported": [ | ||
| { | ||
| "uid": "130c-20" | ||
| "uid": "020b-20" | ||
| } | ||
@@ -161,26 +161,26 @@ ], | ||
| { | ||
| "uid": "130c-24" | ||
| "uid": "020b-24" | ||
| }, | ||
| { | ||
| "uid": "130c-26" | ||
| "uid": "020b-26" | ||
| }, | ||
| { | ||
| "uid": "130c-28" | ||
| "uid": "020b-28" | ||
| }, | ||
| { | ||
| "uid": "130c-30" | ||
| "uid": "020b-30" | ||
| } | ||
| ] | ||
| }, | ||
| "130c-24": { | ||
| "020b-24": { | ||
| "id": "/src/createQuery.ts", | ||
| "moduleParts": { | ||
| "index.production.js": "130c-25" | ||
| "index.production.js": "020b-25" | ||
| }, | ||
| "imported": [ | ||
| { | ||
| "uid": "130c-22" | ||
| "uid": "020b-22" | ||
| }, | ||
| { | ||
| "uid": "130c-20" | ||
| "uid": "020b-20" | ||
| } | ||
@@ -190,20 +190,20 @@ ], | ||
| { | ||
| "uid": "130c-36" | ||
| "uid": "020b-36" | ||
| }, | ||
| { | ||
| "uid": "130c-34" | ||
| "uid": "020b-34" | ||
| } | ||
| ] | ||
| }, | ||
| "130c-26": { | ||
| "020b-26": { | ||
| "id": "/src/createSuspenseQuery.ts", | ||
| "moduleParts": { | ||
| "index.production.js": "130c-27" | ||
| "index.production.js": "020b-27" | ||
| }, | ||
| "imported": [ | ||
| { | ||
| "uid": "130c-22" | ||
| "uid": "020b-22" | ||
| }, | ||
| { | ||
| "uid": "130c-20" | ||
| "uid": "020b-20" | ||
| } | ||
@@ -213,20 +213,20 @@ ], | ||
| { | ||
| "uid": "130c-36" | ||
| "uid": "020b-36" | ||
| }, | ||
| { | ||
| "uid": "130c-34" | ||
| "uid": "020b-34" | ||
| } | ||
| ] | ||
| }, | ||
| "130c-28": { | ||
| "020b-28": { | ||
| "id": "/src/createInfiniteQuery.ts", | ||
| "moduleParts": { | ||
| "index.production.js": "130c-29" | ||
| "index.production.js": "020b-29" | ||
| }, | ||
| "imported": [ | ||
| { | ||
| "uid": "130c-22" | ||
| "uid": "020b-22" | ||
| }, | ||
| { | ||
| "uid": "130c-20" | ||
| "uid": "020b-20" | ||
| } | ||
@@ -236,20 +236,20 @@ ], | ||
| { | ||
| "uid": "130c-36" | ||
| "uid": "020b-36" | ||
| }, | ||
| { | ||
| "uid": "130c-34" | ||
| "uid": "020b-34" | ||
| } | ||
| ] | ||
| }, | ||
| "130c-30": { | ||
| "020b-30": { | ||
| "id": "/src/createSuspenseInfiniteQuery.ts", | ||
| "moduleParts": { | ||
| "index.production.js": "130c-31" | ||
| "index.production.js": "020b-31" | ||
| }, | ||
| "imported": [ | ||
| { | ||
| "uid": "130c-22" | ||
| "uid": "020b-22" | ||
| }, | ||
| { | ||
| "uid": "130c-20" | ||
| "uid": "020b-20" | ||
| } | ||
@@ -259,17 +259,17 @@ ], | ||
| { | ||
| "uid": "130c-36" | ||
| "uid": "020b-36" | ||
| }, | ||
| { | ||
| "uid": "130c-34" | ||
| "uid": "020b-34" | ||
| } | ||
| ] | ||
| }, | ||
| "130c-32": { | ||
| "020b-32": { | ||
| "id": "/src/createMutation.ts", | ||
| "moduleParts": { | ||
| "index.production.js": "130c-33" | ||
| "index.production.js": "020b-33" | ||
| }, | ||
| "imported": [ | ||
| { | ||
| "uid": "130c-20" | ||
| "uid": "020b-20" | ||
| } | ||
@@ -279,29 +279,29 @@ ], | ||
| { | ||
| "uid": "130c-36" | ||
| "uid": "020b-36" | ||
| }, | ||
| { | ||
| "uid": "130c-34" | ||
| "uid": "020b-34" | ||
| } | ||
| ] | ||
| }, | ||
| "130c-34": { | ||
| "020b-34": { | ||
| "id": "/src/router.ts", | ||
| "moduleParts": { | ||
| "index.production.js": "130c-35" | ||
| "index.production.js": "020b-35" | ||
| }, | ||
| "imported": [ | ||
| { | ||
| "uid": "130c-28" | ||
| "uid": "020b-28" | ||
| }, | ||
| { | ||
| "uid": "130c-32" | ||
| "uid": "020b-32" | ||
| }, | ||
| { | ||
| "uid": "130c-24" | ||
| "uid": "020b-24" | ||
| }, | ||
| { | ||
| "uid": "130c-30" | ||
| "uid": "020b-30" | ||
| }, | ||
| { | ||
| "uid": "130c-26" | ||
| "uid": "020b-26" | ||
| } | ||
@@ -311,35 +311,35 @@ ], | ||
| { | ||
| "uid": "130c-36" | ||
| "uid": "020b-36" | ||
| } | ||
| ] | ||
| }, | ||
| "130c-36": { | ||
| "020b-36": { | ||
| "id": "/src/index.ts", | ||
| "moduleParts": { | ||
| "index.production.js": "130c-37" | ||
| "index.production.js": "020b-37" | ||
| }, | ||
| "imported": [ | ||
| { | ||
| "uid": "130c-24" | ||
| "uid": "020b-24" | ||
| }, | ||
| { | ||
| "uid": "130c-26" | ||
| "uid": "020b-26" | ||
| }, | ||
| { | ||
| "uid": "130c-28" | ||
| "uid": "020b-28" | ||
| }, | ||
| { | ||
| "uid": "130c-30" | ||
| "uid": "020b-30" | ||
| }, | ||
| { | ||
| "uid": "130c-32" | ||
| "uid": "020b-32" | ||
| }, | ||
| { | ||
| "uid": "130c-38" | ||
| "uid": "020b-38" | ||
| }, | ||
| { | ||
| "uid": "130c-34" | ||
| "uid": "020b-34" | ||
| }, | ||
| { | ||
| "uid": "130c-20" | ||
| "uid": "020b-20" | ||
| } | ||
@@ -350,3 +350,3 @@ ], | ||
| }, | ||
| "130c-38": { | ||
| "020b-38": { | ||
| "id": "/src/types.ts", | ||
@@ -357,7 +357,7 @@ "moduleParts": {}, | ||
| { | ||
| "uid": "130c-36" | ||
| "uid": "020b-36" | ||
| } | ||
| ] | ||
| }, | ||
| "130c-39": { | ||
| "020b-39": { | ||
| "id": "@tanstack/react-query", | ||
@@ -368,3 +368,3 @@ "moduleParts": {}, | ||
| { | ||
| "uid": "130c-20" | ||
| "uid": "020b-20" | ||
| } | ||
@@ -371,0 +371,0 @@ ], |
+3
-5
| { | ||
| "name": "react-query-kit", | ||
| "version": "3.3.0", | ||
| "version": "3.3.1", | ||
| "description": "🕊️ A toolkit for ReactQuery that make ReactQuery hooks more reusable and typesafe", | ||
@@ -30,3 +30,3 @@ "author": "liaoliao666", | ||
| "@rollup/plugin-replace": "^4.0.0", | ||
| "@tanstack/react-query": "^5.35.1", | ||
| "@tanstack/react-query": "^5.59.16", | ||
| "@testing-library/jest-dom": "^5.16.5", | ||
@@ -59,5 +59,3 @@ "@testing-library/react": "^14.0.0", | ||
| }, | ||
| "peerDependencies": { | ||
| "@tanstack/react-query": "^4 || ^5" | ||
| }, | ||
| "peerDependencies": {}, | ||
| "peerDependenciesMeta": { | ||
@@ -64,0 +62,0 @@ "@tanstack/react-query": { |
+4
-0
@@ -130,2 +130,6 @@ import type { | ||
| queryKey: DataTag<QueryKey, TFnData> | ||
| queryFn?: Exclude< | ||
| UseQueryOptions<TFnData, TError, TFnData, QueryKey>['queryFn'], | ||
| SkipToken | ||
| > | ||
| }, | ||
@@ -132,0 +136,0 @@ // Not work to infer TError in v4 |
Sorry, the diff of this file is too big to display
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
333600
0.06%0
-100%2343
0.21%