Skip to content

Commit

Permalink
bump: update package
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackSenPig committed Aug 2, 2023
1 parent 8056b87 commit 269dd8d
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 32 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16.14.0-alpine
FROM node:18.17.0-alpine

RUN mkdir -p /app && chown -R node:node /app

Expand Down
54 changes: 27 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,29 @@
"version": "0.0.0",
"description": "boilerplate to quick-start Node.js Express backend development in TypeScript.",
"engines": {
"node": ">= 16.13 <17"
"node": ">= 18.17 <20"
},
"devDependencies": {
"@types/cors": "^2.8.12",
"@types/cors": "^2.8.13",
"@types/dotenv": "^8.2.0",
"@types/express": "^4.17.13",
"@types/jest": "~28.1",
"@types/node": "^18.6",
"@types/express": "^4.17.17",
"@types/jest": "~29.5",
"@types/node": "^20.4",
"@types/node-schedule": "^2.1.0",
"@types/swagger-ui-express": "^4.1.3",
"@typescript-eslint/eslint-plugin": "~5.32",
"@typescript-eslint/parser": "~5.32",
"eslint": "~8.21",
"eslint-config-prettier": "~8.5",
"eslint-plugin-jest": "~26.7",
"javascript-obfuscator": "^4.0.0",
"jest": "~28.1",
"prettier": "~2.7",
"rimraf": "~3.0",
"ts-jest": "~28.0",
"@typescript-eslint/eslint-plugin": "~6.2",
"@typescript-eslint/parser": "~6.2",
"eslint": "~8.46",
"eslint-config-prettier": "~8.9",
"eslint-plugin-jest": "~27.2",
"javascript-obfuscator": "^4.0.2",
"jest": "~29.6",
"prettier": "~3.0",
"rimraf": "~5.0",
"ts-jest": "~29.1",
"ts-node": "^10.9.1",
"tsutils": "~3.21",
"typescript": "~4.7"
"typescript": "~5.1"
},
"scripts": {
"start": "nodemon",
Expand All @@ -46,18 +46,18 @@
"license": "Apache-2.0",
"dependencies": {
"cors": "^2.8.5",
"dotenv": "^16.0.1",
"express": "^4.18.1",
"helmet": "^5.1.1",
"mongoose": "^6.5.1",
"node-schedule": "^2.1.0",
"nodemon": "^2.0.19",
"swagger-ui-express": "^4.5.0",
"tslib": "~2.4.0",
"tsoa": "^4.1.1",
"validator": "^13.7.0"
"dotenv": "^16.3.1",
"express": "^4.18.2",
"helmet": "^7.0.0",
"mongoose": "^7.4.1",
"node-schedule": "^2.1.1",
"nodemon": "^3.0.1",
"swagger-ui-express": "^5.0.0",
"tslib": "~2.6.1",
"tsoa": "^5.1.1",
"validator": "^13.9.0"
},
"volta": {
"node": "16.13.0"
"node": "18.17.0"
}
}
2 changes: 1 addition & 1 deletion public/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"info": {
"title": "node-typescript-boilerplate",
"version": "0.0.0",
"description": "Minimalistic boilerplate to quick-start Node.js development in TypeScript.",
"description": "boilerplate to quick-start Node.js Express backend development in TypeScript.",
"license": {
"name": "Apache-2.0"
},
Expand Down
11 changes: 8 additions & 3 deletions src/routes/routes.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/* tslint:disable */
/* eslint-disable */
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
import { Controller, ValidationService, FieldErrors, ValidateError, TsoaRoute, HttpStatusCodeLiteral, TsoaResponse } from '@tsoa/runtime';
import { Controller, ValidationService, FieldErrors, ValidateError, TsoaRoute, HttpStatusCodeLiteral, TsoaResponse, fetchMiddlewares } from '@tsoa/runtime';
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
import { PingController } from './../controllers/ping.test.controller';
import * as express from 'express';
import type { RequestHandler, Router } from 'express';

// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa

Expand All @@ -22,12 +22,14 @@ const validationService = new ValidationService(models);

// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa

export function RegisterRoutes(app: express.Router) {
export function RegisterRoutes(app: Router) {
// ###########################################################################################################
// NOTE: If you do not see routes for all of your controllers in this file, then you might not have informed tsoa of where to look
// Please look into the "controllerPathGlobs" config option described in the readme: https://github.com/lukeautry/tsoa
// ###########################################################################################################
app.get('/ping',
...(fetchMiddlewares<RequestHandler>(PingController)),
...(fetchMiddlewares<RequestHandler>(PingController.prototype.getMessage)),

function PingController_getMessage(request: any, response: any, next: any) {
const args = {
Expand Down Expand Up @@ -86,6 +88,7 @@ export function RegisterRoutes(app: express.Router) {
response.set(name, headers[name]);
});
if (data && typeof data.pipe === 'function' && data.readable && typeof data._read === 'function') {
response.status(statusCode || 200)
data.pipe(response);
} else if (data !== null && data !== undefined) {
response.status(statusCode || 200).json(data);
Expand Down Expand Up @@ -113,6 +116,8 @@ export function RegisterRoutes(app: express.Router) {
return request;
case 'query':
return validationService.ValidateParam(args[key], request.query[name], name, fieldErrors, undefined, {"noImplicitAdditionalProperties":"throw-on-extras"});
case 'queries':
return validationService.ValidateParam(args[key], request.query, name, fieldErrors, undefined, {"noImplicitAdditionalProperties":"throw-on-extras"});
case 'path':
return validationService.ValidateParam(args[key], request.params[name], name, fieldErrors, undefined, {"noImplicitAdditionalProperties":"throw-on-extras"});
case 'header':
Expand Down

0 comments on commit 269dd8d

Please sign in to comment.