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

Fix samchon/typia#880 - any type comes when assertClone option. #692

Merged
merged 1 commit into from
Nov 23, 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
6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestia/core",
"version": "2.3.10",
"version": "2.3.11",
"description": "Super-fast validation decorators of NestJS",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down Expand Up @@ -34,7 +34,7 @@
},
"homepage": "https://nestia.io",
"dependencies": {
"@nestia/fetcher": "^2.3.10",
"@nestia/fetcher": "^2.3.11",
"@nestjs/common": ">=7.0.1",
"@nestjs/core": ">=7.0.1",
"@nestjs/platform-express": ">=7.0.1",
Expand All @@ -47,7 +47,7 @@
"typia": "^5.2.6"
},
"peerDependencies": {
"@nestia/fetcher": ">=2.3.10",
"@nestia/fetcher": ">=2.3.11",
"@nestjs/common": ">=7.0.1",
"@nestjs/core": ">=7.0.1",
"@nestjs/platform-express": ">=7.0.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/core/src/decorators/TypedBody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
import type express from "express";
import type { FastifyRequest } from "fastify";

import { assert, is, validate } from "typia";
import { assert, is, misc, validate } from "typia";

import { IRequestBodyValidator } from "../options/IRequestBodyValidator";
import { validate_request_body } from "./internal/validate_request_body";
Expand Down Expand Up @@ -47,6 +47,7 @@ export function TypedBody<T>(
})();
}

Object.assign(TypedBody, misc.clone);
Object.assign(TypedBody, is);
Object.assign(TypedBody, assert);
Object.assign(TypedBody, validate);
Expand Down
2 changes: 1 addition & 1 deletion packages/fetcher/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestia/fetcher",
"version": "2.3.10",
"version": "2.3.11",
"description": "Fetcher library of Nestia SDK",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down
6 changes: 3 additions & 3 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestia/sdk",
"version": "2.3.10",
"version": "2.3.11",
"description": "Nestia SDK and Swagger generator",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down Expand Up @@ -35,7 +35,7 @@
},
"homepage": "https://nestia.io",
"dependencies": {
"@nestia/fetcher": "^2.3.10",
"@nestia/fetcher": "^2.3.11",
"cli": "^1.0.1",
"get-function-location": "^2.0.0",
"glob": "^7.2.0",
Expand All @@ -47,7 +47,7 @@
"typia": "^5.2.6"
},
"peerDependencies": {
"@nestia/fetcher": ">=2.3.10",
"@nestia/fetcher": ">=2.3.11",
"@nestjs/common": ">=7.0.1",
"@nestjs/core": ">=7.0.1",
"reflect-metadata": ">=0.1.12",
Expand Down
8 changes: 4 additions & 4 deletions test/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@nestia/test",
"version": "2.3.10",
"version": "2.3.11",
"description": "Test program of Nestia",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -37,9 +37,9 @@
"typia": "^5.2.6",
"uuid": "^9.0.0",
"nestia": "^4.5.0",
"@nestia/core": "^2.3.10",
"@nestia/core": "^2.3.11",
"@nestia/e2e": "^0.3.6",
"@nestia/fetcher": "^2.3.10",
"@nestia/sdk": "^2.3.10"
"@nestia/fetcher": "^2.3.11",
"@nestia/sdk": "^2.3.11"
}
}
Loading