Skip to content

Commit 31a823f

Browse files
author
hirsch
committed
⬆️ Upgrade typescript
1 parent 06e1b74 commit 31a823f

File tree

15 files changed

+37
-30
lines changed

15 files changed

+37
-30
lines changed

commands/banner.ts

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

4-
figlet(process.argv[2], (error: any, data: any) => {
4+
figlet.text(process.argv[2], (error: any, data: any) => {
55
if (error) {
66
return process.exit(1);
77
}

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"@types/dotenv": "^4.0.2",
4848
"@types/express": "^4.0.39",
4949
"@types/faker": "^4.1.2",
50+
"@types/figlet": "^1.2.0",
5051
"@types/helmet": "0.0.41",
5152
"@types/lodash": "^4.14.80",
5253
"@types/morgan": "^1.7.35",
@@ -74,7 +75,7 @@
7475
"faker": "^4.1.0",
7576
"figlet": "^1.2.0",
7677
"glob": "^7.1.2",
77-
"graphql": "^0.13.2",
78+
"graphql": "14.0.2",
7879
"helmet": "^3.9.0",
7980
"jsonfile": "5.0.0",
8081
"lodash": "^4.17.4",
@@ -92,12 +93,12 @@
9293
"serve-favicon": "^2.4.5",
9394
"supertest": "^3.0.0",
9495
"swagger-ui-express": "4.0.1",
95-
"ts-node": "^6.0.0",
96+
"ts-node": "7.0.1",
9697
"tslint": "^5.8.0",
9798
"typedi": "0.8.0",
9899
"typeorm": "^0.2.5",
99100
"typeorm-typedi-extensions": "^0.2.1",
100-
"typescript": "2.8.3",
101+
"typescript": "3.0.3",
101102
"uuid": "^3.3.2",
102103
"winston": "3.1.0"
103104
},

src/api/middlewares/CompressionMiddleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as compression from 'compression';
1+
import compression from 'compression';
22
import * as express from 'express';
33
import { ExpressMiddlewareInterface, Middleware } from 'routing-controllers';
44

src/api/middlewares/LogMiddleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as express from 'express';
2-
import * as morgan from 'morgan';
2+
import morgan from 'morgan';
33
import { ExpressMiddlewareInterface, Middleware } from 'routing-controllers';
44

55
import { env } from '../../env';

src/api/middlewares/SecurityMiddleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as express from 'express';
2-
import * as helmet from 'helmet';
2+
import helmet from 'helmet';
33
import { ExpressMiddlewareInterface, Middleware } from 'routing-controllers';
44

55
@Middleware({ type: 'before' })

src/lib/graphql/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as DataLoader from 'dataloader';
1+
import DataLoader from 'dataloader';
22
import * as express from 'express';
3-
import * as GraphQLHTTP from 'express-graphql';
3+
import GraphQLHTTP from 'express-graphql';
44
import { GraphQLObjectType, GraphQLSchema } from 'graphql';
55
import { Container as container, ObjectType } from 'typedi';
66
import { getCustomRepository, getRepository, Repository } from 'typeorm';

src/lib/seed/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as Chalk from 'chalk';
2-
import * as commander from 'commander';
2+
import commander from 'commander';
33
import * as path from 'path';
44
import { createConnection, getConnectionOptions } from 'typeorm';
55

src/lib/seed/importer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as glob from 'glob';
1+
import glob from 'glob';
22
import * as path from 'path';
33

44
// -------------------------------------------------------------------------

src/loaders/eventDispatchLoader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as glob from 'glob';
1+
import glob from 'glob';
22
import { MicroframeworkLoader, MicroframeworkSettings } from 'microframework-w3tec';
33

44
import { env } from '../env';

src/loaders/monitorLoader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as basicAuth from 'express-basic-auth';
2-
import * as monitor from 'express-status-monitor';
1+
import basicAuth from 'express-basic-auth';
2+
import monitor from 'express-status-monitor';
33
import { MicroframeworkLoader, MicroframeworkSettings } from 'microframework-w3tec';
44

55
import { env } from '../env';

0 commit comments

Comments
 (0)