Skip to content

Commit

Permalink
chore(): update deps, pin deps, bump peerDeps, fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Mar 16, 2019
1 parent 3bbba1c commit 161bbd8
Show file tree
Hide file tree
Showing 16 changed files with 444 additions and 2,170 deletions.
427 changes: 244 additions & 183 deletions package-lock.json

Large diffs are not rendered by default.

67 changes: 33 additions & 34 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,47 +36,45 @@
"@nestjs/microservices": "5.1.0",
"@nestjs/testing": "5.1.0",
"@nestjs/websockets": "5.1.0",
"@nuxtjs/opencollective": "^0.1.0",
"amqp-connection-manager": "^2.2.0",
"amqplib": "^0.5.2",
"@nuxtjs/opencollective": "^0.2.1",
"amqp-connection-manager": "^2.3.0",
"amqplib": "^0.5.3",
"apollo-server-express": "^2.4.2",
"axios": "^0.17.1",
"axios": "^0.18.0",
"cache-manager": "^2.9.0",
"class-transformer": "^0.1.8",
"class-validator": "^0.8.1",
"class-transformer": "^0.2.0",
"class-validator": "^0.9.1",
"cli-color": "^1.1.0",
"connect": "^3.6.6",
"cors": "^2.8.4",
"cors": "^2.8.5",
"engine.io-client": "^3.1.1",
"express": "^4.16.2",
"fast-json-stringify": "^1.5.4",
"fast-safe-stringify": "^1.2.0",
"fastify": "^1.1.1",
"fastify-cors": "^0.2.0",
"fastify-formbody": "^2.0.0",
"fastify-multipart": "^0.4.1",
"fast-json-stringify": "^1.11.3",
"fast-safe-stringify": "^2.0.6",
"fastify": "^2.1.0",
"fastify-cors": "^2.1.2",
"fastify-formbody": "^3.1.0",
"fastify-multipart": "^0.7.0",
"graphql": "^14.1.1",
"grpc": "^1.18.0",
"grpc": "^1.19.0",
"http2": "^3.3.7",
"iterare": "0.0.8",
"json-socket": "^0.2.1",
"iterare": "1.1.2",
"json-socket": "^0.3.0",
"merge-graphql-schemas": "^1.5.8",
"mqtt": "^2.16.0",
"multer": "^1.3.0",
"nats": "^0.8.4",
"object-hash": "^1.3.0",
"mqtt": "^2.18.8",
"multer": "^1.4.1",
"nats": "^1.2.2",
"object-hash": "^1.3.1",
"optional": "^0.1.4",
"path-to-regexp": "^2.2.1",
"path-to-regexp": "^3.0.0",
"pump": "^3.0.0",
"redis": "^2.7.1",
"redis": "^2.8.0",
"reflect-metadata": "^0.1.12",
"rxjs": "^6.0.0",
"rxjs-compat": "^6.0.0",
"socket.io": "^2.1.1",
"trouter": "^1.0.0",
"ts-morph": "^1.2.0",
"ts-simple-ast": "^14.4.3",
"type-graphql": "^0.17.0-beta.7",
"socket.io": "^2.2.0",
"ts-morph": "^1.3.0",
"type-graphql": "^0.17.0",
"uuid": "^3.3.2"
},
"devDependencies": {
Expand All @@ -86,6 +84,7 @@
"@types/chai-as-promised": "0.0.31",
"@types/cors": "^2.8.3",
"@types/express": "^4.0.39",
"@types/fastify-cors": "^2.1.0",
"@types/kafka-node": "^2.0.6",
"@types/mocha": "^2.2.38",
"@types/node": "^10.12.14",
Expand Down Expand Up @@ -117,19 +116,19 @@
"imports-loader": "^0.7.0",
"json-loader": "^0.5.4",
"lerna": "^2.5.1",
"lint-staged": "^8.1.4",
"memory-usage": "^1.2.1",
"mocha": "^3.2.0",
"prettier": "^1.15.3",
"socket.io-client": "^2.0.4",
"ts-node": "^7.0.1",
"tslint": "^5.11.0",
"typescript": "^3.2.4",
"lint-staged": "^8.1.4",
"nodemon": "^1.18.10",
"nyc": "^13.3.0",
"prettier": "^1.15.3",
"sinon": "^7.2.3",
"sinon-chai": "^3.3.0",
"supertest": "^3.4.2"
"socket.io-client": "^2.0.4",
"supertest": "^3.4.2",
"ts-node": "^7.0.1",
"tslint": "^5.11.0",
"typescript": "^3.2.4"
},
"collective": {
"type": "opencollective",
Expand Down
6 changes: 3 additions & 3 deletions packages/common/decorators/core/controller.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export interface ControllerOptions extends ScopeOptions {
* Defines the controller. Controller can inject dependencies through constructor.
* Those dependencies have to belong to the same module.
*/
export function Controller();
export function Controller(prefix: string);
export function Controller(options: ControllerOptions);
export function Controller(): ClassDecorator;
export function Controller(prefix: string): ClassDecorator;
export function Controller(options: ControllerOptions): ClassDecorator;
export function Controller(
prefixOrOptions?: string | ControllerOptions,
): ClassDecorator {
Expand Down
10 changes: 5 additions & 5 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
}
},
"dependencies": {
"@nuxtjs/opencollective": "0.1.0",
"fast-safe-stringify": "1.2.0",
"iterare": "0.0.8",
"object-hash": "1.3.0",
"@nuxtjs/opencollective": "0.2.1",
"fast-safe-stringify": "2.0.6",
"iterare": "1.1.2",
"object-hash": "1.3.1",
"optional": "0.1.4",
"uuid": "3.3.2"
},
"peerDependencies": {
"@nestjs/common": "^5.0.0",
"@nestjs/common": "^6.0.0",
"reflect-metadata": "^0.1.12",
"rxjs": "^6.0.0"
}
Expand Down
8 changes: 4 additions & 4 deletions packages/microservices/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"access": "public"
},
"dependencies": {
"iterare": "0.0.8",
"json-socket": "^0.2.1",
"iterare": "1.1.2",
"json-socket": "^0.3.0",
"optional": "0.1.4"
},
"peerDependencies": {
"@nestjs/common": "^5.0.0",
"@nestjs/core": "^5.0.0",
"@nestjs/common": "^6.0.0",
"@nestjs/core": "^6.0.0",
"rxjs": "^6.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/microservices/test/server/server-grpc.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe('ServerGrpc', () => {
try {
await server.bindEvents();
} catch (err) {
expect(err).to.be.instanceof(InvalidGrpcPackageException);
expect(err).to.be.instanceOf(InvalidGrpcPackageException);
}
});
});
Expand Down
8 changes: 4 additions & 4 deletions packages/platform-express/adapters/express-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class ExpressAdapter extends AbstractHttpAdapter {
return isObject(body) ? res.json(body) : res.send(String(body));
}

