@nestjs/core 7.6.16 → 7.6.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,7 +27,7 @@ class BaseExceptionFilter {
27
27
  }
28
28
  handleUnknownError(exception, host, applicationRef) {
29
29
  const body = {
30
- statusCode: 500 /* INTERNAL_SERVER_ERROR */,
30
+ statusCode: common_1.HttpStatus.INTERNAL_SERVER_ERROR,
31
31
  message: constants_1.MESSAGES.UNKNOWN_EXCEPTION_MESSAGE,
32
32
  };
33
33
  applicationRef.reply(host.getArgByIndex(1), body, body.statusCode);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/core",
3
- "version": "7.6.16",
3
+ "version": "7.6.17",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@core)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  "uuid": "8.3.2"
37
37
  },
38
38
  "devDependencies": {
39
- "@nestjs/common": "7.6.16"
39
+ "@nestjs/common": "7.6.17"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@nestjs/common": "^7.0.0",
@@ -18,7 +18,7 @@ class RouterResponseController {
18
18
  ? result.statusCode
19
19
  : redirectResponse.statusCode
20
20
  ? redirectResponse.statusCode
21
- : 302 /* FOUND */;
21
+ : common_1.HttpStatus.FOUND;
22
22
  const url = result && result.url ? result.url : redirectResponse.url;
23
23
  this.applicationRef.redirect(response, statusCode, url);
24
24
  }
@@ -35,9 +35,9 @@ class RouterResponseController {
35
35
  getStatusByMethod(requestMethod) {
36
36
  switch (requestMethod) {
37
37
  case common_1.RequestMethod.POST:
38
- return 201 /* CREATED */;
38
+ return common_1.HttpStatus.CREATED;
39
39
  default:
40
- return 200 /* OK */;
40
+ return common_1.HttpStatus.OK;
41
41
  }
42
42
  }
43
43
  setHeaders(response, headers) {