@moostjs/event-http 0.2.26 → 0.2.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.
- package/dist/index.cjs +1 -5
- package/dist/index.mjs +2 -6
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -77,11 +77,7 @@ class MoostHttp {
|
|
|
77
77
|
rawRequest.on('end', opts.registerEventScope(scopeId));
|
|
78
78
|
const instance = yield opts.getInstance();
|
|
79
79
|
restoreCtx();
|
|
80
|
-
|
|
81
|
-
// controller: instance,
|
|
82
|
-
// method: method as string,
|
|
83
|
-
// pathBuilder: pathBuilder as ReturnType<Wooks['on']>,
|
|
84
|
-
// })
|
|
80
|
+
moost.setControllerContext(instance, opts.method);
|
|
85
81
|
let response;
|
|
86
82
|
const interceptorHandler = yield opts.getIterceptorHandler();
|
|
87
83
|
restoreCtx();
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WooksHttp, createHttpApp, useHttpContext, useRequest, useHeaders, HttpError, EHttpStatusCode, WooksURLSearchParams, useStatus, useSetHeader, useSetCookie, useAuthorization, useCookies, useSearchParams, useResponse, useSetCookies } from '@wooksjs/event-http';
|
|
2
|
-
import { getMoostMate, Resolve, Intercept, TInterceptorPriority, validatePipe } from 'moost';
|
|
2
|
+
import { getMoostMate, setControllerContext, Resolve, Intercept, TInterceptorPriority, validatePipe } from 'moost';
|
|
3
3
|
import { createProvideRegistry } from '@prostojs/infact';
|
|
4
4
|
import { Server } from 'http';
|
|
5
5
|
import { Server as Server$1 } from 'https';
|
|
@@ -75,11 +75,7 @@ class MoostHttp {
|
|
|
75
75
|
rawRequest.on('end', opts.registerEventScope(scopeId));
|
|
76
76
|
const instance = yield opts.getInstance();
|
|
77
77
|
restoreCtx();
|
|
78
|
-
|
|
79
|
-
// controller: instance,
|
|
80
|
-
// method: method as string,
|
|
81
|
-
// pathBuilder: pathBuilder as ReturnType<Wooks['on']>,
|
|
82
|
-
// })
|
|
78
|
+
setControllerContext(instance, opts.method);
|
|
83
79
|
let response;
|
|
84
80
|
const interceptorHandler = yield opts.getIterceptorHandler();
|
|
85
81
|
restoreCtx();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moostjs/event-http",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.27",
|
|
4
4
|
"description": "@moostjs/event-http",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"homepage": "https://github.com/moostjs/moostjs/tree/main/packages/event-http#readme",
|
|
30
30
|
"peerDependencies": {},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"moost": "0.2.
|
|
33
|
-
"@wooksjs/event-core": "^0.2.
|
|
34
|
-
"@wooksjs/event-http": "^0.2.
|
|
32
|
+
"moost": "0.2.27",
|
|
33
|
+
"@wooksjs/event-core": "^0.2.18",
|
|
34
|
+
"@wooksjs/event-http": "^0.2.18",
|
|
35
35
|
"@prostojs/infact": "^0.1.11",
|
|
36
36
|
"@prostojs/router": "^0.0.16"
|
|
37
37
|
}
|