@opra/nestjs 1.0.0-alpha.24 → 1.0.0-alpha.26

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.
@@ -14,7 +14,8 @@ let OpraExceptionFilter = class OpraExceptionFilter extends core_1.BaseException
14
14
  const ctx = host.switchToHttp().getRequest().opraContext;
15
15
  if (ctx) {
16
16
  const adapter = this.moduleRef.get(opra_nestjs_adapter_js_1.OpraNestAdapter);
17
- return adapter.handler.sendErrorResponse(ctx, [exception]);
17
+ ctx.errors.push(exception);
18
+ return adapter.handler.sendResponse(ctx);
18
19
  }
19
20
  }
20
21
  };
@@ -11,7 +11,8 @@ let OpraExceptionFilter = class OpraExceptionFilter extends BaseExceptionFilter
11
11
  const ctx = host.switchToHttp().getRequest().opraContext;
12
12
  if (ctx) {
13
13
  const adapter = this.moduleRef.get(OpraNestAdapter);
14
- return adapter.handler.sendErrorResponse(ctx, [exception]);
14
+ ctx.errors.push(exception);
15
+ return adapter.handler.sendResponse(ctx);
15
16
  }
16
17
  }
17
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/nestjs",
3
- "version": "1.0.0-alpha.24",
3
+ "version": "1.0.0-alpha.26",
4
4
  "description": "Opra NestJS module",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -27,8 +27,8 @@
27
27
  "clean:cover": "rimraf ../../coverage/client"
28
28
  },
29
29
  "dependencies": {
30
- "@opra/common": "^1.0.0-alpha.24",
31
- "@opra/core": "^1.0.0-alpha.24",
30
+ "@opra/common": "^1.0.0-alpha.26",
31
+ "@opra/core": "^1.0.0-alpha.26",
32
32
  "fast-tokenizer": "^1.3.0",
33
33
  "lodash.head": "^4.0.1",
34
34
  "reflect-metadata": "^0.2.2"