@moostjs/event-http 0.6.39 → 0.6.41
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 +6 -3
- package/dist/index.mjs +6 -3
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -651,8 +651,11 @@ const LOGGER_TITLE = "moost-http";
|
|
|
651
651
|
resolveArgs: opts.resolveArgs,
|
|
652
652
|
manualUnscope: true,
|
|
653
653
|
hooks: { init: ({ unscope }) => {
|
|
654
|
-
|
|
655
|
-
|
|
654
|
+
if (handler.method === "UPGRADE") {
|
|
655
|
+
(0, _wooksjs_event_http.useRequest)().raw.on("end", unscope);
|
|
656
|
+
return;
|
|
657
|
+
}
|
|
658
|
+
(0, _wooksjs_event_http.useResponse)().getRawRes(true).once("close", unscope);
|
|
656
659
|
} },
|
|
657
660
|
targetPath,
|
|
658
661
|
controllerPrefix: opts.prefix,
|
|
@@ -687,7 +690,7 @@ const LOGGER_TITLE = "moost-http";
|
|
|
687
690
|
image: "https://moost.org/moost-full-logo.svg",
|
|
688
691
|
link: "https://moost.org/",
|
|
689
692
|
poweredBy: "moostjs",
|
|
690
|
-
version: "0.6.
|
|
693
|
+
version: "0.6.41"
|
|
691
694
|
});
|
|
692
695
|
if (httpApp && httpApp instanceof _wooksjs_event_http.WooksHttp) this.httpApp = httpApp;
|
|
693
696
|
else if (httpApp) this.httpApp = (0, _wooksjs_event_http.createHttpApp)({
|
package/dist/index.mjs
CHANGED
|
@@ -650,8 +650,11 @@ const LOGGER_TITLE = "moost-http";
|
|
|
650
650
|
resolveArgs: opts.resolveArgs,
|
|
651
651
|
manualUnscope: true,
|
|
652
652
|
hooks: { init: ({ unscope }) => {
|
|
653
|
-
|
|
654
|
-
|
|
653
|
+
if (handler.method === "UPGRADE") {
|
|
654
|
+
useRequest().raw.on("end", unscope);
|
|
655
|
+
return;
|
|
656
|
+
}
|
|
657
|
+
useResponse().getRawRes(true).once("close", unscope);
|
|
655
658
|
} },
|
|
656
659
|
targetPath,
|
|
657
660
|
controllerPrefix: opts.prefix,
|
|
@@ -686,7 +689,7 @@ const LOGGER_TITLE = "moost-http";
|
|
|
686
689
|
image: "https://moost.org/moost-full-logo.svg",
|
|
687
690
|
link: "https://moost.org/",
|
|
688
691
|
poweredBy: "moostjs",
|
|
689
|
-
version: "0.6.
|
|
692
|
+
version: "0.6.41"
|
|
690
693
|
});
|
|
691
694
|
if (httpApp && httpApp instanceof WooksHttp) this.httpApp = httpApp;
|
|
692
695
|
else if (httpApp) this.httpApp = createHttpApp({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moostjs/event-http",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.41",
|
|
4
4
|
"description": "@moostjs/event-http",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"composables",
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@wooksjs/event-http": "^0.7.
|
|
42
|
-
"@wooksjs/http-body": "^0.7.
|
|
41
|
+
"@wooksjs/event-http": "^0.7.24",
|
|
42
|
+
"@wooksjs/http-body": "^0.7.24"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"vitest": "3.2.7"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@prostojs/infact": "^0.
|
|
49
|
-
"@wooksjs/event-core": "^0.7.
|
|
50
|
-
"moost": "^0.6.
|
|
48
|
+
"@prostojs/infact": "^0.6.0",
|
|
49
|
+
"@wooksjs/event-core": "^0.7.24",
|
|
50
|
+
"moost": "^0.6.41"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"pub": "pnpm publish --access public",
|