Skip to content

Commit

Permalink
chore(release) publish v4.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Feb 16, 2018
1 parent a763e00 commit 2b29461
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 4.6.3
### Bug Fixes
- **core**: error thrown when connecting to microservice (hybrid applicaton) [#425](https://github.com/nestjs/nest/issues/425)

## 4.6.2
### Improvements
- **core**: simplify `NestFactory.create(...args)` signature
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"packages": [
"lib/*"
],
"version": "4.6.2"
"version": "4.6.3"
}
2 changes: 1 addition & 1 deletion lib/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestjs/common",
"version": "4.6.2",
"version": "4.6.3",
"description": "Nest - modern, fast, powerful node.js web framework (@common)",
"author": "Kamil Mysliwiec",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion lib/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestjs/core",
"version": "4.6.2",
"version": "4.6.3",
"description": "Nest - modern, fast, powerful node.js web framework (@core)",
"author": "Kamil Mysliwiec",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nestjs",
"version": "4.6.0",
"version": "4.6.3",
"description": "Modern, fast, powerful node.js web framework",
"main": "index.js",
"scripts": {
Expand Down
10 changes: 8 additions & 2 deletions src/core/nest-application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ export class NestApplication extends NestApplicationContext
}

public async init(): Promise<this> {
const useBodyParser = this.appOptions && this.appOptions.bodyParser !== false;
const useBodyParser =
this.appOptions && this.appOptions.bodyParser !== false;
useBodyParser && this.setupParserMiddlewares();

await this.setupModules();
Expand Down Expand Up @@ -161,7 +162,12 @@ export class NestApplication extends NestApplicationContext
if (!NestMicroservice) {
throw new MicroservicesPackageNotFoundException();
}
const instance = new NestMicroservice(this.container as any, config as any);
const applicationConfig = new ApplicationConfig();
const instance = new NestMicroservice(
this.container as any,
config as any,
applicationConfig,
);
instance.setupListeners();
instance.setIsInitialized(true);
instance.setIsInitHookCalled(true);
Expand Down

0 comments on commit 2b29461

Please sign in to comment.