Skip to content

Commit 161bbd8

Browse files
chore(): update deps, pin deps, bump peerDeps, fix tests
1 parent 3bbba1c commit 161bbd8

16 files changed

Lines changed: 444 additions & 2170 deletions

File tree

package-lock.json

Lines changed: 244 additions & 183 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 33 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -36,47 +36,45 @@
3636
"@nestjs/microservices": "5.1.0",
3737
"@nestjs/testing": "5.1.0",
3838
"@nestjs/websockets": "5.1.0",
39-
"@nuxtjs/opencollective": "^0.1.0",
40-
"amqp-connection-manager": "^2.2.0",
41-
"amqplib": "^0.5.2",
39+
"@nuxtjs/opencollective": "^0.2.1",
40+
"amqp-connection-manager": "^2.3.0",
41+
"amqplib": "^0.5.3",
4242
"apollo-server-express": "^2.4.2",
43-
"axios": "^0.17.1",
43+
"axios": "^0.18.0",
4444
"cache-manager": "^2.9.0",
45-
"class-transformer": "^0.1.8",
46-
"class-validator": "^0.8.1",
45+
"class-transformer": "^0.2.0",
46+
"class-validator": "^0.9.1",
4747
"cli-color": "^1.1.0",
4848
"connect": "^3.6.6",
49-
"cors": "^2.8.4",
49+
"cors": "^2.8.5",
5050
"engine.io-client": "^3.1.1",
5151
"express": "^4.16.2",
52-
"fast-json-stringify": "^1.5.4",
53-
"fast-safe-stringify": "^1.2.0",
54-
"fastify": "^1.1.1",
55-
"fastify-cors": "^0.2.0",
56-
"fastify-formbody": "^2.0.0",
57-
"fastify-multipart": "^0.4.1",
52+
"fast-json-stringify": "^1.11.3",
53+
"fast-safe-stringify": "^2.0.6",
54+
"fastify": "^2.1.0",
55+
"fastify-cors": "^2.1.2",
56+
"fastify-formbody": "^3.1.0",
57+
"fastify-multipart": "^0.7.0",
5858
"graphql": "^14.1.1",
59-
"grpc": "^1.18.0",
59+
"grpc": "^1.19.0",
6060
"http2": "^3.3.7",
61-
"iterare": "0.0.8",
62-
"json-socket": "^0.2.1",
61+
"iterare": "1.1.2",
62+
"json-socket": "^0.3.0",
6363
"merge-graphql-schemas": "^1.5.8",
64-
"mqtt": "^2.16.0",
65-
"multer": "^1.3.0",
66-
"nats": "^0.8.4",
67-
"object-hash": "^1.3.0",
64+
"mqtt": "^2.18.8",
65+
"multer": "^1.4.1",
66+
"nats": "^1.2.2",
67+
"object-hash": "^1.3.1",
6868
"optional": "^0.1.4",
69-
"path-to-regexp": "^2.2.1",
69+
"path-to-regexp": "^3.0.0",
7070
"pump": "^3.0.0",
71-
"redis": "^2.7.1",
71+
"redis": "^2.8.0",
7272
"reflect-metadata": "^0.1.12",
7373
"rxjs": "^6.0.0",
7474
"rxjs-compat": "^6.0.0",
75-
"socket.io": "^2.1.1",
76-
"trouter": "^1.0.0",
77-
"ts-morph": "^1.2.0",
78-
"ts-simple-ast": "^14.4.3",
79-
"type-graphql": "^0.17.0-beta.7",
75+
"socket.io": "^2.2.0",
76+
"ts-morph": "^1.3.0",
77+
"type-graphql": "^0.17.0",
8078
"uuid": "^3.3.2"
8179
},
8280
"devDependencies": {
@@ -86,6 +84,7 @@
8684
"@types/chai-as-promised": "0.0.31",
8785
"@types/cors": "^2.8.3",
8886
"@types/express": "^4.0.39",
87+
"@types/fastify-cors": "^2.1.0",
8988
"@types/kafka-node": "^2.0.6",
9089
"@types/mocha": "^2.2.38",
9190
"@types/node": "^10.12.14",
@@ -117,19 +116,19 @@
117116
"imports-loader": "^0.7.0",
118117
"json-loader": "^0.5.4",
119118
"lerna": "^2.5.1",
119+
"lint-staged": "^8.1.4",
120120
"memory-usage": "^1.2.1",
121121
"mocha": "^3.2.0",
122-
"prettier": "^1.15.3",
123-
"socket.io-client": "^2.0.4",
124-
"ts-node": "^7.0.1",
125-
"tslint": "^5.11.0",
126-
"typescript": "^3.2.4",
127-
"lint-staged": "^8.1.4",
128122
"nodemon": "^1.18.10",
129123
"nyc": "^13.3.0",
124+
"prettier": "^1.15.3",
130125
"sinon": "^7.2.3",
131126
"sinon-chai": "^3.3.0",
132-
"supertest": "^3.4.2"
127+
"socket.io-client": "^2.0.4",
128+
"supertest": "^3.4.2",
129+
"ts-node": "^7.0.1",
130+
"tslint": "^5.11.0",
131+
"typescript": "^3.2.4"
133132
},
134133
"collective": {
135134
"type": "opencollective",

packages/common/decorators/core/controller.decorator.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ export interface ControllerOptions extends ScopeOptions {
1010
* Defines the controller. Controller can inject dependencies through constructor.
1111
* Those dependencies have to belong to the same module.
1212
*/
13-
export function Controller();
14-
export function Controller(prefix: string);
15-
export function Controller(options: ControllerOptions);
13+
export function Controller(): ClassDecorator;
14+
export function Controller(prefix: string): ClassDecorator;
15+
export function Controller(options: ControllerOptions): ClassDecorator;
1616
export function Controller(
1717
prefixOrOptions?: string | ControllerOptions,
1818
): ClassDecorator {

packages/core/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222
}
2323
},
2424
"dependencies": {
25-
"@nuxtjs/opencollective": "0.1.0",
26-
"fast-safe-stringify": "1.2.0",
27-
"iterare": "0.0.8",
28-
"object-hash": "1.3.0",
25+
"@nuxtjs/opencollective": "0.2.1",
26+
"fast-safe-stringify": "2.0.6",
27+
"iterare": "1.1.2",
28+
"object-hash": "1.3.1",
2929
"optional": "0.1.4",
3030
"uuid": "3.3.2"
3131
},
3232
"peerDependencies": {
33-
"@nestjs/common": "^5.0.0",
33+
"@nestjs/common": "^6.0.0",
3434
"reflect-metadata": "^0.1.12",
3535
"rxjs": "^6.0.0"
3636
}

packages/microservices/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
"access": "public"
1313
},
1414
"dependencies": {
15-
"iterare": "0.0.8",
16-
"json-socket": "^0.2.1",
15+
"iterare": "1.1.2",
16+
"json-socket": "^0.3.0",
1717
"optional": "0.1.4"
1818
},
1919
"peerDependencies": {
20-
"@nestjs/common": "^5.0.0",
21-
"@nestjs/core": "^5.0.0",
20+
"@nestjs/common": "^6.0.0",
21+
"@nestjs/core": "^6.0.0",
2222
"rxjs": "^6.0.0"
2323
}
2424
}

