Skip to content

Commit 0b8c62e

Browse files
committed
ci: Format code
1 parent 4bead45 commit 0b8c62e

7 files changed

+15
-15
lines changed

src/lib/SeamQueryProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function Session({
145145
}
146146

147147
const createDefaultSeamQueryContextValue = (): SeamQueryContext => {
148-
return { client: null, endpointClient: null }
148+
return { client: null, endpointClient: null }
149149
}
150150

151151
const createSeamQueryContextValue = (

src/lib/use-seam-client.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function useSeamClient(): {
3131
...context
3232
} = useSeamQueryContext()
3333
const userIdentifierKey = useUserIdentifierKeyOrFingerprint(
34-
clientSessionToken != null ? '' : context.userIdentifierKey
34+
clientSessionToken != null ? '' : context.userIdentifierKey,
3535
)
3636

3737
const { isPending, isError, error, data } = useQuery<{
@@ -63,7 +63,7 @@ export function useSeamClient(): {
6363
if (clientSessionToken != null) {
6464
const seam = SeamHttp.fromClientSessionToken(
6565
clientSessionToken,
66-
clientOptions
66+
clientOptions,
6767
)
6868

6969
return {
@@ -78,7 +78,7 @@ export function useSeamClient(): {
7878
const seam = await SeamHttp.fromPublishableKey(
7979
publishableKey,
8080
userIdentifierKey,
81-
clientOptions
81+
clientOptions,
8282
)
8383

8484
return {
@@ -95,7 +95,7 @@ export function useSeamClient(): {
9595

9696
const endpointClientWithoutWorkspace =
9797
SeamHttpEndpointsWithoutWorkspace.fromClient(
98-
clientWithoutWorkspace.client
98+
clientWithoutWorkspace.client,
9999
)
100100

101101
if (workspaceId == null) {
@@ -110,7 +110,7 @@ export function useSeamClient(): {
110110
const seam = SeamHttp.fromConsoleSessionToken(
111111
consoleSessionToken,
112112
workspaceId,
113-
clientOptions
113+
clientOptions,
114114
)
115115

116116
return {
@@ -122,7 +122,7 @@ export function useSeamClient(): {
122122
}
123123

124124
throw new Error(
125-
'Missing either a client, publishableKey, clientSessionToken, or consoleSessionToken.'
125+
'Missing either a client, publishableKey, clientSessionToken, or consoleSessionToken.',
126126
)
127127
},
128128
})
@@ -155,15 +155,15 @@ export class NullSeamClientError extends Error {
155155
'Either a hook using useSeamClient was called outside of a SeamProvider or SeamQueryProvider,',
156156
'or there was an error when creating the Seam client in useSeamClient,',
157157
'or useSeamClient is still loading the client.',
158-
].join(' ')
158+
].join(' '),
159159
)
160160
this.name = this.constructor.name
161161
Error.captureStackTrace(this, this.constructor)
162162
}
163163
}
164164

165165
function useUserIdentifierKeyOrFingerprint(
166-
userIdentifierKey: string | undefined
166+
userIdentifierKey: string | undefined,
167167
): string {
168168
useEffect(() => {
169169
if (userIdentifierKey != null) return

src/lib/use-seam-infinite-query.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function useSeamInfiniteQuery<
3232
endpointPath: T,
3333
parameters: UseSeamInfiniteQueryParameters<T> = {},
3434
options: Parameters<SeamHttpEndpoints[T]>[1] &
35-
QueryOptions<QueryData<T>, QueryError<T>> = {}
35+
QueryOptions<QueryData<T>, QueryError<T>> = {},
3636
): UseSeamInfiniteQueryResult<T> & { queryKey: QueryKey } {
3737
const { endpointClient: client, queryKeyPrefixes } = useSeamClient()
3838

@@ -71,7 +71,7 @@ export function useSeamInfiniteQuery<
7171
}
7272
// Type assertion is needed for pageParam since the Seam API expects a branded PageCursor type.
7373
const [data, { nextPageCursor }] = await pages.nextPage(
74-
pageParam as SeamPageCursor
74+
pageParam as SeamPageCursor,
7575
)
7676
return {
7777
data: data as Awaited<ReturnType<SeamHttpEndpoints[T]>>,

src/lib/use-seam-mutation-without-workspace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function useSeamMutationWithoutWorkspace<
3333
MutationData<T>,
3434
MutationError,
3535
UseSeamMutationWithoutWorkspaceVariables<T>
36-
> = {}
36+
> = {},
3737
): UseSeamMutationWithoutWorkspaceResult<T> {
3838
const { endpointClient: client } = useSeamClient()
3939
return useMutation({

src/lib/use-seam-mutation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function useSeamMutation<T extends SeamHttpEndpointMutationPaths>(
3232
MutationData<T>,
3333
MutationError<T>,
3434
UseSeamMutationVariables<T>
35-
> = {}
35+
> = {},
3636
): UseSeamMutationResult<T> {
3737
const { endpointClient: client } = useSeamClient()
3838
return useMutation({

src/lib/use-seam-query-without-workspace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function useSeamQueryWithoutWorkspace<
2727
endpointPath: T,
2828
parameters: UseSeamQueryWithoutWorkspaceParameters<T> = {},
2929
options: Parameters<SeamHttpEndpointsWithoutWorkspace[T]>[1] &
30-
QueryOptions<QueryData<T>, QueryError> = {}
30+
QueryOptions<QueryData<T>, QueryError> = {},
3131
): UseSeamQueryWithoutWorkspaceResult<T> & { queryKey: QueryKey } {
3232
const { endpointClient: client, queryKeyPrefixes } = useSeamClient()
3333
const queryKey = [

src/lib/use-seam-query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function useSeamQuery<T extends SeamHttpEndpointQueryPaths>(
2626
endpointPath: T,
2727
parameters: UseSeamQueryParameters<T> = {},
2828
options: Parameters<SeamHttpEndpoints[T]>[1] &
29-
QueryOptions<QueryData<T>, SeamHttpApiError> = {}
29+
QueryOptions<QueryData<T>, SeamHttpApiError> = {},
3030
): UseSeamQueryResult<T> & { queryKey: QueryKey } {
3131
const { endpointClient: client, queryKeyPrefixes } = useSeamClient()
3232
const queryKey = [

0 commit comments

Comments
 (0)