Skip to content

Commit 1bc6491

Browse files
author
Daniil Zotov
authored
remove lodash.clonedeep
1 parent bf58e93 commit 1bc6491

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

Diff for: package.json

-2
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,12 @@
6868
"@apidevtools/swagger-parser": "^10.1.0",
6969
"@scalar/api-reference": "^1.12.5",
7070
"@types/bun": "1.1.6",
71-
"@types/lodash.clonedeep": "^4.5.9",
7271
"elysia": ">= 1.1.0-rc.2",
7372
"eslint": "9.6.0",
7473
"tsup": "^8.1.0",
7574
"typescript": "^5.5.3"
7675
},
7776
"dependencies": {
78-
"lodash.clonedeep": "^4.5.0",
7977
"openapi-types": "^12.1.3"
8078
}
8179
}

Diff for: src/utils.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import type { HTTPMethod, LocalHook } from 'elysia'
66
import { Kind, type TSchema } from '@sinclair/typebox'
77
import type { OpenAPIV3 } from 'openapi-types'
88

9-
import deepClone from 'lodash.clonedeep'
10-
119
export const toOpenAPIPath = (path: string) =>
1210
path
1311
.split('/')
@@ -116,9 +114,7 @@ export const registerSchemaPath = ({
116114
method: HTTPMethod
117115
hook?: LocalHook<any, any, any, any, any, any, any>
118116
models: Record<string, TSchema>
119-
}) => {
120-
if (hook) hook = deepClone(hook)
121-
117+
}) => {
122118
const contentType = hook?.type ?? [
123119
'application/json',
124120
'multipart/form-data',

0 commit comments

Comments
 (0)