@tanstack/vue-query 5.92.7 → 5.92.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/vue-query",
|
|
3
|
-
"version": "5.92.
|
|
3
|
+
"version": "5.92.9",
|
|
4
4
|
"description": "Hooks for managing, caching and syncing asynchronous and remote data in Vue",
|
|
5
5
|
"author": "Damian Osipiuk",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@tanstack/match-sorter-utils": "^8.19.4",
|
|
43
43
|
"@vue/devtools-api": "^6.6.3",
|
|
44
44
|
"vue-demi": "^0.14.10",
|
|
45
|
-
"@tanstack/query-core": "5.90.
|
|
45
|
+
"@tanstack/query-core": "5.90.20"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@vitejs/plugin-vue": "^5.2.4",
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { vi } from 'vitest'
|
|
2
|
-
import type
|
|
2
|
+
import type * as UseBaseQueryModule from '../useBaseQuery'
|
|
3
3
|
|
|
4
|
-
const { useBaseQuery: originImpl } =
|
|
5
|
-
'../useBaseQuery'
|
|
6
|
-
)) as any
|
|
4
|
+
const { useBaseQuery: originImpl } =
|
|
5
|
+
await vi.importActual<typeof UseBaseQueryModule>('../useBaseQuery')
|
|
7
6
|
|
|
8
|
-
export const useBaseQuery
|
|
9
|
-
vi.fn(originImpl)
|
|
7
|
+
export const useBaseQuery = vi.fn(originImpl)
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { vi } from 'vitest'
|
|
2
2
|
import { QueryClient } from '../queryClient'
|
|
3
|
-
import type { Mock } from 'vitest'
|
|
4
3
|
|
|
5
4
|
const queryClient = new QueryClient({
|
|
6
5
|
defaultOptions: {
|
|
@@ -8,4 +7,4 @@ const queryClient = new QueryClient({
|
|
|
8
7
|
},
|
|
9
8
|
})
|
|
10
9
|
|
|
11
|
-
export const useQueryClient
|
|
10
|
+
export const useQueryClient = vi.fn(() => queryClient)
|