@navios/react-query 0.6.0 → 0.6.1

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": "@navios/react-query",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "author": {
5
5
  "name": "Oleksandr Hanzha",
6
6
  "email": "alex@granted.name"
@@ -758,7 +758,7 @@ describe('mutationFromEndpoint() with stream endpoints', () => {
758
758
 
759
759
  test('stream mutation with onSuccess callback', () => {
760
760
  const mutation = client.mutationFromEndpoint(streamEndpointGet, {
761
- onSuccess: (_queryClient, data, variables) => {
761
+ onSuccess: (data, variables) => {
762
762
  // data should be Blob
763
763
  assertType<Blob>(data)
764
764
  // variables should have urlParams
@@ -778,7 +778,7 @@ describe('mutationFromEndpoint() with stream endpoints', () => {
778
778
  test('stream mutation with custom processResponse and onSuccess', () => {
779
779
  const mutation = client.mutationFromEndpoint(streamEndpointGet, {
780
780
  processResponse: (blob) => ({ url: URL.createObjectURL(blob), size: blob.size }),
781
- onSuccess: (_queryClient, data) => {
781
+ onSuccess: (data) => {
782
782
  // data should be the transformed type
783
783
  assertType<{ url: string; size: number }>(data)
784
784
  },