packages/microservices/test/server/server-grpc.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ describe('ServerGrpc', () => {
5757
try {
5858
await server.bindEvents();
5959
} catch (err) {
60-
expect(err).to.be.instanceof(InvalidGrpcPackageException);
60+
expect(err).to.be.instanceOf(InvalidGrpcPackageException);
6161
}
6262
});
6363
});

packages/platform-express/adapters/express-adapter.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class ExpressAdapter extends AbstractHttpAdapter {
2626
return isObject(body) ? res.json(body) : res.send(String(body));
2727
}
2828

29-
public render(response, view: string, options: any) {
29+
public render(response: any, view: string, options: any) {
3030
return response.render(view, options);
3131
}
3232

@@ -38,7 +38,7 @@ export class ExpressAdapter extends AbstractHttpAdapter {
3838
return this.use(handler);
3939
}
4040

41-
public setHeader(response, name: string, value: string) {
41+
public setHeader(response: any, name: string, value: string) {
4242
return response.set(name, value);
4343
}
4444

@@ -77,11 +77,11 @@ export class ExpressAdapter extends AbstractHttpAdapter {
7777
return this.set('view engine', engine);
7878
}
7979

80-
public getRequestMethod(request): string {
80+
public getRequestMethod(request: any): string {
8181
return request.method;
8282
}
8383

84-
public getRequestUrl(request): string {
84+
public getRequestUrl(request: any): string {
8585
return request.url;
8686
}
8787

packages/platform-express/package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@
1313
},
1414
"dependencies": {
1515
"body-parser": "1.18.3",
16-
"cors": "2.8.4",
17-
"express": "4.16.3",
18-
"multer": "1.3.0"
16+
"cors": "2.8.5",
17+
"express": "4.16.4",
18+
"multer": "1.4.1"
19+
},
20+
"peerDependencies": {
21+
"@nestjs/common": "^6.0.0",
22+
"@nestjs/core": "^6.0.0"
1923
}
2024
}

packages/platform-fastify/adapters/fastify-adapter.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ export class FastifyAdapter extends AbstractHttpAdapter {
2929
return this.instance.listen(port, hostname, callback);
3030
}
3131

32-
public reply(response, body: any, statusCode: number) {
32+
public reply(response: any, body: any, statusCode: number) {
3333
return response.code(statusCode).send(body);
3434
}
3535

36-
public render(response, view: string, options: any) {
36+
public render(response: any, view: string, options: any) {
3737
return response.view(view, options);
3838
}
3939

@@ -91,20 +91,20 @@ export class FastifyAdapter extends AbstractHttpAdapter {
9191
);
9292
}
9393

94-
public setHeader(response, name: string, value: string) {
94+
public setHeader(response: any, name: string, value: string) {
9595
return response.header(name, value);
9696
}
9797

98-
public getRequestMethod(request): string {
98+
public getRequestMethod(request: any): string {
9999
return request.raw.method;
100100
}
101101

102-
public getRequestUrl(request): string {
102+
public getRequestUrl(request: any): string {
103103
return request.raw.url;
104104
}
105105

106106
public enableCors(options: CorsOptions) {
107-
this.register(cors(options));
107+
this.register(cors, { options });
108108
}
109109

110110
public registerParserMiddleware() {

packages/platform-fastify/package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@
1212
"access": "public"
1313
},
1414
"dependencies": {
15-
"fastify": "^1.13.1",
16-
"fastify-cors": "^1.0.0",
17-
"fastify-formbody": "2.1.0",
15+
"fastify": "^2.1.0",
16+
"fastify-cors": "^2.1.2",
17+
"fastify-formbody": "3.1.0",
1818
"path-to-regexp": "3.0.0"
19+
},
20+
"peerDependencies": {
21+
"@nestjs/common": "^6.0.0",
22+
"@nestjs/core": "^6.0.0"
1923
}
2024
}

0 commit comments

Comments
 (0)