@opra/nestjs-http 1.29.0 → 1.29.1
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.
|
@@ -28,6 +28,10 @@ export class OpraHttpNestjsAdapter extends HttpAdapter {
|
|
|
28
28
|
constructor(options) {
|
|
29
29
|
super(options);
|
|
30
30
|
this._addRootController(options.schemaIsPublic);
|
|
31
|
+
/* Disable default error handler. Errors will be handled by OpraExceptionFilter */
|
|
32
|
+
this.on('error', (error) => {
|
|
33
|
+
throw error;
|
|
34
|
+
});
|
|
31
35
|
if (options.controllers) {
|
|
32
36
|
for (const c of options.controllers) {
|
|
33
37
|
this._addToNestControllers(c, this.basePath, []);
|
|
@@ -141,11 +145,6 @@ export class OpraHttpNestjsAdapter extends HttpAdapter {
|
|
|
141
145
|
? nodePath.posix.join(currentPath, metadata.path)
|
|
142
146
|
: currentPath;
|
|
143
147
|
const adapter = this;
|
|
144
|
-
// adapter.logger =
|
|
145
|
-
/* Disable default error handler. Errors will be handled by OpraExceptionFilter */
|
|
146
|
-
adapter.on('error', (error) => {
|
|
147
|
-
throw error;
|
|
148
|
-
});
|
|
149
148
|
this.nestControllers.push(newClass);
|
|
150
149
|
let metadataKeys;
|
|
151
150
|
if (metadata.operations) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/nestjs-http",
|
|
3
|
-
"version": "1.29.
|
|
3
|
+
"version": "1.29.1",
|
|
4
4
|
"description": "Opra NestJS Http Module",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"tslib": "^2.8.1"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@opra/common": "^1.29.
|
|
14
|
-
"@opra/core": "^1.29.
|
|
15
|
-
"@opra/nestjs": "^1.29.
|
|
16
|
-
"@opra/http": "^1.29.
|
|
13
|
+
"@opra/common": "^1.29.1",
|
|
14
|
+
"@opra/core": "^1.29.1",
|
|
15
|
+
"@opra/nestjs": "^1.29.1",
|
|
16
|
+
"@opra/http": "^1.29.1",
|
|
17
17
|
"@nestjs/common": "^10.0.0 || ^11.0.0",
|
|
18
18
|
"@nestjs/core": "^10.0.0 || ^11.0.0"
|
|
19
19
|
},
|