chore: update package dependencies and adjust GraphQL upload imports
- Updated various package dependencies in package-lock.json and package.json for improved stability and performance. - Changed import paths for graphql-upload to use .mjs extensions, ensuring compatibility with ES modules. - Added @types/graphql-upload to package.json for better TypeScript support. - Adjusted Jest configuration for improved readability and maintainability.
This commit is contained in:
@@ -5,8 +5,10 @@ import SmartSubscriptionPlugin, { subscribeOptionsFromIterator } from '@pothos/p
|
||||
import ZodPlugin from '@pothos/plugin-zod'
|
||||
import AuthzPlugin from '@pothos/plugin-authz'
|
||||
import ErrorsPlugin from '@pothos/plugin-errors'
|
||||
import type { FileUpload } from 'graphql-upload/processRequest.js'
|
||||
import GraphQLUpload from 'graphql-upload/GraphQLUpload.js'
|
||||
// @ts-expect-error
|
||||
import type { FileUpload } from 'graphql-upload/processRequest.mjs'
|
||||
// @ts-expect-error
|
||||
import GraphQLUpload from 'graphql-upload/GraphQLUpload.mjs'
|
||||
import { Injectable, Logger } from '@nestjs/common'
|
||||
import { PrismaCrudGenerator } from './graphql.generator'
|
||||
import type PrismaTypes from '../types/pothos.generated'
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { Inject, Injectable, Logger } from '@nestjs/common'
|
||||
import { ConfigService } from '@nestjs/config'
|
||||
import { FileUpload } from 'graphql-upload/processRequest.js'
|
||||
// @ts-expect-error
|
||||
import { FileUpload } from 'graphql-upload/processRequest.mjs'
|
||||
import { Client, BucketItem } from 'minio'
|
||||
import { MINIO_CONNECTION } from 'nestjs-minio'
|
||||
import { DateTimeUtils } from 'src/common/utils/datetime.utils'
|
||||
|
||||
@@ -4,7 +4,8 @@ import { AppModule } from './app.module'
|
||||
import { Logger } from '@nestjs/common'
|
||||
import { NestFactory } from '@nestjs/core'
|
||||
import { clerkMiddleware } from '@clerk/express'
|
||||
import graphqlUploadExpress from 'graphql-upload/graphqlUploadExpress.js'
|
||||
// @ts-expect-error
|
||||
import graphqlUploadExpress from 'graphql-upload/graphqlUploadExpress.mjs'
|
||||
import path from 'node:path'
|
||||
import { readFileSync } from 'node:fs'
|
||||
import { json } from 'express'
|
||||
|
||||
Reference in New Issue
Block a user