@opra/nestjs-http 1.19.7 → 1.21.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.
|
@@ -93,10 +93,10 @@ class OpraHttpNestjsAdapter extends http_1.HttpAdapter {
|
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
/** Configure the HttpContext */
|
|
96
|
-
context.
|
|
97
|
-
context.
|
|
98
|
-
context.
|
|
99
|
-
context.
|
|
96
|
+
context.__oprDef = operation;
|
|
97
|
+
context.__contDef = operation.owner;
|
|
98
|
+
context.__controller = this;
|
|
99
|
+
context.__handler = operationHandler;
|
|
100
100
|
/** Handle request */
|
|
101
101
|
await adapter.handler.handleRequest(context);
|
|
102
102
|
},
|
package/cjs/opra-middleware.js
CHANGED
|
@@ -14,7 +14,7 @@ let OpraMiddleware = class OpraMiddleware {
|
|
|
14
14
|
const response = http_1.HttpOutgoing.from(res);
|
|
15
15
|
/** Create the HttpContext */
|
|
16
16
|
const context = new http_1.HttpContext({
|
|
17
|
-
|
|
17
|
+
__adapter: this.opraAdapter,
|
|
18
18
|
platform: req.route ? 'express' : 'fastify',
|
|
19
19
|
request,
|
|
20
20
|
response,
|
|
@@ -90,10 +90,10 @@ export class OpraHttpNestjsAdapter extends HttpAdapter {
|
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
/** Configure the HttpContext */
|
|
93
|
-
context.
|
|
94
|
-
context.
|
|
95
|
-
context.
|
|
96
|
-
context.
|
|
93
|
+
context.__oprDef = operation;
|
|
94
|
+
context.__contDef = operation.owner;
|
|
95
|
+
context.__controller = this;
|
|
96
|
+
context.__handler = operationHandler;
|
|
97
97
|
/** Handle request */
|
|
98
98
|
await adapter.handler.handleRequest(context);
|
|
99
99
|
},
|
package/esm/opra-middleware.js
CHANGED
|
@@ -11,7 +11,7 @@ let OpraMiddleware = class OpraMiddleware {
|
|
|
11
11
|
const response = HttpOutgoing.from(res);
|
|
12
12
|
/** Create the HttpContext */
|
|
13
13
|
const context = new HttpContext({
|
|
14
|
-
|
|
14
|
+
__adapter: this.opraAdapter,
|
|
15
15
|
platform: req.route ? 'express' : 'fastify',
|
|
16
16
|
request,
|
|
17
17
|
response,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/nestjs-http",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.21.0",
|
|
4
4
|
"description": "Opra NestJS Http Module",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"tslib": "^2.8.1"
|
|
10
10
|
},
|
|
11
11
|
"peerDependencies": {
|
|
12
|
-
"@opra/common": "^1.
|
|
13
|
-
"@opra/core": "^1.
|
|
14
|
-
"@opra/nestjs": "^1.
|
|
15
|
-
"@opra/http": "^1.
|
|
12
|
+
"@opra/common": "^1.21.0",
|
|
13
|
+
"@opra/core": "^1.21.0",
|
|
14
|
+
"@opra/nestjs": "^1.21.0",
|
|
15
|
+
"@opra/http": "^1.21.0",
|
|
16
16
|
"@nestjs/common": "^10.0.0 || ^11.0.0",
|
|
17
17
|
"@nestjs/core": "^10.0.0 || ^11.0.0"
|
|
18
18
|
},
|