Skip to content

Commit

Permalink
feat: add nest adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
ismoiliy98 committed Dec 4, 2024
1 parent 4d44577 commit b260cec
Show file tree
Hide file tree
Showing 5 changed files with 341 additions and 3 deletions.
273 changes: 271 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ultimate-express",
"version": "1.3.17",
"version": "1.4.0",
"description": "The Ultimate Express. Fastest http server with full Express compatibility, based on uWebSockets.",
"main": "src/index.js",
"scripts": {
Expand Down Expand Up @@ -64,6 +64,7 @@
},
"devDependencies": {
"@codechecks/client": "^0.1.12",
"@nestjs/platform-express": "^10.4.13",
"body-parser": "^1.20.3",
"compression": "^1.7.5",
"cookie-parser": "^1.4.6",
Expand Down
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const Router = require("./router.js");
const middlewares = require("./middlewares.js");
const Request = require("./request.js");
const Response = require("./response.js");
const NestExpressAdapter = require("./nest-adapter.js");

try {
// disable Uwebsockets header
Expand Down Expand Up @@ -51,4 +52,6 @@ Application.urlencoded = middlewares.urlencoded;
Application.text = middlewares.text;
Application.raw = middlewares.raw;

Application.NestExpressAdapter = NestExpressAdapter;

module.exports = Application;
Loading

0 comments on commit b260cec

Please sign in to comment.