@tanstack/vue-query
Advanced tools
Comparing version 5.59.0 to 5.59.1
{ | ||
"name": "@tanstack/vue-query", | ||
"version": "5.59.0", | ||
"version": "5.59.1", | ||
"description": "Hooks for managing, caching and syncing asynchronous and remote data in Vue", | ||
@@ -5,0 +5,0 @@ "author": "Damian Osipiuk", |
@@ -145,2 +145,8 @@ import { describe, expect, test } from 'vitest' | ||
test('should clone getters returning values in queryKey', () => { | ||
const val = ref({ queryKey: [1, 2, () => '3'] }) | ||
const cp = cloneDeepUnref(val) | ||
expect(cp).toStrictEqual({ queryKey: [1, 2, '3'] }) | ||
}) | ||
test('should unref undefined', () => { | ||
@@ -147,0 +153,0 @@ expect(cloneDeepUnref(ref(undefined))).toBe(undefined) |
@@ -17,5 +17,7 @@ import { describe, expect, test, vi } from 'vitest' | ||
type UnmountCallback = () => void | ||
interface TestApp extends App { | ||
onUnmount: Function | ||
_unmount: Function | ||
onUnmount: UnmountCallback | ||
_unmount: UnmountCallback | ||
_mixin: ComponentOptions | ||
@@ -33,7 +35,7 @@ _provided: Record<string, any> | ||
onUnmount: withUnmountHook | ||
? vi.fn((u: Function) => { | ||
? vi.fn((u: UnmountCallback) => { | ||
mock._unmount = u | ||
}) | ||
: undefined, | ||
mixin: (m: ComponentOptions): any => { | ||
mixin: (m: ComponentOptions) => { | ||
mock._mixin = m | ||
@@ -40,0 +42,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
807243
10990