@opra/http 1.11.1 → 1.12.0
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.
- package/cjs/http-handler.js +1 -1
- package/esm/http-handler.js +1 -1
- package/package.json +4 -4
package/cjs/http-handler.js
CHANGED
|
@@ -429,7 +429,7 @@ class HttpHandler {
|
|
|
429
429
|
context.errors = this._wrapExceptions(context.errors);
|
|
430
430
|
try {
|
|
431
431
|
if (context.listenerCount('error')) {
|
|
432
|
-
await
|
|
432
|
+
await context.emitAsync('error', context.errors[0], context);
|
|
433
433
|
context.errors = this._wrapExceptions(context.errors);
|
|
434
434
|
}
|
|
435
435
|
if (this.adapter.listenerCount('error')) {
|
package/esm/http-handler.js
CHANGED
|
@@ -425,7 +425,7 @@ export class HttpHandler {
|
|
|
425
425
|
context.errors = this._wrapExceptions(context.errors);
|
|
426
426
|
try {
|
|
427
427
|
if (context.listenerCount('error')) {
|
|
428
|
-
await
|
|
428
|
+
await context.emitAsync('error', context.errors[0], context);
|
|
429
429
|
context.errors = this._wrapExceptions(context.errors);
|
|
430
430
|
}
|
|
431
431
|
if (this.adapter.listenerCount('error')) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/http",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"description": "Opra Http Server Adapter",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@browsery/antlr4": "^4.13.3-r4",
|
|
9
9
|
"@browsery/http-parser": "^0.5.9-r4",
|
|
10
10
|
"@browsery/type-is": "^1.6.18-r8",
|
|
11
|
-
"@jsopen/objects": "^1.5.
|
|
11
|
+
"@jsopen/objects": "^1.5.2",
|
|
12
12
|
"accepts": "^1.3.8",
|
|
13
13
|
"base64-stream": "^1.0.0",
|
|
14
14
|
"busboy": "^1.6.0",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"vary": "^1.1.2"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@opra/common": "^1.
|
|
39
|
-
"@opra/core": "^1.
|
|
38
|
+
"@opra/common": "^1.12.0",
|
|
39
|
+
"@opra/core": "^1.12.0"
|
|
40
40
|
},
|
|
41
41
|
"optionalDependencies": {
|
|
42
42
|
"express": "^4.0.0 || ^5.0.0",
|