@tanstack/query-sync-storage-persister 4.3.3 → 4.3.6

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.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export declare function sleep(timeout: number): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/query-sync-storage-persister",
3
- "version": "4.3.3",
3
+ "version": "4.3.6",
4
4
  "description": "TODO",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -31,6 +31,6 @@
31
31
  "test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src"
32
32
  },
33
33
  "dependencies": {
34
- "@tanstack/react-query-persist-client": "4.3.3"
34
+ "@tanstack/react-query-persist-client": "4.3.6"
35
35
  }
36
36
  }
@@ -6,7 +6,7 @@ import {
6
6
  } from '@tanstack/query-core'
7
7
  import { removeOldestQuery } from '@tanstack/react-query-persist-client'
8
8
  import { createSyncStoragePersister } from '../index'
9
- import { sleep } from '../../../../tests/utils'
9
+ import { sleep } from './utils'
10
10
 
11
11
  function getMockStorage(limitSize?: number) {
12
12
  const dataSet = new Map<string, string>()
@@ -0,0 +1,5 @@
1
+ export function sleep(timeout: number): Promise<void> {
2
+ return new Promise((resolve, _reject) => {
3
+ setTimeout(resolve, timeout)
4
+ })
5
+ }