@opra/core 1.0.0-alpha.26 → 1.0.0-alpha.27

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.
@@ -380,7 +380,7 @@ class HttpHandler {
380
380
  async _sendErrorResponse(context) {
381
381
  context.errors = this._wrapExceptions(context.errors);
382
382
  try {
383
- await this.adapter.emitAsync('error', context.errors, context);
383
+ await this.adapter.emitAsync('error', context);
384
384
  context.errors = this._wrapExceptions(context.errors);
385
385
  }
386
386
  catch (e) {
@@ -376,7 +376,7 @@ export class HttpHandler {
376
376
  async _sendErrorResponse(context) {
377
377
  context.errors = this._wrapExceptions(context.errors);
378
378
  try {
379
- await this.adapter.emitAsync('error', context.errors, context);
379
+ await this.adapter.emitAsync('error', context);
380
380
  context.errors = this._wrapExceptions(context.errors);
381
381
  }
382
382
  catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/core",
3
- "version": "1.0.0-alpha.26",
3
+ "version": "1.0.0-alpha.27",
4
4
  "description": "Opra schema package",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "@browsery/http-parser": "^0.5.8",
35
35
  "@browsery/type-is": "^1.6.18-r2",
36
- "@opra/common": "^1.0.0-alpha.26",
36
+ "@opra/common": "^1.0.0-alpha.27",
37
37
  "accepts": "^1.3.8",
38
38
  "base64-stream": "^1.0.0",
39
39
  "busboy": "^1.6.0",
@@ -1,4 +1,4 @@
1
- import { ApiDocument, HttpApi, OpraException, OpraSchema } from '@opra/common';
1
+ import { ApiDocument, HttpApi, OpraSchema } from '@opra/common';
2
2
  import { PlatformAdapter } from '../platform-adapter.js';
3
3
  import { HttpContext } from './http-context.js';
4
4
  import { HttpHandler } from './http-handler.js';
@@ -12,7 +12,7 @@ export declare namespace HttpAdapter {
12
12
  interceptors?: HttpAdapter.Interceptor[];
13
13
  }
14
14
  interface Events {
15
- error: (error: OpraException, context: HttpContext) => void | Promise<void>;
15
+ error: (context: HttpContext) => void | Promise<void>;
16
16
  request: (context: HttpContext) => void | Promise<void>;
17
17
  }
18
18
  }