Skip to content

Commit fde9c6d

Browse files
vip-gitVipin
authored andcommitted
update: tsed version and dependencies
1 parent 4be25df commit fde9c6d

File tree

11 files changed

+46
-44
lines changed

11 files changed

+46
-44
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ npm start (Please make sure mongoDB is running in background on port 27017)
1919
Navigate: (Requires you to set headers: `Authorization Bearer AbCdEf123456`)
2020
- http://localhost:3000/api/show (API)
2121
- http://localhost:3000/proxy/show (PROXY - NO headers required for now)
22+
- http://localhost:3000/api-docs/ (Swagger UI)
2223
```

package.json

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -38,63 +38,64 @@
3838
"testEnvironment": "node"
3939
},
4040
"dependencies": {
41-
"ajv": "^6.0.1",
41+
"@tsed/common": "^4.20.0",
42+
"@tsed/core": "^4.20.0",
43+
"@tsed/swagger": "^4.20.0",
44+
"ajv": "^6.5.0",
4245
"bcrypt-nodejs": "^0.0.3",
43-
"body-parser": "^1.18.2",
44-
"class-transformer": "^0.1.8",
45-
"class-validator": "^0.7.3",
46-
"compression": "^1.7.1",
47-
"dotenv": "^2.0.0",
46+
"body-parser": "^1.18.3",
47+
"class-transformer": "^0.1.9",
48+
"class-validator": "^0.8.5",
49+
"compression": "^1.7.2",
50+
"dotenv": "^6.0.0",
4851
"errorhandler": "^1.5.0",
49-
"express": "^4.16.2",
52+
"express": "^4.16.3",
5053
"express-http-proxy": "^1.2.0",
51-
"jsonwebtoken": "^8.1.0",
54+
"jsonwebtoken": "^8.2.2",
5255
"lodash": "^4.17.10",
53-
"lusca": "^1.5.2",
56+
"lusca": "^1.6.0",
5457
"moment": "^2.22.2",
55-
"mongoose": "^4.13.7",
58+
"mongoose": "^5.1.3",
5659
"morgan": "^1.9.0",
5760
"node-fetch": "^2.1.2",
58-
"request": "^2.83.0",
61+
"request": "^2.87.0",
5962
"request-promise": "^4.2.2",
60-
"swagger-ui-express": "^2.0.14",
61-
"ts-express-decorators": "^3.7.0",
62-
"ts-log-debug": "^4.0.2",
63+
"ts-log-debug": "^4.0.3",
6364
"tspath": "^1.2.10",
6465
"typedoc": "^0.11.1",
65-
"typegoose": "3.4.7",
66+
"typegoose": "5.2.1",
6667
"typescript-param-validator": "^1.1.0"
6768
},
6869
"devDependencies": {
69-
"@types/async": "^2.0.40",
70+
"@types/async": "^2.0.49",
7071
"@types/bcrypt-nodejs": "0.0.30",
71-
"@types/body-parser": "^1.16.2",
72+
"@types/body-parser": "^1.17.0",
7273
"@types/compression": "0.0.33",
7374
"@types/connect-mongo": "0.0.34",
7475
"@types/dotenv": "^2.0.20",
75-
"@types/express": "^4.0.35",
76-
"@types/express-session": "^1.15.5",
77-
"@types/jest": "^21.1.5",
76+
"@types/express": "^4.16.0",
77+
"@types/express-session": "^1.15.9",
78+
"@types/jest": "^21.1.10",
7879
"@types/lodash": "^4.14.100",
79-
"@types/mongodb": "^2.2.18",
80-
"@types/mongoose": "^4.7.9",
80+
"@types/mongodb": "^2.2.20",
81+
"@types/mongoose": "^4.7.36",
8182
"@types/morgan": "^1.7.32",
82-
"@types/node": "^7.0.12",
83+
"@types/node": "^7.0.65",
8384
"@types/nodemailer": "^1.3.32",
8485
"@types/reflect-metadata": "^0.1.0",
85-
"@types/request": "^2.0.7",
86-
"@types/request-promise": "^4.1.39",
87-
"@types/supertest": "^2.0.0",
88-
"eslint": "^4.14.0",
86+
"@types/request": "^2.47.0",
87+
"@types/request-promise": "^4.1.41",
88+
"@types/supertest": "^2.0.4",
89+
"eslint": "^4.19.1",
8990
"jest": "^21.2.1",
90-
"node-sass": "^4.5.2",
91-
"nodemon": "^1.12.1",
91+
"node-sass": "^4.9.0",
92+
"nodemon": "^1.17.5",
9293
"shelljs": "^0.7.7",
9394
"supertest": "^2.0.1",
94-
"ts-jest": "^21.1.4",
95+
"ts-jest": "^21.2.4",
9596
"ts-node": "^3.3.0",
96-
"tsconfig-paths": "^3.1.1",
97-
"tslint": "^5.8.0",
98-
"typescript": "^2.4.0"
97+
"tsconfig-paths": "^3.3.2",
98+
"tslint": "^5.10.0",
99+
"typescript": "^2.9.1"
99100
}
100101
}

src/api/show/show.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Request } from 'express';
2-
import { Controller, Get, PathParams, QueryParams, Authenticated, Required, Req } from 'ts-express-decorators';
3-
import { Returns } from 'ts-express-decorators/lib/swagger';
2+
import { Controller, Get, PathParams, QueryParams, Authenticated, Required, Req } from '@tsed/common';
3+
import { Returns } from '@tsed/swagger';
44
import { ShowModel } from './show.model';
55
import { TvMazeService } from '../../common/services/tvmaze/tvmaze.service';
66

src/api/show/show.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { InjectorService, JsonProperty } from 'ts-express-decorators';
1+
import { InjectorService, JsonProperty } from '@tsed/common';
22
import { prop, Typegoose, InstanceType, arrayProp, instanceMethod, pre, ModelType } from 'typegoose';
33
import * as bcrypt from 'bcrypt-nodejs';
44

src/app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'reflect-metadata';
2-
import 'ts-express-decorators/swagger';
2+
import '@tsed/swagger';
33

44
import * as Path from 'path';
55
import * as dotenv from 'dotenv';
@@ -11,7 +11,7 @@ import * as compression from 'compression';
1111

1212
dotenv.config({ path: '.env' });
1313

14-
import { ServerLoader, ServerSettings, GlobalAcceptMimesMiddleware } from 'ts-express-decorators';
14+
import { ServerLoader, ServerSettings, GlobalAcceptMimesMiddleware } from '@tsed/common';
1515
import { $log } from 'ts-log-debug';
1616
import { MongooseService } from './common/services/shared/mongoose.service';
1717
import { TvMazeService } from './common/services/tvmaze/tvmaze.service';

src/common/middlewares/auth.middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Request } from 'express';
22
import { IMiddleware, OverrideMiddleware, AuthenticatedMiddleware,
33
EndpointInfo, EndpointMetadata, Req
4-
} from 'ts-express-decorators';
4+
} from '@tsed/common';
55
import { AuthService } from '../services/shared/auth.service';
66
import { ApiError, ErrorInfo } from '../utils/error';
77

src/common/middlewares/error.middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { NextFunction as ExpressNext, Request as ExpressRequest, Response as Exp
22
import {
33
IMiddlewareError, Err, Next, Request, Response,
44
OverrideMiddleware, GlobalErrorHandlerMiddleware
5-
} from 'ts-express-decorators';
5+
} from '@tsed/common';
66
import { ValidatorError } from 'typescript-param-validator';
77
import { ApiError, ErrorInfo } from '../utils/error';
88

src/common/services/shared/auth.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as jwt from 'jsonwebtoken';
22
import * as moment from 'moment';
33

4-
import { Inject, Service } from 'ts-express-decorators';
4+
import { Inject, Service } from '@tsed/common';
55

66
const DAY = 60000 * 60 * 24;
77
export const TOKEN_EXP = DAY * 7;

src/common/services/shared/mongoose.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as mongoose from 'mongoose';
2-
import { Service } from 'ts-express-decorators';
2+
import { Service } from '@tsed/common';
33

44
(mongoose as any).Promise = global.Promise;
55

src/common/services/tvmaze/tvmaze.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Library
22
import fetch from 'node-fetch';
33
import * as _ from 'lodash';
4-
import { Inject, Service } from 'ts-express-decorators';
4+
import { Inject, Service } from '@tsed/common';
55

66
@Service()
77
export class TvMazeService {

0 commit comments

Comments
 (0)