public render(response, view: string, options: any) {
public render(response: any, view: string, options: any) {
return response.render(view, options);
}

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

public setHeader(response, name: string, value: string) {
public setHeader(response: any, name: string, value: string) {
return response.set(name, value);
}

Expand Down Expand Up @@ -77,11 +77,11 @@ export class ExpressAdapter extends AbstractHttpAdapter {
return this.set('view engine', engine);
}

public getRequestMethod(request): string {
public getRequestMethod(request: any): string {
return request.method;
}

public getRequestUrl(request): string {
public getRequestUrl(request: any): string {
return request.url;
}

Expand Down
10 changes: 7 additions & 3 deletions packages/platform-express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@
},
"dependencies": {
"body-parser": "1.18.3",
"cors": "2.8.4",
"express": "4.16.3",
"multer": "1.3.0"
"cors": "2.8.5",
"express": "4.16.4",
"multer": "1.4.1"
},
"peerDependencies": {
"@nestjs/common": "^6.0.0",
"@nestjs/core": "^6.0.0"
}
}
12 changes: 6 additions & 6 deletions packages/platform-fastify/adapters/fastify-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ export class FastifyAdapter extends AbstractHttpAdapter {
return this.instance.listen(port, hostname, callback);
}

public reply(response, body: any, statusCode: number) {
public reply(response: any, body: any, statusCode: number) {
return response.code(statusCode).send(body);
}

public render(response, view: string, options: any) {
public render(response: any, view: string, options: any) {
return response.view(view, options);
}

Expand Down Expand Up @@ -91,20 +91,20 @@ export class FastifyAdapter extends AbstractHttpAdapter {
);
}

public setHeader(response, name: string, value: string) {
public setHeader(response: any, name: string, value: string) {
return response.header(name, value);
}

public getRequestMethod(request): string {
public getRequestMethod(request: any): string {
return request.raw.method;
}

public getRequestUrl(request): string {
public getRequestUrl(request: any): string {
return request.raw.url;
}

public enableCors(options: CorsOptions) {
this.register(cors(options));
this.register(cors, { options });
}

public registerParserMiddleware() {
Expand Down
10 changes: 7 additions & 3 deletions packages/platform-fastify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@
"access": "public"
},
"dependencies": {
"fastify": "^1.13.1",
"fastify-cors": "^1.0.0",
"fastify-formbody": "2.1.0",
"fastify": "^2.1.0",
"fastify-cors": "^2.1.2",
"fastify-formbody": "3.1.0",
"path-to-regexp": "3.0.0"
},
"peerDependencies": {
"@nestjs/common": "^6.0.0",
"@nestjs/core": "^6.0.0"
}
}
6 changes: 3 additions & 3 deletions packages/platform-socket.io/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
"access": "public"
},
"dependencies": {
"socket.io": "^2.1.1"
"socket.io": "^2.2.0"
},
"peerDependencies": {
"@nestjs/common": "^5.0.0",
"@nestjs/websockets": "^5.0.0",
"@nestjs/common": "^6.0.0",
"@nestjs/websockets": "^6.0.0",
"rxjs": "^6.0.0"
}
}
6 changes: 3 additions & 3 deletions packages/platform-ws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
"access": "public"
},
"dependencies": {
"ws": "^5.1.1"
"ws": "^6.2.0"
},
"peerDependencies": {
"@nestjs/common": "^5.0.0",
"@nestjs/websockets": "^5.0.0",
"@nestjs/common": "^6.0.0",
"@nestjs/websockets": "^6.0.0",
"rxjs": "^6.0.0"
}
}
4 changes: 2 additions & 2 deletions packages/testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"optional": "0.1.4"
},
"peerDependencies": {
"@nestjs/common": "5.*",
"@nestjs/core": "^5.0.0"
"@nestjs/common": "^6.0.0",
"@nestjs/core": "^6.0.0"
}
}
6 changes: 3 additions & 3 deletions packages/websockets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
"access": "public"
},
"dependencies": {
"iterare": "0.0.8"
"iterare": "1.1.2"
},
"peerDependencies": {
"@nestjs/common": "^5.0.0",
"@nestjs/core": "^5.0.0",
"@nestjs/common": "^6.0.0",
"@nestjs/core": "^6.0.0",
"rxjs": "^6.0.0"
}
}
Loading

0 comments on commit 161bbd8

Please sign in to comment.