File tree 16 files changed +23
-21
lines changed
svelte-query-persist-client
16 files changed +23
-21
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"extends" : " ../../tsconfig.json" ,
3
3
"compilerOptions" : {
4
- "moduleResolution" : " Bundler"
4
+ "module" : " NodeNext" ,
5
+ "moduleResolution" : " NodeNext"
5
6
},
6
7
"include" : [
7
8
" src/**/*.js" ,
Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
2
import { createQuery } from ' @tanstack/svelte-query'
3
- import { sleep } from ' ../utils'
3
+ import { sleep } from ' ../utils.js '
4
4
import type { Writable } from ' svelte/store'
5
5
6
6
export let states: Writable <Array <string >>
Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
2
import { createQuery } from ' @tanstack/svelte-query'
3
- import { sleep } from ' ../utils'
3
+ import { sleep } from ' ../utils.js '
4
4
import type { Writable } from ' svelte/store'
5
- import type { StatusResult } from ' ../utils'
5
+ import type { StatusResult } from ' ../utils.js '
6
6
7
7
export let states: Writable <Array <StatusResult <string >>>
8
8
export let fetched: Writable <boolean >
Original file line number Diff line number Diff line change 4
4
import type { OmitKeyof , QueryClient } from ' @tanstack/svelte-query'
5
5
import type { PersistQueryClientOptions } from ' @tanstack/query-persist-client-core'
6
6
import type { Writable } from ' svelte/store'
7
- import type { StatusResult } from ' ../utils'
7
+ import type { StatusResult } from ' ../utils.js '
8
8
9
9
export let queryClient: QueryClient
10
10
export let persistOptions: OmitKeyof <PersistQueryClientOptions , ' queryClient' >
Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
2
import { createQuery } from ' @tanstack/svelte-query'
3
- import { sleep } from ' ../utils'
3
+ import { sleep } from ' ../utils.js '
4
4
import type { Writable } from ' svelte/store'
5
- import type { StatusResult } from ' ../utils'
5
+ import type { StatusResult } from ' ../utils.js '
6
6
7
7
export let states: Writable <Array <StatusResult <string >>>
8
8
Original file line number Diff line number Diff line change 4
4
import type { OmitKeyof , QueryClient } from ' @tanstack/svelte-query'
5
5
import type { PersistQueryClientOptions } from ' @tanstack/query-persist-client-core'
6
6
import type { Writable } from ' svelte/store'
7
- import type { StatusResult } from ' ../utils'
7
+ import type { StatusResult } from ' ../utils.js '
8
8
9
9
export let queryClient: QueryClient
10
10
export let persistOptions: OmitKeyof <PersistQueryClientOptions , ' queryClient' >
Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
2
import { createQuery } from ' @tanstack/svelte-query'
3
- import { sleep } from ' ../utils'
3
+ import { sleep } from ' ../utils.js '
4
4
5
5
const query = createQuery ({
6
6
queryKey: [' test' ],
Original file line number Diff line number Diff line change @@ -9,14 +9,14 @@ import InitialData from './InitialData/Provider.svelte'
9
9
import RemoveCache from './RemoveCache/Provider.svelte'
10
10
import RestoreCache from './RestoreCache/Provider.svelte'
11
11
import UseQueries from './UseQueries/Provider.svelte'
12
- import { createQueryClient , sleep } from './utils'
12
+ import { createQueryClient , sleep } from './utils.js '
13
13
14
14
import type {
15
15
PersistedClient ,
16
16
Persister ,
17
17
} from '@tanstack/query-persist-client-core'
18
18
import type { Writable } from 'svelte/store'
19
- import type { StatusResult } from './utils'
19
+ import type { StatusResult } from './utils.js '
20
20
21
21
const createMockPersister = ( ) : Persister => {
22
22
let storedState : PersistedClient | undefined
Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
2
import { createQuery } from ' @tanstack/svelte-query'
3
- import { sleep } from ' ../utils'
3
+ import { sleep } from ' ../utils.js '
4
4
5
5
const query = createQuery ({
6
6
queryKey: [' test' ],
Original file line number Diff line number Diff line change 4
4
import type { OmitKeyof , QueryClient } from ' @tanstack/svelte-query'
5
5
import type { PersistQueryClientOptions } from ' @tanstack/query-persist-client-core'
6
6
import type { Writable } from ' svelte/store'
7
- import type { StatusResult } from ' ../utils'
7
+ import type { StatusResult } from ' ../utils.js '
8
8
9
9
export let queryClient: QueryClient
10
10
export let persistOptions: OmitKeyof <PersistQueryClientOptions , ' queryClient' >
Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
2
import { createQuery } from ' @tanstack/svelte-query'
3
- import { sleep } from ' ../utils'
3
+ import { sleep } from ' ../utils.js '
4
4
import type { Writable } from ' svelte/store'
5
- import type { StatusResult } from ' ../utils'
5
+ import type { StatusResult } from ' ../utils.js '
6
6
7
7
export let states: Writable <Array <StatusResult <string >>>
8
8
Original file line number Diff line number Diff line change 4
4
import type { OmitKeyof , QueryClient } from ' @tanstack/svelte-query'
5
5
import type { PersistQueryClientOptions } from ' @tanstack/query-persist-client-core'
6
6
import type { Writable } from ' svelte/store'
7
- import type { StatusResult } from ' ../utils'
7
+ import type { StatusResult } from ' ../utils.js '
8
8
9
9
export let queryClient: QueryClient
10
10
export let persistOptions: OmitKeyof <PersistQueryClientOptions , ' queryClient' >
Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
2
import { createQueries } from ' @tanstack/svelte-query'
3
- import { sleep } from ' ../utils'
3
+ import { sleep } from ' ../utils.js '
4
4
import type { Writable } from ' svelte/store'
5
- import type { StatusResult } from ' ../utils'
5
+ import type { StatusResult } from ' ../utils.js '
6
6
7
7
export let states: Writable <Array <StatusResult <string >>>
8
8
Original file line number Diff line number Diff line change 1
1
{
2
2
"extends" : " ../../tsconfig.json" ,
3
3
"compilerOptions" : {
4
- "moduleResolution" : " Bundler"
4
+ "module" : " NodeNext" ,
5
+ "moduleResolution" : " NodeNext"
5
6
},
6
7
"include" : [
7
8
" src/**/*.js" ,
Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
2
import { QueryClient } from ' @tanstack/query-core'
3
- import QueryClientProvider from ' ../../src/QueryClientProvider.svelte '
3
+ import { QueryClientProvider } from ' ../../src/index.js '
4
4
import ChildComponent from ' ./ChildComponent.svelte'
5
5
import type { QueryCache } from ' @tanstack/query-core'
6
6
Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
- import { createQuery } from ' ../../src/createQuery .js'
2
+ import { createQuery } from ' ../../src/index .js'
3
3
import type { QueryClient , QueryObserverResult } from ' @tanstack/query-core'
4
4
import type { Writable } from ' svelte/store'
5
5
import type { CreateQueryOptions , StoreOrVal } from ' ../../src/index.js'
You can’t perform that action at this time.
0 commit comments