chore: code style
This commit is contained in:
@@ -2,7 +2,7 @@ import type { FastifyReply } from 'fastify'
|
||||
|
||||
import { HttpException } from '@nestjs/common'
|
||||
|
||||
import { FunctionContextResponse } from './function.types'
|
||||
import type { FunctionContextResponse } from './function.types'
|
||||
|
||||
export const createMockedContextResponse = (
|
||||
reply: FastifyReply,
|
||||
|
||||
@@ -19,8 +19,8 @@ import { IsMaster } from '~/common/decorator/role.decorator'
|
||||
|
||||
import { SnippetType } from '../snippet/snippet.model'
|
||||
import { createMockedContextResponse } from './mock-response.util'
|
||||
import { ServerlessReferenceDto } from './serverless.dto'
|
||||
import { ServerlessService } from './serverless.service'
|
||||
import type { ServerlessReferenceDto } from './serverless.dto'
|
||||
import type { ServerlessService } from './serverless.service'
|
||||
|
||||
@ApiName
|
||||
@Controller('serverless')
|
||||
|
||||
@@ -4,9 +4,10 @@ import { cloneDeep } from 'lodash'
|
||||
import path from 'path'
|
||||
import { nextTick } from 'process'
|
||||
|
||||
import { TransformOptions, parseAsync, transformAsync } from '@babel/core'
|
||||
import type { TransformOptions } from '@babel/core'
|
||||
import { parseAsync, transformAsync } from '@babel/core'
|
||||
import * as t from '@babel/types'
|
||||
import { VariableDeclaration } from '@babel/types'
|
||||
import type { VariableDeclaration } from '@babel/types'
|
||||
import {
|
||||
Injectable,
|
||||
InternalServerErrorException,
|
||||
@@ -16,19 +17,19 @@ import { Interval } from '@nestjs/schedule'
|
||||
|
||||
import { RedisKeys } from '~/constants/cache.constant'
|
||||
import { DATA_DIR, NODE_REQUIRE_PATH } from '~/constants/path.constant'
|
||||
import { CacheService } from '~/processors/cache/cache.service'
|
||||
import { DatabaseService } from '~/processors/database/database.service'
|
||||
import { AssetService } from '~/processors/helper/helper.asset.service'
|
||||
import { HttpService } from '~/processors/helper/helper.http.service'
|
||||
import type { CacheService } from '~/processors/cache/cache.service'
|
||||
import type { DatabaseService } from '~/processors/database/database.service'
|
||||
import type { AssetService } from '~/processors/helper/helper.asset.service'
|
||||
import type { HttpService } from '~/processors/helper/helper.http.service'
|
||||
import { InjectModel } from '~/transformers/model.transformer'
|
||||
import { UniqueArray } from '~/ts-hepler/unique'
|
||||
import type { UniqueArray } from '~/ts-hepler/unique'
|
||||
import { getRedisKey, safePathJoin } from '~/utils'
|
||||
import { safeEval } from '~/utils/safe-eval.util'
|
||||
import { isBuiltinModule } from '~/utils/system.util'
|
||||
|
||||
import PKG from '../../../package.json'
|
||||
import { SnippetModel } from '../snippet/snippet.model'
|
||||
import {
|
||||
import type {
|
||||
FunctionContextRequest,
|
||||
FunctionContextResponse,
|
||||
} from './function.types'
|
||||
|
||||
Reference in New Issue
Block a user