@opra/nestjs 1.0.0-alpha.28 → 1.0.0-alpha.29
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.
|
@@ -82,7 +82,8 @@ class OpraNestAdapter extends core_1.HttpAdapter {
|
|
|
82
82
|
Object.defineProperty(newClass.prototype, k, {
|
|
83
83
|
writable: true,
|
|
84
84
|
/** NestJS handler method */
|
|
85
|
-
async value(_req) {
|
|
85
|
+
async value(_req, _res) {
|
|
86
|
+
_res.statusCode = 200;
|
|
86
87
|
const api = adapter.document.api;
|
|
87
88
|
const controller = api.findController(sourceClass);
|
|
88
89
|
const operation = controller?.operations.get(k);
|
|
@@ -79,7 +79,8 @@ export class OpraNestAdapter extends HttpAdapter {
|
|
|
79
79
|
Object.defineProperty(newClass.prototype, k, {
|
|
80
80
|
writable: true,
|
|
81
81
|
/** NestJS handler method */
|
|
82
|
-
async value(_req) {
|
|
82
|
+
async value(_req, _res) {
|
|
83
|
+
_res.statusCode = 200;
|
|
83
84
|
const api = adapter.document.api;
|
|
84
85
|
const controller = api.findController(sourceClass);
|
|
85
86
|
const operation = controller?.operations.get(k);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/nestjs",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.29",
|
|
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.
|
|
31
|
-
"@opra/core": "^1.0.0-alpha.
|
|
30
|
+
"@opra/common": "^1.0.0-alpha.29",
|
|
31
|
+
"@opra/core": "^1.0.0-alpha.29",
|
|
32
32
|
"fast-tokenizer": "^1.3.0",
|
|
33
33
|
"lodash.head": "^4.0.1",
|
|
34
34
|
"putil-promisify": "^1.10.1",
|