Skip to content

Commit

Permalink
feat: support nestjs 9
Browse files Browse the repository at this point in the history
  • Loading branch information
mo4islona committed Oct 30, 2023
1 parent 0db55ba commit 4fe2f9a
Show file tree
Hide file tree
Showing 3 changed files with 1,033 additions and 585 deletions.
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nestjs-redoc",
"version": "2.2.2",
"version": "2.2.3",
"description": "NestJS ReDoc frontend",
"repository": "https://github.com/mxarc/nestjs-redoc",
"author": "Alfonso Reyes",
Expand All @@ -22,26 +22,26 @@
"sample": "ts-node ./sample/main"
},
"peerDependencies": {
"@nestjs/common": "^8.0.0",
"@nestjs/core": "^8.0.0",
"@nestjs/swagger": "^5.0.0",
"@nestjs/common": "^9.4.3",
"@nestjs/core": "^9.4.3",
"@nestjs/swagger": "^6.3.0",
"reflect-metadata": "^0.1.13"
},
"dependencies": {
"joi": "^17.4.2",
"@nestjs/common": "^8.0.0",
"@nestjs/swagger": "^5.0.0",
"express-basic-auth": "^1.2.0",
"express-handlebars": "^5.1.0"
"joi": "^17.11.0",
"@nestjs/common": "^9.4.3",
"@nestjs/swagger": "^6.3.0",
"express-basic-auth": "^1.2.1",
"express-handlebars": "^6.0.7"
},
"devDependencies": {
"@commitlint/cli": "^9.1.2",
"@commitlint/config-conventional": "^9.1.2",
"@nestjs/core": "^8.0.0",
"@nestjs/platform-express": "^8.0.0",
"@nestjs/platform-fastify": "^8.0.0",
"@nestjs/testing": "^8.0.0",
"@types/express": "^4.17.8",
"@nestjs/core": "^9.4.3",
"@nestjs/platform-express": "^9.4.3",
"@nestjs/platform-fastify": "^9.4.3",
"@nestjs/testing": "^9.4.3",
"@types/express": "^4.17.20",
"@types/express-handlebars": "^3.1.0",
"@types/joi": "^17.2.3",
"@types/jest": "^26.0.15",
Expand All @@ -58,11 +58,11 @@
"prettier": "^2.1.2",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",
"rxjs": "^7.3.0",
"supertest": "^6.0.1",
"ts-jest": "^26.4.3",
"ts-node": "^9.0.0",
"typescript": "^4.3.5"
"rxjs": "^7.8.1",
"supertest": "^6.3.3",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "^4.9.5"
},
"config": {
"commitizen": {
Expand Down
4 changes: 2 additions & 2 deletions src/model/options.model.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Joi = require('joi');
import Joi from 'joi';
import { OpenAPIObject } from '@nestjs/swagger';

export const schema = (document: OpenAPIObject) =>
export const schema = (document: OpenAPIObject): Joi.Schema =>
Joi.object().keys({
redocVersion: Joi.string().default('latest'),
title: Joi.string()
Expand Down
Loading

0 comments on commit 4fe2f9a

Please sign in to comment.