Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps-dev): bump prettier from 3.0.3 to 3.1.0 #1115

Merged
merged 2 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
8 changes: 4 additions & 4 deletions __tests__/__utils__/assertions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@ function destringifyProperties(value: unknown) {
return Array.isArray(value)
? value.map(destringify)
: typeof value === 'object' && value !== null
? R.mapObjIndexed(destringify, value)
: value === 'null'
? null
: value
? R.mapObjIndexed(destringify, value)
: value === 'null'
? null
: value
}

function destringify(value: unknown) {
Expand Down
10 changes: 5 additions & 5 deletions packages/server/src/internals/graphql/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ export type ModelMapping = {
? P[0]
: never
: '__isTypeOf' extends keyof GetResolver<R>
? NonNullable<GetResolver<R>['__isTypeOf']> extends (
...args: infer P
) => unknown
? P[0]
? NonNullable<GetResolver<R>['__isTypeOf']> extends (
...args: infer P
) => unknown
? P[0]
: never
: never
: never
}

/**
Expand Down
24 changes: 12 additions & 12 deletions packages/server/src/internals/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ import { Connection } from '~/schema/connection/types'
export type ModelOf<T> = A.Equals<T, unknown> extends 1
? T
: T extends boolean | string | number | null
? T
: Typename<T> extends keyof Models
? Models[Typename<T>]
: Typename<T> extends `${string}${'Mutation' | 'Query'}`
? Record<string, never>
: T extends { nodes: Array<infer U>; totalCount: number }
? Connection<ModelOf<U>>
: T extends (infer U)[]
? ModelOf<U>[]
: T extends object
? { [P in keyof T]: ModelOf<T[P]> }
: never
? T
: Typename<T> extends keyof Models
? Models[Typename<T>]
: Typename<T> extends `${string}${'Mutation' | 'Query'}`
? Record<string, never>
: T extends { nodes: Array<infer U>; totalCount: number }
? Connection<ModelOf<U>>
: T extends (infer U)[]
? ModelOf<U>[]
: T extends object
? { [P in keyof T]: ModelOf<T[P]> }
: never

/**
* Given a GraphQL type it returns the name of the GraphQL type as a string.
Expand Down
8 changes: 4 additions & 4 deletions packages/server/src/internals/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ function stringifyContextValue(value: unknown) {
return Array.isArray(value)
? R.map(stringify, value)
: typeof value === 'object' && value !== null
? R.mapObjIndexed(stringify, value)
: value === null
? JSON.stringify(value)
: value
? R.mapObjIndexed(stringify, value)
: value === null
? JSON.stringify(value)
: value
}

function stringify(value: unknown) {
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16451,11 +16451,11 @@ __metadata:
linkType: hard

"prettier@npm:^3.0.3":
version: 3.0.3
resolution: "prettier@npm:3.0.3"
version: 3.1.0
resolution: "prettier@npm:3.1.0"
bin:
prettier: bin/prettier.cjs
checksum: e10b9af02b281f6c617362ebd2571b1d7fc9fb8a3bd17e371754428cda992e5e8d8b7a046e8f7d3e2da1dcd21aa001e2e3c797402ebb6111b5cd19609dd228e0
checksum: 44b556bd56f74d7410974fbb2418bb4e53a894d3e7b42f6f87779f69f27a6c272fa7fc27cec0118cd11730ef3246478052e002cbd87e9a253f9cd04a56aa7d9b
languageName: node
linkType: hard

Expand Down
Loading