Skip to content

Commit a6c0d19

Browse files
Merge branch 'master' of https://github.com/nestjs/nest
2 parents 78777bf + 1f39424 commit a6c0d19

24 files changed

Lines changed: 37 additions & 35 deletions

File tree

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"@types/fastify-cors": "2.1.0",
8787
"@types/kafka-node": "2.0.8",
8888
"@types/mocha": "5.2.6",
89-
"@types/node": "10.14.3",
89+
"@types/node": "10.14.4",
9090
"@types/redis": "2.8.11",
9191
"@types/reflect-metadata": "0.0.5",
9292
"@types/sinon": "7.0.10",

packages/core/exceptions/external-exception-filter-context.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { ExternalExceptionsHandler } from './external-exceptions-handler';
1111
export class ExternalExceptionFilterContext extends BaseExceptionFilterContext {
1212
constructor(
1313
container: NestContainer,
14-
private readonly config: ApplicationConfig,
14+
private readonly config?: ApplicationConfig,
1515
) {
1616
super(container);
1717
}
@@ -41,6 +41,9 @@ export class ExternalExceptionFilterContext extends BaseExceptionFilterContext {
4141
}
4242

4343
public getGlobalMetadata<T extends any[]>(): T {
44+
if (!this.config) {
45+
return [] as T;
46+
}
4447
return this.config.getGlobalFilters() as T;
4548
}
4649
}

packages/core/test/helpers/external-context-creator.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ describe('ExternalContextCreator', () => {
4343
new PipesContextCreator(new NestContainer()),
4444
consumer,
4545
new ExternalExceptionFilterContext(
46-
new NestContainer(),
47-
new ApplicationConfig(),
46+
new NestContainer()
4847
),
4948
);
5049
});

sample/01-cats-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"devDependencies": {
3030
"@types/jest": "24.0.11",
31-
"@types/node": "10.14.3",
31+
"@types/node": "10.14.4",
3232
"jest": "24.5.0",
3333
"supertest": "4.0.2",
3434
"ts-jest": "24.0.0",

sample/03-microservices/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"devDependencies": {
2525
"@types/amqplib": "0.5.11",
26-
"@types/node": "10.14.3",
26+
"@types/node": "10.14.4",
2727
"ts-node": "8.0.3",
2828
"tslint": "5.14.0"
2929
}

sample/04-grpc/package-lock.json

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

sample/04-grpc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"typescript": "3.3.4000"
2424
},
2525
"devDependencies": {
26-
"@types/node": "10.14.3",
26+
"@types/node": "10.14.4",
2727
"ts-node": "8.0.3",
2828
"tslint": "5.14.0"
2929
}

sample/06-mongoose/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"devDependencies": {
2323
"@types/mongoose": "5.3.24",
24-
"@types/node": "10.14.3",
24+
"@types/node": "10.14.4",
2525
"ts-node": "8.0.3",
2626
"tslint": "5.14.0"
2727
}

sample/07-sequelize/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"typescript": "3.3.4000"
2222
},
2323
"devDependencies": {
24-
"@types/node": "10.14.3",
24+
"@types/node": "10.14.4",
2525
"@types/sequelize": "4.27.44",
2626
"ts-node": "8.0.3",
2727
"tslint": "5.14.0"

0 commit comments

Comments
 (0)