Skip to content

Commit

Permalink
Fix test program bug and publish migrate/editor.
Browse files Browse the repository at this point in the history
  • Loading branch information
samchon committed Dec 5, 2024
1 parent 285c4ee commit f639afd
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 14 deletions.
4 changes: 2 additions & 2 deletions packages/editor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestia/editor",
"version": "0.9.2",
"version": "0.9.3",
"typings": "lib/index.d.ts",
"main": "lib/index.js",
"module": "lib/index.mjs",
Expand Down Expand Up @@ -34,7 +34,7 @@
"homepage": "https://nestia.io",
"dependencies": {
"@mui/material": "^5.15.6",
"@nestia/migrate": "^0.21.2",
"@nestia/migrate": "^0.21.3",
"@stackblitz/sdk": "^1.11.0",
"js-yaml": "^4.1.0",
"prettier": "3.3.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/tsconfig.app.tsbuildinfo
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"root":["./src/nestiaeditorapplication.tsx","./src/nestiaeditoriframe.tsx","./src/nestiaeditormodule.ts","./src/nestiaeditoruploader.tsx","./src/index.ts","./src/main.tsx","./src/vite-env.d.ts","./src/internal/nestiaeditorcomposer.ts","./src/internal/nestiaeditorfileuploader.tsx"],"version":"5.6.3"}
{"root":["./src/nestiaeditorapplication.tsx","./src/nestiaeditoriframe.tsx","./src/nestiaeditormodule.ts","./src/nestiaeditoruploader.tsx","./src/index.ts","./src/main.tsx","./src/vite-env.d.ts","./src/internal/nestiaeditorcomposer.ts","./src/internal/nestiaeditorfileuploader.tsx"],"version":"5.7.2"}
2 changes: 1 addition & 1 deletion packages/editor/tsconfig.node.tsbuildinfo
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"root":["./vite.config.ts"],"version":"5.6.3"}
{"root":["./vite.config.ts"],"version":"5.7.2"}
8 changes: 4 additions & 4 deletions packages/migrate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestia/migrate",
"version": "0.21.2",
"version": "0.21.3",
"description": "Migration program from swagger to NestJS",
"typings": "lib/index.d.ts",
"main": "lib/index.js",
Expand Down Expand Up @@ -38,9 +38,9 @@
"homepage": "https://nestia.io",
"devDependencies": {
"@nestia/benchmark": "^0.3.0",
"@nestia/core": "^4.0.2",
"@nestia/core": "^4.0.4",
"@nestia/e2e": "^0.7.0",
"@nestia/fetcher": "^4.0.2",
"@nestia/fetcher": "^4.0.4",
"@nestjs/common": "^10.3.8",
"@nestjs/core": "^10.3.8",
"@nestjs/platform-express": "^10.3.8",
Expand Down Expand Up @@ -71,7 +71,7 @@
"typescript-transform-paths": "^3.5.2"
},
"dependencies": {
"@nestia/sdk": "^4.0.2",
"@nestia/sdk": "^4.0.4",
"@samchon/openapi": "^2.0.1",
"commander": "10.0.0",
"inquirer": "8.2.5",
Expand Down
10 changes: 7 additions & 3 deletions test/features/clone-and-propagate/src/Backend.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import core from "@nestia/core";
import { INestApplication } from "@nestjs/common";
import { NestFactory } from "@nestjs/core";
import { FastifyAdapter } from "@nestjs/platform-fastify";
import {
FastifyAdapter,
NestFastifyApplication,
} from "@nestjs/platform-fastify";
import FastifyMulter from "fastify-multer";

export class Backend {
private application_?: INestApplication;
private application_?: NestFastifyApplication;

public async open(): Promise<void> {
this.application_ = await NestFactory.create(
Expand All @@ -15,6 +18,7 @@ export class Backend {
new FastifyAdapter(),
{ logger: false },
);
await this.application_.register(FastifyMulter.contentParser as any);
await this.application_.listen(37_000);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import core from "@nestia/core";
import { Controller } from "@nestjs/common";
import Multer from "multer";
import FastifyMulter from "fastify-multer";
import { tags } from "typia";

@Controller("multipart")
export class MultipartController {
@core.TypedRoute.Post()
public post(@core.TypedFormData.Body(() => Multer()) body: IMultipart): void {
public post(
@core.TypedFormData.Body(() => FastifyMulter()) body: IMultipart,
): void {
body;
}
}
Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@mui/icons-material": "5.15.6",
"@mui/material": "5.15.6",
"@mui/system": "5.15.6",
"@nestia/editor": "^0.9.2",
"@nestia/editor": "^0.9.3",
"next": "14.2.13",
"nextra": "^2.13.4",
"nextra-theme-docs": "^2.13.4",
Expand Down

0 comments on commit f639afd

Please sign in to comment.